about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-04-11 14:37:07 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-04-11 14:55:33 +1000
commit1eb53902f3b2b9c02b20472a8c7747b89bd54203 (patch)
tree248d3b0e2d9cea2971e7fac850e19975d992d23f /compiler/rustc_codegen_llvm/src/errors.rs
parent5716ae6982a4044429eb1d27d1921d70aebde64d (diff)
downloadrust-1eb53902f3b2b9c02b20472a8c7747b89bd54203.tar.gz
rust-1eb53902f3b2b9c02b20472a8c7747b89bd54203.zip
Fix `RegionCtxt::preference_value`.
There's a bad pattern matching confusion present in this function.
`_anon` gets assigned to, and then `_anon` is used as an unbound
variable in the pattern, which is unrelated to the first `_anon`.
If the `_anon` didn't start with `_` the compiler would give warnings.

This was introduced in #104239.

I have rewritten the function to remove the confusion and preserve the
existing behaviour. This seems safest, because the original intent is
not clear.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions