diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2021-08-27 21:13:08 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2021-08-27 23:19:49 -0500 |
| commit | c9157efad6e3e7b1802a2c4f5122140e1752985d (patch) | |
| tree | 475a30ac4d8936b34e9e2572823ebc5902e18245 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | ac50a53359328a5d7f2f558833e63d59d372e4f7 (diff) | |
| download | rust-c9157efad6e3e7b1802a2c4f5122140e1752985d.tar.gz rust-c9157efad6e3e7b1802a2c4f5122140e1752985d.zip | |
Don't use `guess_head_span` in `predicates_of` for foreign span
Previously, the result of `predicates_of` for a foreign trait would depend on the *current* state of the corresponding source file in the foreign crate. This could lead to ICEs during incremental compilation, since the on-disk contents of the upstream source file could potentially change without the upstream crate being recompiled. Additionally, this ensure that that the metadata we produce for a crate only depends on its *compiled* upstream dependencies (e.g an rlib or rmeta file), *not* the current on-disk state of the upstream crate source files.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
