diff options
| author | bors <bors@rust-lang.org> | 2025-02-21 19:57:50 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-02-21 19:57:50 +0000 |
| commit | 794c12416b2138064af1f2746646973fafd9419d (patch) | |
| tree | d76a0a0653625e059639a98e302da022f10a2431 /compiler/rustc_trait_selection/src/errors.rs | |
| parent | 71e06b9c59d6af50fdc55aed75620493d29baf98 (diff) | |
| parent | cfc2d111ed7d45a1f99672211a99ba105ae4e4de (diff) | |
| download | rust-794c12416b2138064af1f2746646973fafd9419d.tar.gz rust-794c12416b2138064af1f2746646973fafd9419d.zip | |
Auto merge of #137397 - matthiaskrgr:rollup-ls2pilo, r=matthiaskrgr
Rollup of 10 pull requests Successful merges: - #132876 (rustdoc book: acknowledge --document-hidden-items) - #136148 (Optionally add type names to `TypeId`s.) - #136609 (libcore/net: `IpAddr::as_octets()`) - #137336 (Stabilise `os_str_display`) - #137350 (Move methods from Map to TyCtxt, part 3.) - #137353 (Implement `read_buf` for WASI stdin) - #137361 (Refactor `OperandRef::extract_field` to prep for MCP838) - #137367 (Do not exempt nonexistent platforms from platform policy) - #137374 (Stacker now handles miri using a noop impl itself) - #137392 (remove few unused fields) r? `@ghost` `@rustbot` modify labels: rollup
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 |
