about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-12-16 02:21:30 +0000
committerbors <bors@rust-lang.org>2021-12-16 02:21:30 +0000
commit9e1aff82e696c0edb568656ae6b509a9ab4d6c92 (patch)
tree8dca31962f21371e94cd90d4509f00dd4c168248 /compiler/rustc_codegen_llvm/src
parent69ac533527025fffa37ad1bc4d82b3bc65f90264 (diff)
parent535278aa511da21ae091837b89c603ef4aeeb014 (diff)
downloadrust-9e1aff82e696c0edb568656ae6b509a9ab4d6c92.tar.gz
rust-9e1aff82e696c0edb568656ae6b509a9ab4d6c92.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions