Skip to content

Commit 8113d54

Browse files
authored
Rollup merge of rust-lang#137305 - nnethercote:rustc_middle-2, r=lcnr
Tweaks in and around `rustc_middle` A bunch of tiny improvements I found while working on bigger things. r? ```@lcnr```
2 parents 85329db + 41a3455 commit 8113d54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/redundant_clone.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ impl<'tcx> LateLintPass<'tcx> for RedundantClone {
205205
let node = mir.source_scopes[scope]
206206
.local_data
207207
.as_ref()
208-
.assert_crate_local()
208+
.unwrap_crate_local()
209209
.lint_root;
210210

211211
if let Some(snip) = span.get_source_text(cx)

0 commit comments

Comments
 (0)