about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-01-20 07:25:29 +0100
committerGitHub <noreply@github.com>2023-01-20 07:25:29 +0100
commit12d21361163b064af714a6b664f2cb02a38d9971 (patch)
tree0bb8c0cc87f6f8cb5c1c93b383e19621e82687b7 /src
parentda7a0c0b306f84b707c4821a21c71ba35e2d5338 (diff)
parentd6f565b1577084da6623ef861a54438ba7d0db5b (diff)
Rollup merge of #107065 - flip1995:clippyup, r=Manishearth
Clippy: Make sure to include in beta: Move `unchecked_duration_subtraction` to pedantic

This was merged one day too late in order to make it into the last sync. But since we talked about moving this lint to `pedantic` in the meeting, I'd like to get this in rather sooner than later.

https://github.com/rust-lang/rust-clippy/pull/10194

r? ``@Manishearth``
Diffstat (limited to 'src')
-rw-r--r--src/tools/clippy/clippy_lints/src/instant_subtraction.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_lints/src/instant_subtraction.rs b/src/tools/clippy/clippy_lints/src/instant_subtraction.rs
index dd1b23e7d9d..9f6e8940571 100644
--- a/src/tools/clippy/clippy_lints/src/instant_subtraction.rs
+++ b/src/tools/clippy/clippy_lints/src/instant_subtraction.rs
@@ -61,7 +61,7 @@ declare_clippy_lint! {
     /// [`Instant::now()`]: std::time::Instant::now;
     #[clippy::version = "1.65.0"]
     pub UNCHECKED_DURATION_SUBTRACTION,
-    suspicious,
+    pedantic,
     "finds unchecked subtraction of a 'Duration' from an 'Instant'"
 }