Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RA can't expand rustc_hir::lang_items::language_item_table #8391

Closed
jyn514 opened this issue Apr 7, 2021 · 2 comments
Closed

RA can't expand rustc_hir::lang_items::language_item_table #8391

jyn514 opened this issue Apr 7, 2021 · 2 comments

Comments

@jyn514
Copy link
Member

jyn514 commented Apr 7, 2021

This is just a normal macro, not a proc-macro, so not sure what could be going wrong.

Reproduction steps:

  1. Checkout rust-lang/rust@1247250
  2. Open compiler/rustc_hir/src/lang_items.rs
  3. Scroll to line 167 and see that it's all red:

image

@edwin0cheng
Copy link
Member

Should be this line :

https://github.com/rust-lang/rust/blob/1247250d506084773806e0562ce925938695b19d/compiler/rustc_hir/src/lang_items.rs#L49

#[doc = concat!("The `", stringify!($name), "` lang item.")]

See #8092

@jyn514
Copy link
Member Author

jyn514 commented Apr 7, 2021

Ah ok, that would do it.

@jyn514 jyn514 closed this as completed Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants