diff options
| author | Michael Goulet <michael@errs.io> | 2023-06-19 20:48:46 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-06-22 18:34:24 +0000 |
| commit | 2fa796a3c796c819b53421577d5fd2e0f6a9f920 (patch) | |
| tree | 773546aed27261b207b12aa8803e137819680a5c /compiler/rustc_hir_analysis | |
| parent | 46a650f4e0783da10513e6d41c5f3c69e42b0198 (diff) | |
| download | rust-2fa796a3c796c819b53421577d5fd2e0f6a9f920.tar.gz rust-2fa796a3c796c819b53421577d5fd2e0f6a9f920.zip | |
Expect clause more
Diffstat (limited to 'compiler/rustc_hir_analysis')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/collect/item_bounds.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/collect/item_bounds.rs b/compiler/rustc_hir_analysis/src/collect/item_bounds.rs index e9763048288..958313fee6f 100644 --- a/compiler/rustc_hir_analysis/src/collect/item_bounds.rs +++ b/compiler/rustc_hir_analysis/src/collect/item_bounds.rs @@ -47,7 +47,7 @@ fn associated_type_bounds<'tcx>( } _ => false, }) - .map(|(pred, span)| (pred.as_clause().unwrap(), span)); + .map(|(pred, span)| (pred.expect_clause(), span)); let all_bounds = tcx.arena.alloc_from_iter(bounds.clauses().chain(bounds_from_parent)); debug!( |
