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
8 changes: 4 additions & 4 deletions tests/testsuite/fix.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Tests for the `cargo fix` command.
//! <https://github.com/rust-lang/cargo/blob/930b4f62cfcd1f0eabdb30a56d91bf6844b739bf/tests/testsuite/fix.rs>
//! <https://github.com/rust-lang/cargo/blob/12fa1daac8e5c05578c673f50a622bfd52859d01/tests/testsuite/fix.rs>

use std::env;
use std::path::{Path, PathBuf};
Expand Down Expand Up @@ -126,7 +126,7 @@ error[E0308]: mismatched types
| |
| [HELP] remove this `mut`
|
= [NOTE] `#[warn(unused_mut)]` on by default
= [NOTE] `#[warn(unused_mut)]` [..]on by default

For more information about this error, try `rustc --explain E0308`.

Expand Down Expand Up @@ -2020,7 +2020,7 @@ The original errors are:
3 | let mut x = 1;
| ^ [HELP] if this is intentional, prefix it with an underscore: `_x`
|
= [NOTE] `#[warn(unused_variables)]` on by default
= [NOTE] `#[warn(unused_variables)]` [..]on by default

[WARNING] variable does not need to be mutable
--> src/lib.rs:3:25
Expand All @@ -2030,7 +2030,7 @@ The original errors are:
| |
| [HELP] remove this `mut`
|
= [NOTE] `#[warn(unused_mut)]` on by default
= [NOTE] `#[warn(unused_mut)]` [..]on by default


[NOTE] try using `--broken-code` to fix errors
Expand Down
6 changes: 3 additions & 3 deletions tests/testsuite/fixit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fn fixable_and_unfixable() {
6 | let c = 10;
| ^ [HELP] if this is intentional, prefix it with an underscore: `_c`
|
= [NOTE] `#[warn(unused_variables)]` on by default
= [NOTE] `#[warn(unused_variables)]` [..]on by default


"#]])
Expand Down Expand Up @@ -203,7 +203,7 @@ fn print_errors_after_fixed() {
1 | fn bar() {}
| ^^^
|
= [NOTE] `#[warn(dead_code)]` on by default
= [NOTE] `#[warn(dead_code)]` [..]on by default

[CHECKING] a v0.1.0
[FIXED] a/src/lib.rs (1 fix)
Expand All @@ -213,7 +213,7 @@ fn print_errors_after_fixed() {
1 | fn bar() {}
| ^^^
|
= [NOTE] `#[warn(dead_code)]` on by default
= [NOTE] `#[warn(dead_code)]` [..]on by default


"#]])
Expand Down
Loading