]> git.lizzy.rs Git - rust.git/commit
Improve early bailout test in `resolve_vars_if_possible`.
authorNicholas Nethercote <n.nethercote@gmail.com>
Thu, 2 Feb 2023 23:15:24 +0000 (10:15 +1100)
committerNicholas Nethercote <n.nethercote@gmail.com>
Sun, 5 Feb 2023 21:52:04 +0000 (08:52 +1100)
commitf08a3371b01f6d6b01bf351f28bf0fbba2bd1b87
tree2744a1db2c031b8f8b9768dc4a3f2cde8c448c65
parentbac7628eae905b0c806788914c9b7ee9409983de
Improve early bailout test in `resolve_vars_if_possible`.

`!t.has_non_region_infer()` is the test used in
`OpportunisticVarResolver`, and catches a few cases that
`!t.needs_infer()` misses.
compiler/rustc_infer/src/infer/mod.rs