diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-02-21 19:01:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-21 19:01:15 +0100 |
| commit | a24eb0bae9b51df19a26c5241cabc3ebc008bd38 (patch) | |
| tree | 4c954998c95fd05672973a5e3581a3cce2b5ce2c /compiler/rustc_trait_selection/src/errors.rs | |
| parent | 2dc7573edd7a90a31baa2d751a53717702947d14 (diff) | |
| parent | 806be25fc9d519d32db1941b0c67a06c8a6faa40 (diff) | |
| download | rust-a24eb0bae9b51df19a26c5241cabc3ebc008bd38.tar.gz rust-a24eb0bae9b51df19a26c5241cabc3ebc008bd38.zip | |
Rollup merge of #137350 - nnethercote:remove-Map-3, r=Zalathar
Move methods from Map to TyCtxt, part 3. A follow-up to #137162. r? `@Zalathar`
Diffstat (limited to 'compiler/rustc_trait_selection/src/errors.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/errors.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/errors.rs b/compiler/rustc_trait_selection/src/errors.rs index ac4399750f5..e8d30d3ee79 100644 --- a/compiler/rustc_trait_selection/src/errors.rs +++ b/compiler/rustc_trait_selection/src/errors.rs @@ -1880,8 +1880,7 @@ pub fn impl_trait_overcapture_suggestion<'tcx>( let opaque_hir_id = tcx.local_def_id_to_hir_id(opaque_def_id); // FIXME: This is a bit too conservative, since it ignores parens already written in AST. let (lparen, rparen) = match tcx - .hir() - .parent_iter(opaque_hir_id) + .hir_parent_iter(opaque_hir_id) .nth(1) .expect("expected ty to have a parent always") .1 |
