diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-31 12:28:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-31 12:28:20 +0100 |
| commit | 95f746d2ef188fa4e68ca3bfbe03332a1fa802a0 (patch) | |
| tree | 6dd38dca2fb51ac71c54f3b03c975513db19d6e0 /compiler/rustc_mir_transform/src | |
| parent | 417aa6c1f60098d3b5d102aeb3bfa246259b7b35 (diff) | |
| parent | 0c470910061c9ad379b1cbf8a74315bc1a9b3c74 (diff) | |
| download | rust-95f746d2ef188fa4e68ca3bfbe03332a1fa802a0.tar.gz rust-95f746d2ef188fa4e68ca3bfbe03332a1fa802a0.zip | |
Rollup merge of #136336 - nnethercote:overhaul-rustc_middle-util, r=jieyouxu
Overhaul `rustc_middle::util` It's an odd module with some odd stuff in it. r? `@Noratrieb`
Diffstat (limited to 'compiler/rustc_mir_transform/src')
| -rw-r--r-- | compiler/rustc_mir_transform/src/check_const_item_mutation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/check_const_item_mutation.rs b/compiler/rustc_mir_transform/src/check_const_item_mutation.rs index 7968b666dff..3affe4abbfa 100644 --- a/compiler/rustc_mir_transform/src/check_const_item_mutation.rs +++ b/compiler/rustc_mir_transform/src/check_const_item_mutation.rs @@ -133,7 +133,7 @@ impl<'tcx> Visitor<'tcx> for ConstMutationChecker<'_, 'tcx> { // the `self` parameter of a method call (as the terminator of our current // BasicBlock). If so, we emit a more specific lint. let method_did = self.target_local.and_then(|target_local| { - rustc_middle::util::find_self_call(self.tcx, self.body, target_local, loc.block) + find_self_call(self.tcx, self.body, target_local, loc.block) }); let lint_loc = if method_did.is_some() { self.body.terminator_loc(loc.block) } else { loc }; |
