rust/src/librustdoc
bors 0e5a209959 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.
2019-02-06 03:07:04 +00:00
..
clean Auto merge of #58058 - QuietMisdreavus:use-attr, r=GuillaumeGomez 2019-02-06 03:07:04 +00:00
html Rollup merge of #57859 - GuillaumeGomez:fix-background, r=QuietMisdreavus 2019-01-28 22:25:45 +01:00
passes remove _with_applicability from suggestion fns 2019-01-26 23:07:55 -05:00
Cargo.toml End fixing search index minification 2019-01-17 01:41:01 +01:00
config.rs Add book section and fix typo. 2019-01-17 17:26:24 -05:00
core.rs hir: add HirId to main Hir nodes 2019-02-02 17:35:20 +01:00
doctree.rs Remove licenses 2018-12-25 21:08:33 -07:00
externalfiles.rs Remove licenses 2018-12-25 21:08:33 -07:00
fold.rs Remove licenses 2018-12-25 21:08:33 -07:00
lib.rs Auto merge of #56884 - euclio:codeblock-diagnostics, r=QuietMisdreavus 2019-01-20 19:01:38 +00:00
markdown.rs Persist doc test executables to given path. 2019-01-17 17:26:00 -05:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
test.rs Minor changes to wording and formatting. 2019-01-17 17:26:24 -05:00
theme.rs Remove licenses 2018-12-25 21:08:33 -07:00
visit_ast.rs don't try to get a DefId for a Def that doesn't have one 2019-02-01 11:17:33 -06:00
visit_lib.rs Remove licenses 2018-12-25 21:08:33 -07:00

For more information about how librustdoc works, see the rustc guide.