Skip to content

Commit e24aa73

Browse files
committed
rewrite old test so that its attributes are consistent with what we want in the language.
(Note that the fact this test existed is a slight sign that we may need a crater run on this bugfix...)
1 parent d7dcae0 commit e24aa73

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/test/ui/rfc-2565-param-attrs/param-attrs-allowed.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@ extern "C" {
88
#[allow(unused_mut)] a: i32,
99
#[cfg(something)] b: i32,
1010
#[cfg_attr(something, cfg(nothing))] c: i32,
11-
#[deny(unused_mut)] d: i32,
12-
#[forbid(unused_mut)] #[warn(unused_mut)] ...
11+
#[forbid(unused_mut)] d: i32,
12+
#[deny(unused_mut)] #[warn(unused_mut)] ...
1313
);
1414
}
1515

1616
type FnType = fn(
1717
#[allow(unused_mut)] a: i32,
1818
#[cfg(something)] b: i32,
1919
#[cfg_attr(something, cfg(nothing))] c: i32,
20-
#[deny(unused_mut)] d: i32,
21-
#[forbid(unused_mut)] #[warn(unused_mut)] e: i32
20+
#[forbid(unused_mut)] d: i32,
21+
#[deny(unused_mut)] #[warn(unused_mut)] e: i32
2222
);
2323

2424
pub fn foo(
2525
#[allow(unused_mut)] a: i32,
2626
#[cfg(something)] b: i32,
2727
#[cfg_attr(something, cfg(nothing))] c: i32,
28-
#[deny(unused_mut)] d: i32,
29-
#[forbid(unused_mut)] #[warn(unused_mut)] _e: i32
28+
#[forbid(unused_mut)] d: i32,
29+
#[deny(unused_mut)] #[warn(unused_mut)] _e: i32
3030
) {}
3131

3232
// self

0 commit comments

Comments
 (0)