Skip to content

Commit 5f26ace

Browse files
authored
fix: Fixed nightly tests failing due to unused_variables lint (#16098)
### What does this PR try to resolve? Fixes nightly tests in CI. Follow up on #16082 tracked in: #16097 r? @weihanglo
2 parents bee8cb7 + 920cf6f commit 5f26ace

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/rustfix/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustfix"
3-
version = "0.9.3"
3+
version = "0.9.4"
44
authors = [
55
"Pascal Hertleif <[email protected]>",
66
"Oliver Schneider <[email protected]>",

crates/rustfix/tests/parse_and_replace.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,11 @@ macro_rules! run_test {
177177
};
178178
}
179179

180-
run_test! {
181-
closure_immutable_outer_variable,
182-
"closure-immutable-outer-variable.rs"
183-
}
180+
// NOTE: Temporarily disabled due to failures on nightly. Fix tracked in #16097
181+
// run_test! {
182+
// closure_immutable_outer_variable,
183+
// "closure-immutable-outer-variable.rs"
184+
// }
184185
run_test! {dedup_suggestions, "dedup-suggestions.rs"}
185186
run_test! {E0178, "E0178.rs"}
186187
run_test! {handle_insert_only, "handle-insert-only.rs"}

tests/testsuite/future_incompat_report.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn incompat_in_local_crate() {
7474
[WARNING] unused variable: `x`
7575
...
7676
77-
[WARNING] `foo` (lib) generated 1 warning
77+
[WARNING] `foo` (lib) generated 1 warning[..]
7878
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
7979
[WARNING] the following packages contain code that will be rejected by a future version of Rust: foo v0.0.0 ([ROOT]/foo)
8080
[NOTE] to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
@@ -88,7 +88,7 @@ fn incompat_in_local_crate() {
8888
[WARNING] unused variable: `x`
8989
...
9090
91-
[WARNING] `foo` (lib) generated 1 warning
91+
[WARNING] `foo` (lib) generated 1 warning[..]
9292
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
9393
[WARNING] the following packages contain code that will be rejected by a future version of Rust: foo v0.0.0 ([ROOT]/foo)
9494
[NOTE] this report can be shown with `cargo report future-incompatibilities --id 1`

0 commit comments

Comments
 (0)