about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-23 09:42:12 +0100
committerGitHub <noreply@github.com>2024-02-23 09:42:12 +0100
commit7ae95b266ee483b0a63d627ed763cecbe44b388d (patch)
treeca6e420b05f1f4c3f5de4381cc76b8c98e9d8fd2 /compiler/rustc_pattern_analysis/src
parent977bbb4d5030cf02b4e048a6eff9fdf9de1f5fcf (diff)
parentdabacb7431dbca5ea337ed5a456ecf756e2533af (diff)
downloadrust-7ae95b266ee483b0a63d627ed763cecbe44b388d.tar.gz
rust-7ae95b266ee483b0a63d627ed763cecbe44b388d.zip
Rollup merge of #121479 - lcnr:fix-generalize, r=compiler-errors
fix generalizer unsoundness

I ended up getting confused while trying to flip the variances when flipping the order. Should be all right now.

This is only exploitable when generalizing if the `ambient_variance` of the relation is `Contravariant`. This can currently only be the case in the NLL generalizer which only rarely generalizes, causing us to miss this regression. Very much an issue with #121462 however.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions