about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/reference-shrink.js
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-06-05 08:34:06 +0000
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-06-05 08:34:06 +0000
commitc12575d3173eb6ba985482808a87e54f23ad328e (patch)
treef0a445712b9b8ea1df72cc6b833fd4504a6fae9b /tests/rustdoc-js-std/reference-shrink.js
parent896ccb96063526818aa560af43d3a918df97fe48 (diff)
downloadrust-c12575d3173eb6ba985482808a87e54f23ad328e.tar.gz
rust-c12575d3173eb6ba985482808a87e54f23ad328e.zip
Normalize in infcx instead of globally for `Option::as_deref` suggestion
The projection may contain inference variables. These inference
variables are local to the local inference context. Using
`tcx.normalize_erasing_regions` doesn't work here because this method is
global and does not have access to the inference context. It's therefore
unable to deal with the inference variables. We normalize in the local
inference context instead, which knowns about the inference variables.
Diffstat (limited to 'tests/rustdoc-js-std/reference-shrink.js')
0 files changed, 0 insertions, 0 deletions