diff options
| author | bors <bors@rust-lang.org> | 2019-02-06 03:07:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-02-06 03:07:04 +0000 |
| commit | 0e5a2099592358317f74ff5cd517a8b6f04cbee1 (patch) | |
| tree | 7442426a065d576bb88dd42e9df1ec6091dfdeb8 /src/rustllvm/RustWrapper.cpp | |
| parent | 65e647cfe7481cf45f74c6e95940256a96218364 (diff) | |
| parent | c955f172b2f09f28d187ed7634e18861258833e5 (diff) | |
| download | rust-0e5a2099592358317f74ff5cd517a8b6f04cbee1.tar.gz rust-0e5a2099592358317f74ff5cd517a8b6f04cbee1.zip | |
Auto merge of #58058 - QuietMisdreavus:use-attr, r=GuillaumeGomez
rustdoc: don't try to get a DefId for a Def that doesn't have one Fixes https://github.com/rust-lang/rust/issues/58054 The compiler allows you to write a `use` statement for a built-in non-macro attribute, since `use proc_macro` can apply to both the `proc_macro` crate and the `#[proc_macro]` attribute. However, if you write a use statement for something that *doesn't* have this crossover, rustdoc will try to use it the same way as anything else... which resulted in an ICE because it tried to pull a DefId for something that didn't have one. This PR makes rustdoc skip those lookups when it encounters them, allowing it to properly process and render these imports.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
