From 2d711563d9a08832464909064f54cf3c68513662 Mon Sep 17 00:00:00 2001 From: GHA CI Date: Thu, 5 Sep 2024 22:02:21 +0000 Subject: [PATCH] Automatic deploy to GitHub Pages: c41be9e125e83381777dd5542f39641d3c744e89 --- master/lints.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/master/lints.json b/master/lints.json index 4c66091cb7ae..5bf8830c296b 100644 --- a/master/lints.json +++ b/master/lints.json @@ -2760,7 +2760,7 @@ "level": "warn", "docs": "### What it does\nChecks for manual implementations of the non-exhaustive pattern.\n\n### Why is this bad?\nUsing the #[non_exhaustive] attribute expresses better the intent\nand allows possible optimizations when applied to enums.\n\n### Example\n```rust\nstruct S {\n pub a: i32,\n pub b: i32,\n _c: (),\n}\n\nenum E {\n A,\n B,\n #[doc(hidden)]\n _C,\n}\n\nstruct T(pub i32, pub i32, ());\n```\nUse instead:\n```rust\n#[non_exhaustive]\nstruct S {\n pub a: i32,\n pub b: i32,\n}\n\n#[non_exhaustive]\nenum E {\n A,\n B,\n}\n\n#[non_exhaustive]\nstruct T(pub i32, pub i32);\n```\n\n### Configuration\n\n- `msrv`: The minimum rust version that the project supports. Defaults to the `rust-version` field in `Cargo.toml`\n\n\n (default: `current version`)\n", "version": "1.45.0", - "applicability": "Unspecified" + "applicability": "MaybeIncorrect" }, { "id": "manual_ok_or",