about summary refs log tree commit diff
path: root/compiler/rustc_driver/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-08-31 03:34:22 +0000
committerbors <bors@rust-lang.org>2021-08-31 03:34:22 +0000
commit1e37e83dc05a7c359ebb88188b0a2179a8ec9067 (patch)
tree38f3cf59508321f9ab3bc71268a8b8a9fd992a28 /compiler/rustc_driver/src
parent56ea5e0ee948999a916ff5f3d78ed79716d1006b (diff)
parentc9157efad6e3e7b1802a2c4f5122140e1752985d (diff)
downloadrust-1e37e83dc05a7c359ebb88188b0a2179a8ec9067.tar.gz
rust-1e37e83dc05a7c359ebb88188b0a2179a8ec9067.zip
Auto merge of #88414 - Aaron1011:guess-foreign-head-span, r=estebank
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_driver/src')
0 files changed, 0 insertions, 0 deletions