rust/compiler/rustc_resolve/src
bors 9e1aff82e6 Auto merge of #89836 - pierwill:fix-85142-crate-hash, r=wesleywiser
Include rustc version in `rustc_span::StableCrateId`

`rustc_span::def_id::StableCrateId` is a hash of various data about a crate during compilation. This PR includes the version of `rustc` in the input when computing this hash. From a cursory reading of [RFC 2603](https://rust-lang.github.io/rfcs/2603-rust-symbol-name-mangling-v0.html), this appears to be acceptable within that design.

In order to pass the `mir-opt` and `ui` test suites, this adds new [normalization for hashes and symbol names in `compiletest`](https://github.com/rust-lang/rust/pull/89836/files#diff-03a0567fa80ca04ed5a55f9ac5c711b4f84659be2d0ac4a984196d581c04f76b). These are enabled by default, but we might prefer it to be configurable.

In the UI tests, I had to truncate a significant amount of error annotations in v0 symbols (and maybe some legacy) in order to get the normalization to work correctly. (See https://github.com/rust-lang/rust/issues/90116.)

Closes #85142.
2021-12-16 02:21:30 +00:00
..
late Auto merge of #89836 - pierwill:fix-85142-crate-hash, r=wesleywiser 2021-12-16 02:21:30 +00:00
build_reduced_graph.rs Rollup merge of #91045 - mjptree:issue-90702-fix, r=petrochenkov 2021-12-02 15:52:01 +01:00
check_unused.rs Add ty::Visibility::is_public() 2021-11-09 18:35:00 -08:00
def_collector.rs expand: Turn ast::Crate into a first class expansion target 2021-11-28 15:48:55 +08:00
diagnostics.rs Improve error message for E0659 if the source is not available 2021-11-27 18:42:49 +01:00
imports.rs Improve suggestion for extern crate self error message 2021-12-01 21:59:54 +00:00
late.rs Do not visit attributes in LateResolutionVisitor. 2021-11-25 00:24:04 +01:00
lib.rs Stabilize iter::zip. 2021-12-14 18:50:31 -04:00
macros.rs Suggestion to wrap inner types using allocator_api in tuple 2021-11-24 00:24:13 +09:00