forked from rust-lang/rust-clippy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9fd308f
commit faea4f9
Showing
3 changed files
with
29 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,65 @@ | ||
error: these look like formatting arguments but are not part of a formatting macro | ||
error: this looks like a formatting argument but it is not part of a formatting macro | ||
--> tests/ui/literal_string_with_formatting_arg.rs:7:15 | ||
| | ||
LL | x.expect("{y} {}"); | ||
| ^^^^^^ | ||
| ^^^ | ||
| | ||
= note: `-D clippy::literal-string-with-formatting-arg` implied by `-D warnings` | ||
= help: to override `-D warnings` add `#[allow(clippy::literal_string_with_formatting_arg)]` | ||
|
||
error: this looks like a formatting argument but it is not part of a formatting macro | ||
--> tests/ui/literal_string_with_formatting_arg.rs:8:15 | ||
--> tests/ui/literal_string_with_formatting_arg.rs:8:16 | ||
| | ||
LL | x.expect(" {y} bla"); | ||
| ^^^ | ||
|
||
error: this looks like a formatting argument but it is not part of a formatting macro | ||
--> tests/ui/literal_string_with_formatting_arg.rs:9:15 | ||
| | ||
LL | x.expect("{:?}"); | ||
| ^^^^ | ||
|
||
error: this looks like a formatting argument but it is not part of a formatting macro | ||
--> tests/ui/literal_string_with_formatting_arg.rs:9:15 | ||
--> tests/ui/literal_string_with_formatting_arg.rs:10:15 | ||
| | ||
LL | x.expect("{y:?}"); | ||
| ^^^^^ | ||
|
||
error: these look like formatting arguments but are not part of a formatting macro | ||
--> tests/ui/literal_string_with_formatting_arg.rs:10:16 | ||
--> tests/ui/literal_string_with_formatting_arg.rs:11:16 | ||
| | ||
LL | x.expect(" {y:?} {y:?} "); | ||
| ^^^^^ ^^^^^ | ||
|
||
error: this looks like a formatting argument but it is not part of a formatting macro | ||
--> tests/ui/literal_string_with_formatting_arg.rs:11:23 | ||
--> tests/ui/literal_string_with_formatting_arg.rs:12:23 | ||
| | ||
LL | x.expect(" {y:..} {y:?} "); | ||
| ^^^^^ | ||
|
||
error: these look like formatting arguments but are not part of a formatting macro | ||
--> tests/ui/literal_string_with_formatting_arg.rs:12:16 | ||
--> tests/ui/literal_string_with_formatting_arg.rs:13:16 | ||
| | ||
LL | x.expect(r"{y:?} {y:?} "); | ||
| ^^^^^ ^^^^^ | ||
|
||
error: this looks like a formatting argument but it is not part of a formatting macro | ||
--> tests/ui/literal_string_with_formatting_arg.rs:13:16 | ||
--> tests/ui/literal_string_with_formatting_arg.rs:14:16 | ||
| | ||
LL | x.expect(r"{y:?} y:?}"); | ||
| ^^^^^ | ||
|
||
error: these look like formatting arguments but are not part of a formatting macro | ||
--> tests/ui/literal_string_with_formatting_arg.rs:14:19 | ||
--> tests/ui/literal_string_with_formatting_arg.rs:15:19 | ||
| | ||
LL | x.expect(r##" {y:?} {y:?} "##); | ||
| ^^^^^ ^^^^^ | ||
|
||
error: this looks like a formatting argument but it is not part of a formatting macro | ||
--> tests/ui/literal_string_with_formatting_arg.rs:15:17 | ||
| | ||
LL | "\\.+*?()|[]{}^$#&-~".chars().any(|x| x == 'a'); | ||
| ^^ | ||
|
||
error: this looks like a formatting argument but it is not part of a formatting macro | ||
--> tests/ui/literal_string_with_formatting_arg.rs:17:18 | ||
| | ||
LL | x.expect("———{}"); | ||
| ^^ | ||
LL | x.expect("———{:?}"); | ||
| ^^^^ | ||
|
||
error: aborting due to 10 previous errors | ||
|