Skip to content

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

New issue

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

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

Already on GitHub? # to your account

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants