rust/src/librustc/middle
bors 3abaf43f77 Auto merge of #37954 - eddyb:rustdoc-2, r=alexcrichton
rustdoc: link to cross-crate sources directly.

Fixes #37684 by implementing proper support for getting the `Span` of definitions across crates.
In rustdoc this is used to generate direct links to the original source instead of fragile redirects.

This functionality could be expanded further for making error reporting code more uniform and seamless across crates, although at the moment there is no actual source to print, only file/line/column information.

Closes #37870 which is also "fixes" #37684 by throwing away the builtin macro docs from libcore.
After this lands, #37727 could be reverted, although it doesn't matter much either way.
2016-11-30 07:46:00 +00:00
..
astconv_util.rs rustc: embed path resolutions into the HIR instead of keeping DefMap. 2016-11-28 04:18:10 +02:00
const_qualif.rs move more checks out of librustc 2016-01-21 10:52:37 +01:00
const_val.rs Move syntax::util::interner -> syntax::symbol, cleanup. 2016-11-20 23:40:20 +00:00
cstore.rs rustc: track the Span's of definitions across crates. 2016-11-30 04:48:56 +02:00
dataflow.rs revamp Visitor with a single method for controlling nested visits 2016-11-29 13:04:27 +01:00
dead.rs revamp Visitor with a single method for controlling nested visits 2016-11-29 13:04:27 +01:00
dependency_format.rs Avoid loading needless proc-macro dependencies. 2016-11-28 03:37:02 +00:00
effect.rs revamp Visitor with a single method for controlling nested visits 2016-11-29 13:04:27 +01:00
entry.rs rustc: replace body exprs by their ids 2016-11-29 13:04:27 +01:00
expr_use_visitor.rs rustc: embed path resolutions into the HIR instead of keeping DefMap. 2016-11-28 04:18:10 +02:00
free_region.rs turn the RFC1592 warnings into hard errors 2016-09-01 13:34:56 +03:00
intrinsicck.rs revamp Visitor with a single method for controlling nested visits 2016-11-29 13:04:27 +01:00
lang_items.rs Adds TyCtxt::require_lang_item(LangItem) to simplify lang item requires. 2016-11-28 18:09:15 -07:00
liveness.rs revamp Visitor with a single method for controlling nested visits 2016-11-29 13:04:27 +01:00
mem_categorization.rs rustc: replace body exprs by their ids 2016-11-29 13:04:27 +01:00
privacy.rs Replace FnvHasher use with FxHasher. 2016-11-08 15:14:59 +11:00
reachable.rs revamp Visitor with a single method for controlling nested visits 2016-11-29 13:04:27 +01:00
recursion_limit.rs Use Symbol instead of InternedString in the AST, HIR, and various other places. 2016-11-21 09:00:55 +00:00
region.rs revamp Visitor with a single method for controlling nested visits 2016-11-29 13:04:27 +01:00
resolve_lifetime.rs revamp Visitor with a single method for controlling nested visits 2016-11-29 13:04:27 +01:00
stability.rs revamp Visitor with a single method for controlling nested visits 2016-11-29 13:04:27 +01:00
weak_lang_items.rs revamp Visitor with a single method for controlling nested visits 2016-11-29 13:04:27 +01:00