summary refs log tree commit diff
path: root/src/librustc_metadata/creader.rs
AgeCommit message (Collapse)AuthorLines
2016-04-06rustc: move rustc_front to rustc::hir.Eduard Burtescu-4/+4
2016-03-31librustc_metadata: use bug!(), span_bug!()Benjamin Herr-3/+3
2016-03-25renumber error from E0522 to E0523Niko Matsakis-1/+1
another name was added in the meantime
2016-03-25pacify the merciless tidy: s/E0521/E0522Niko Matsakis-1/+1
Gah. I always find it confusing that make tidy gives me the highest error code, but not the **next** error code.
2016-03-25renumber diagnostic to avoid conflictNiko Matsakis-1/+1
specialization nabbed E0520
2016-03-25track the extern-crate def-id rather than pathNiko Matsakis-27/+59
We used to track, for each crate, a path that led to the extern-crate that imported it. Instead of that, track the def-id of the extern crate, along with a bit more information, and derive the path on the fly.
2016-03-25store krate information more uniformlyNiko Matsakis-1/+1
make DefPath store krate and enable uniform access to crate_name/crate_disambiguator
2016-03-25Add a "link-guard" to avoid accidentally linking to a wrong dylib at runtime.Michael Woerister-2/+2
We want to prevent compiling something against one version of a dynamic library and then, at runtime accidentally using a different version of the dynamic library. With the old symbol-naming scheme this could not happen because every symbol had the SVH in it and you'd get an error by the dynamic linker when using the wrong version of a dylib. With the new naming scheme this isn't the case any more, so this patch adds the "link-guard" to prevent this error case. This is implemented as follows: - In every crate that we compile, we emit a function called "__rustc_link_guard_<crate-name>_<crate-svh>" - The body of this function contains calls to the "__rustc_link_guard" functions of all dependencies. - An executable contains a call to it's own "__rustc_link_guard" function. As a consequence the "__rustc_link_guard" function call graph mirrors the crate graph and the dynamic linker will fail if a wrong dylib is loaded somewhere because its "__rustc_link_guard" function will contain a different SVH in its name.
2016-03-25Make the compiler emit an error if the crate graph contains two crates with ↵Michael Woerister-4/+44
the same crate-name and crate-salt but different SVHs.
2016-03-08Add help for E0514ggomez-8/+10
2016-02-12Autoderef in librustc_metadataJonas Schievink-2/+2
2016-02-11[breaking-change] don't glob export ast::Item_ variantsOliver 'ker' Schneider-1/+1
2016-02-11[breaking-change] don't glob import/export syntax::abi enum variantsOliver Schneider-2/+2
2016-02-05Instrument a bunch of tasks that employ the HIR map in one way orNiko Matsakis-1/+5
another and were not previously instrumented.
2016-02-01Implemented macro referencing for save analysisDaniel Campbell-3/+5
2016-01-22The war on abort_if_errorsNick Cameron-11/+8
2015-12-30use structured errorsNick Cameron-1/+5
2015-11-26fix tidyAriel Ben-Yehuda-4/+5
2015-11-26split the metadata code into rustc_metadataAriel Ben-Yehuda-0/+963
tests & rustdoc still broken