diff --git a/sonar-rust-plugin/src/main/resources/org/sonar/l10n/rust/rules/clippy/metadata.json b/sonar-rust-plugin/src/main/resources/org/sonar/l10n/rust/rules/clippy/metadata.json
index a6be3525..35e7590d 100644
--- a/sonar-rust-plugin/src/main/resources/org/sonar/l10n/rust/rules/clippy/metadata.json
+++ b/sonar-rust-plugin/src/main/resources/org/sonar/l10n/rust/rules/clippy/metadata.json
@@ -239,6 +239,12 @@
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#builtin_type_shadow",
"description": "Clippy lint builtin_type_shadow."
},
+ {
+ "key": "by_ref_peekable_peek",
+ "name": "by_ref_peekable_peek",
+ "url": "https://rust-lang.github.io/rust-clippy/master/index.html#by_ref_peekable_peek",
+ "description": "Clippy lint by_ref_peekable_peek."
+ },
{
"key": "byte_char_slices",
"name": "byte_char_slices",
@@ -377,6 +383,12 @@
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#checked_conversions",
"description": "Clippy lint checked_conversions."
},
+ {
+ "key": "chunks_exact_to_as_chunks",
+ "name": "chunks_exact_to_as_chunks",
+ "url": "https://rust-lang.github.io/rust-clippy/master/index.html#chunks_exact_to_as_chunks",
+ "description": "Clippy lint chunks_exact_to_as_chunks."
+ },
{
"key": "clear_with_drain",
"name": "clear_with_drain",
@@ -1127,6 +1139,12 @@
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map",
"description": "Clippy lint for_kv_map."
},
+ {
+ "key": "for_unbounded_range",
+ "name": "for_unbounded_range",
+ "url": "https://rust-lang.github.io/rust-clippy/master/index.html#for_unbounded_range",
+ "description": "Clippy lint for_unbounded_range."
+ },
{
"key": "forget_non_drop",
"name": "forget_non_drop",
@@ -1157,12 +1175,6 @@
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#four_forward_slashes",
"description": "Clippy lint four_forward_slashes."
},
- {
- "key": "from_iter_instead_of_collect",
- "name": "from_iter_instead_of_collect",
- "url": "https://rust-lang.github.io/rust-clippy/master/index.html#from_iter_instead_of_collect",
- "description": "Clippy lint from_iter_instead_of_collect."
- },
{
"key": "from_over_into",
"name": "from_over_into",
@@ -1997,6 +2009,12 @@
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_variant_and",
"description": "Clippy lint manual_is_variant_and."
},
+ {
+ "key": "manual_isolate_lowest_one",
+ "name": "manual_isolate_lowest_one",
+ "url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_isolate_lowest_one",
+ "description": "Clippy lint manual_isolate_lowest_one."
+ },
{
"key": "manual_let_else",
"name": "manual_let_else",
@@ -2243,6 +2261,12 @@
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#map_identity",
"description": "Clippy lint map_identity."
},
+ {
+ "key": "map_or_identity",
+ "name": "map_or_identity",
+ "url": "https://rust-lang.github.io/rust-clippy/master/index.html#map_or_identity",
+ "description": "Clippy lint map_or_identity."
+ },
{
"key": "map_unwrap_or",
"name": "map_unwrap_or",
@@ -4487,6 +4511,12 @@
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap",
"description": "Clippy lint unnecessary_unwrap."
},
+ {
+ "key": "unnecessary_unwrap_unchecked",
+ "name": "unnecessary_unwrap_unchecked",
+ "url": "https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap_unchecked",
+ "description": "Clippy lint unnecessary_unwrap_unchecked."
+ },
{
"key": "unnecessary_wraps",
"name": "unnecessary_wraps",
@@ -4559,6 +4589,12 @@
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#unused_async",
"description": "Clippy lint unused_async."
},
+ {
+ "key": "unused_async_trait_impl",
+ "name": "unused_async_trait_impl",
+ "url": "https://rust-lang.github.io/rust-clippy/master/index.html#unused_async_trait_impl",
+ "description": "Clippy lint unused_async_trait_impl."
+ },
{
"key": "unused_enumerate_index",
"name": "unused_enumerate_index",
@@ -4817,6 +4853,12 @@
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_in_or_patterns",
"description": "Clippy lint wildcard_in_or_patterns."
},
+ {
+ "key": "with_capacity_zero",
+ "name": "with_capacity_zero",
+ "url": "https://rust-lang.github.io/rust-clippy/master/index.html#with_capacity_zero",
+ "description": "Clippy lint with_capacity_zero."
+ },
{
"key": "write_literal",
"name": "write_literal",
diff --git a/sonar-rust-plugin/src/main/resources/org/sonar/l10n/rust/rules/clippy/upstream.json b/sonar-rust-plugin/src/main/resources/org/sonar/l10n/rust/rules/clippy/upstream.json
index e4f590a4..8afffb61 100644
--- a/sonar-rust-plugin/src/main/resources/org/sonar/l10n/rust/rules/clippy/upstream.json
+++ b/sonar-rust-plugin/src/main/resources/org/sonar/l10n/rust/rules/clippy/upstream.json
@@ -1,6 +1,6 @@
{
- "rust_release_tag": "1.97.1",
- "rust_release_published_at": "2026-07-16T12:29:15Z",
+ "rust_release_tag": "1.98.0",
+ "rust_release_published_at": "2026-08-20T18:05:33Z",
"source_repo": "rust-lang/rust",
"source_path": "src/tools/clippy/clippy_lints/src",
"generator_version": "python-v1"
diff --git a/sonar-rust-plugin/src/test/java/org/sonarsource/rust/clippy/ClippyRulesDefinitionTest.java b/sonar-rust-plugin/src/test/java/org/sonarsource/rust/clippy/ClippyRulesDefinitionTest.java
index 0c174bcf..43c43f09 100644
--- a/sonar-rust-plugin/src/test/java/org/sonarsource/rust/clippy/ClippyRulesDefinitionTest.java
+++ b/sonar-rust-plugin/src/test/java/org/sonarsource/rust/clippy/ClippyRulesDefinitionTest.java
@@ -39,7 +39,7 @@ void test() {
assertThat(repository.isExternal()).isTrue();
var rules = repository.rules();
- assertThat(rules).hasSize(815);
+ assertThat(rules).hasSize(822);
var rule = repository.rule("unit_cmp");
assertThat(rule).isNotNull();