Skip to content

Commit ae52a9d

Browse files
Update ui tests
1 parent d57d001 commit ae52a9d

6 files changed

+9
-8
lines changed

tests/ui/allow_attributes_without_reason.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@aux-build:proc_macros.rs
22
#![feature(lint_reasons)]
33
#![deny(clippy::allow_attributes_without_reason)]
4-
#![allow(unfulfilled_lint_expectations)]
4+
#![allow(unfulfilled_lint_expectations, clippy::duplicated_attributes)]
55

66
extern crate proc_macros;
77
use proc_macros::{external, with_span};

tests/ui/allow_attributes_without_reason.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error: `allow` attribute without specifying a reason
22
--> tests/ui/allow_attributes_without_reason.rs:4:1
33
|
4-
LL | #![allow(unfulfilled_lint_expectations)]
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
LL | #![allow(unfulfilled_lint_expectations, clippy::duplicated_attributes)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= help: try adding a reason at the end with `, reason = ".."`
88
note: the lint level is defined here

tests/ui/empty_line_after_doc_comments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@aux-build:proc_macro_attr.rs
22
#![warn(clippy::empty_line_after_doc_comments)]
3-
#![allow(clippy::assertions_on_constants)]
3+
#![allow(clippy::assertions_on_constants, clippy::duplicated_attributes)]
44
#![feature(custom_inner_attributes)]
55
#![rustfmt::skip]
66

tests/ui/empty_line_after_outer_attribute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@aux-build:proc_macro_attr.rs
22
#![warn(clippy::empty_line_after_outer_attr)]
3-
#![allow(clippy::assertions_on_constants)]
3+
#![allow(clippy::assertions_on_constants, clippy::duplicated_attributes)]
44
#![feature(custom_inner_attributes)]
55
#![rustfmt::skip]
66

tests/ui/mixed_attributes_style.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![warn(clippy::mixed_attributes_style)]
2+
#![allow(clippy::duplicated_attributes)]
23

34
#[allow(unused)] //~ ERROR: item has both inner and outer attributes
45
fn foo1() {

tests/ui/mixed_attributes_style.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: item has both inner and outer attributes
2-
--> tests/ui/mixed_attributes_style.rs:3:1
2+
--> tests/ui/mixed_attributes_style.rs:4:1
33
|
44
LL | / #[allow(unused)]
55
LL | | fn foo1() {
@@ -10,7 +10,7 @@ LL | | #![allow(unused)]
1010
= help: to override `-D warnings` add `#[allow(clippy::mixed_attributes_style)]`
1111

1212
error: item has both inner and outer attributes
13-
--> tests/ui/mixed_attributes_style.rs:17:1
13+
--> tests/ui/mixed_attributes_style.rs:18:1
1414
|
1515
LL | / /// linux
1616
LL | |
@@ -19,7 +19,7 @@ LL | | //! windows
1919
| |_______________^
2020

2121
error: item has both inner and outer attributes
22-
--> tests/ui/mixed_attributes_style.rs:32:1
22+
--> tests/ui/mixed_attributes_style.rs:33:1
2323
|
2424
LL | / #[allow(unused)]
2525
LL | | mod bar {

0 commit comments

Comments
 (0)