diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-13 14:00:39 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-21 07:12:13 +1100 |
| commit | 5d2d11fd5da7216595154b7a67ca4477281f65a9 (patch) | |
| tree | 7f2f08b87a04a43bd543205f88ed706f885d2d93 /src/tools/clippy | |
| parent | 2f695dc64ec7912ebc93c0322566a0ac2a6a21b4 (diff) | |
| download | rust-5d2d11fd5da7216595154b7a67ca4477281f65a9.tar.gz rust-5d2d11fd5da7216595154b7a67ca4477281f65a9.zip | |
Rename `ClearCrossCrate::assert_crate_local`.
As `unwrap_crate_local`, because it follows exactly the standard form of an `unwrap` function.
Diffstat (limited to 'src/tools/clippy')
| -rw-r--r-- | src/tools/clippy/clippy_lints/src/redundant_clone.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_lints/src/redundant_clone.rs b/src/tools/clippy/clippy_lints/src/redundant_clone.rs index fb1bc494bd9..cfa622aea58 100644 --- a/src/tools/clippy/clippy_lints/src/redundant_clone.rs +++ b/src/tools/clippy/clippy_lints/src/redundant_clone.rs @@ -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) |
