about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2016-02-19 10:49:14 -0800
committerAaron Turon <aturon@mozilla.com>2016-03-14 15:04:40 -0700
commiteaf2f909561c3b2c26ee8d40ac7a95e89c5034d9 (patch)
treebbaae2b97e59aa5131fc3d35b1540807ae152c66 /src/libstd/sys/unix/stack_overflow.rs
parent8f20cbf03088c8fa89a343de9e97e7608cd701b6 (diff)
downloadrust-eaf2f909561c3b2c26ee8d40ac7a95e89c5034d9.tar.gz
rust-eaf2f909561c3b2c26ee8d40ac7a95e89c5034d9.zip
Refactor core specialization and subst translation code to avoid
danger of inference variables floating around without their inference
context.

The main insight here is that, when we are translating substitutions
between two impls, *we already know that the more specific impl holds*,
so we do not need to add its obligations to the parameter
environment. Instead, we can just thread through the inference context
we used to show select the more specific impl in the first place.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions