diff --git a/Dockerfile b/Dockerfile index abc2cc5..9fddf20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.85-slim AS base +FROM rust:1.88-slim AS base WORKDIR /analyzer @@ -7,7 +7,7 @@ COPY . . RUN cargo build --release # cargo-local-registry stuff is copied from the test runner -FROM rust:1.85 AS build-cargo-local-registry +FROM rust:1.88 AS build-cargo-local-registry # install cargo-local-registry RUN cargo install --locked cargo-local-registry @@ -16,7 +16,7 @@ WORKDIR /local-registry COPY local-registry/* ./ RUN cargo generate-lockfile && cargo local-registry --sync Cargo.lock . -FROM rust:1.85-slim +FROM rust:1.88-slim WORKDIR /opt/analyzer diff --git a/snippets/one_comment/expected_analysis.json b/snippets/one_comment/expected_analysis.json index 87913e4..233e670 100644 --- a/snippets/one_comment/expected_analysis.json +++ b/snippets/one_comment/expected_analysis.json @@ -3,7 +3,7 @@ { "comment": "rust.general.clippy", "params": { - "clippy_msg": "warning: `--x` could be misinterpreted as pre-decrement by C programmers, is usually a no-op\n --> src/lib.rs:2:5\n |\n2 | --x\n | ^^^\n |\n = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_neg\n = note: `#[warn(clippy::double_neg)]` on by default" + "clippy_msg": "warning: use of a double negation\n --> src/lib.rs:2:5\n |\n2 | --x\n | ^^^\n |\n = note: the prefix `--` could be misinterpreted as a decrement operator which exists in other languages\n = note: use `-= 1` if you meant to decrement the value\n = note: `#[warn(double_negations)]` on by default\nhelp: add parentheses for clarity\n |\n2 | -(-x)\n | + +" }, "type": "informative" } diff --git a/snippets/two_comments/expected_analysis.json b/snippets/two_comments/expected_analysis.json index 65d79b2..73b3c7a 100644 --- a/snippets/two_comments/expected_analysis.json +++ b/snippets/two_comments/expected_analysis.json @@ -3,7 +3,7 @@ { "comment": "rust.general.clippy", "params": { - "clippy_msg": "warning: `--x` could be misinterpreted as pre-decrement by C programmers, is usually a no-op\n --> src/lib.rs:2:12\n |\n2 | return --x;\n | ^^^\n |\n = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_neg\n = note: `#[warn(clippy::double_neg)]` on by default" + "clippy_msg": "warning: use of a double negation\n --> src/lib.rs:2:12\n |\n2 | return --x;\n | ^^^\n |\n = note: the prefix `--` could be misinterpreted as a decrement operator which exists in other languages\n = note: use `-= 1` if you meant to decrement the value\n = note: `#[warn(double_negations)]` on by default\nhelp: add parentheses for clarity\n |\n2 | return -(-x);\n | + +" }, "type": "informative" }, diff --git a/snippets/with_dependency/expected_analysis.json b/snippets/with_dependency/expected_analysis.json index 87913e4..233e670 100644 --- a/snippets/with_dependency/expected_analysis.json +++ b/snippets/with_dependency/expected_analysis.json @@ -3,7 +3,7 @@ { "comment": "rust.general.clippy", "params": { - "clippy_msg": "warning: `--x` could be misinterpreted as pre-decrement by C programmers, is usually a no-op\n --> src/lib.rs:2:5\n |\n2 | --x\n | ^^^\n |\n = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_neg\n = note: `#[warn(clippy::double_neg)]` on by default" + "clippy_msg": "warning: use of a double negation\n --> src/lib.rs:2:5\n |\n2 | --x\n | ^^^\n |\n = note: the prefix `--` could be misinterpreted as a decrement operator which exists in other languages\n = note: use `-= 1` if you meant to decrement the value\n = note: `#[warn(double_negations)]` on by default\nhelp: add parentheses for clarity\n |\n2 | -(-x)\n | + +" }, "type": "informative" }