]> git.lizzy.rs Git - rust.git/commit
Auto merge of #37954 - eddyb:rustdoc-2, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 30 Nov 2016 07:46:00 +0000 (07:46 +0000)
committerbors <bors@rust-lang.org>
Wed, 30 Nov 2016 07:46:00 +0000 (07:46 +0000)
commit3abaf43f770a8bae23da474690e3841041219029
tree806a8618b7b42a3ee113ee4a8734544840514f99
parent8e373b47872872a2ce61c5b02f4dd96d90d046ee
parent900191891fc5462d4ef33756a7d4d40e78e1c1cc
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.
src/librustc/ty/error.rs
src/librustc/ty/mod.rs
src/librustc_metadata/decoder.rs
src/librustc_typeck/astconv.rs
src/librustc_typeck/check/dropck.rs
src/librustc_typeck/check/method/suggest.rs
src/librustc_typeck/check/mod.rs
src/librustc_typeck/check/wfcheck.rs
src/librustdoc/clean/mod.rs