forked from rust-lang/rust
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#12646 - GuillaumeGomez:regression-test-12537,…
… r=blyxyas Turn `duplicated_attributes` into a late lint Fixes rust-lang#12537. changelog: Turn `duplicated_attributes` into a late lint
- Loading branch information
Showing
8 changed files
with
77 additions
and
39 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
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,55 +1,38 @@ | ||
error: duplicated attribute | ||
--> tests/ui/duplicated_attributes.rs:4:10 | ||
--> tests/ui/duplicated_attributes.rs:6:10 | ||
| | ||
LL | #![allow(dead_code)] | ||
| ^^^^^^^^^ | ||
| | ||
note: first defined here | ||
--> tests/ui/duplicated_attributes.rs:3:10 | ||
--> tests/ui/duplicated_attributes.rs:5:10 | ||
| | ||
LL | #![allow(dead_code)] | ||
| ^^^^^^^^^ | ||
help: remove this attribute | ||
--> tests/ui/duplicated_attributes.rs:4:10 | ||
--> tests/ui/duplicated_attributes.rs:6:10 | ||
| | ||
LL | #![allow(dead_code)] | ||
| ^^^^^^^^^ | ||
= note: `-D clippy::duplicated-attributes` implied by `-D warnings` | ||
= help: to override `-D warnings` add `#[allow(clippy::duplicated_attributes)]` | ||
|
||
error: duplicated attribute | ||
--> tests/ui/duplicated_attributes.rs:9:9 | ||
--> tests/ui/duplicated_attributes.rs:14:9 | ||
| | ||
LL | #[allow(dead_code)] | ||
| ^^^^^^^^^ | ||
| | ||
note: first defined here | ||
--> tests/ui/duplicated_attributes.rs:8:9 | ||
--> tests/ui/duplicated_attributes.rs:13:9 | ||
| | ||
LL | #[allow(dead_code)] | ||
| ^^^^^^^^^ | ||
help: remove this attribute | ||
--> tests/ui/duplicated_attributes.rs:9:9 | ||
--> tests/ui/duplicated_attributes.rs:14:9 | ||
| | ||
LL | #[allow(dead_code)] | ||
| ^^^^^^^^^ | ||
|
||
error: duplicated attribute | ||
--> tests/ui/duplicated_attributes.rs:15:7 | ||
| | ||
LL | #[cfg(unix)] | ||
| ^^^^ | ||
| | ||
note: first defined here | ||
--> tests/ui/duplicated_attributes.rs:13:7 | ||
| | ||
LL | #[cfg(unix)] | ||
| ^^^^ | ||
help: remove this attribute | ||
--> tests/ui/duplicated_attributes.rs:15:7 | ||
| | ||
LL | #[cfg(unix)] | ||
| ^^^^ | ||
|
||
error: aborting due to 3 previous errors | ||
error: aborting due to 2 previous errors | ||
|
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