1
Fork 0

Rollup merge of #122749 - aliemjay:region-err, r=compiler-errors

make `type_flags(ReError) & HAS_ERROR`

Self-explanatory. `TypeVisitableExt::references_error(ReError)` incorrectly returned `false`.
This commit is contained in:
Jacob Pratt 2024-03-20 20:29:45 -04:00 committed by GitHub
commit 4e792df4ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
49 changed files with 152 additions and 625 deletions

View file

@ -251,6 +251,7 @@ impl<'tcx> Region<'tcx> {
}
ty::ReError(_) => {
flags = flags | TypeFlags::HAS_FREE_REGIONS;
flags = flags | TypeFlags::HAS_ERROR;
}
}