about summary refs log tree commit diff
path: root/library/std/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-05-09 18:45:39 +0200
committerGitHub <noreply@github.com>2022-05-09 18:45:39 +0200
commit0e00ed5f48f9490b0d1850492f2fc8ad53b192a8 (patch)
treee4e56878db171adb84d9729a12667f45221c55ed /library/std/src/lib.rs
parent84a8f8dedf0b16561c1f0992f8d251185c4409f9 (diff)
parent657499df644c15546c3c9fd0635d4886d47e6cdf (diff)
downloadrust-0e00ed5f48f9490b0d1850492f2fc8ad53b192a8.tar.gz
rust-0e00ed5f48f9490b0d1850492f2fc8ad53b192a8.zip
Rollup merge of #96854 - jackh726:subst-cleanup, r=compiler-errors
Some subst cleanup

Two separate things here. Both changes are useful for some refactoring I'm doing to add an "EarlyBinder" newtype. (Part of chalkification).

1) Remove `subst_spanned` and just use `subst`. It wasn't used much anyways. In practice, I think we can probably get most of the info just from the actual error message. If not, outputting logs should do the trick. (The specific line probably wouldn't help much anyways).

2) Call `.subst()` before `replace_bound_vars_with_fresh_vars` and `erase_late_bound_regions` in three places that do the opposite. I think there might have been some time in the past that the order here matter for something, but this shouldn't be the case anymore. Conceptually, it makes more sense to the of the *early bound* vars on `fn`s as "outside" the late bound vars.
Diffstat (limited to 'library/std/src/lib.rs')
0 files changed, 0 insertions, 0 deletions