diff options
| author | bors <bors@rust-lang.org> | 2023-02-10 10:10:12 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-02-10 10:10:12 +0000 |
| commit | d1ac43a9b9a8250d858705b0796dfed6186e18db (patch) | |
| tree | 61bcd957939f16716173238f6bc142a0bb91138e /compiler/rustc_hir_analysis/src/outlives/utils.rs | |
| parent | 9b8dbd558c1c4b25c55d987e22baba312ae980ad (diff) | |
| parent | 3689295a6bf43a6defbb392e1aca08757fa14a59 (diff) | |
| download | rust-d1ac43a9b9a8250d858705b0796dfed6186e18db.tar.gz rust-d1ac43a9b9a8250d858705b0796dfed6186e18db.zip | |
Auto merge of #107652 - estebank:re_error, r=oli-obk
Introduce `ReError` CC #69314 r? `@nagisa`
Diffstat (limited to 'compiler/rustc_hir_analysis/src/outlives/utils.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/outlives/utils.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_hir_analysis/src/outlives/utils.rs b/compiler/rustc_hir_analysis/src/outlives/utils.rs index 9459c5f54ab..c5c5f63a108 100644 --- a/compiler/rustc_hir_analysis/src/outlives/utils.rs +++ b/compiler/rustc_hir_analysis/src/outlives/utils.rs @@ -170,6 +170,8 @@ fn is_free_region(region: Region<'_>) -> bool { // ignore it. We can't put it on the struct header anyway. ty::ReLateBound(..) => false, + ty::ReError(_) => false, + // These regions don't appear in types from type declarations: ty::ReErased | ty::ReVar(..) | ty::RePlaceholder(..) | ty::ReFree(..) => { bug!("unexpected region in outlives inference: {:?}", region); |
