Skip to content

Commit

Permalink
Rollup merge of #137305 - nnethercote:rustc_middle-2, r=lcnr
Browse files Browse the repository at this point in the history
Tweaks in and around `rustc_middle`

A bunch of tiny improvements I found while working on bigger things.

r? ```@lcnr```
  • Loading branch information
matthiaskrgr authored Feb 21, 2025
2 parents 85329db + 41a3455 commit 8113d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/redundant_clone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl<'tcx> LateLintPass<'tcx> for RedundantClone {
let node = mir.source_scopes[scope]
.local_data
.as_ref()
.assert_crate_local()
.unwrap_crate_local()
.lint_root;

if let Some(snip) = span.get_source_text(cx)
Expand Down

0 comments on commit 8113d54

Please sign in to comment.