Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.85-slim AS base
FROM rust:1.88-slim AS base

WORKDIR /analyzer

Expand All @@ -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
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion snippets/one_comment/expected_analysis.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion snippets/two_comments/expected_analysis.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion snippets/with_dependency/expected_analysis.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down