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...)
This commit is contained in:
parent
0644cc1242
commit
b4e77d21bc
1 changed files with 6 additions and 6 deletions
|
@ -8,8 +8,8 @@ extern "C" {
|
||||||
#[allow(unused_mut)] a: i32,
|
#[allow(unused_mut)] a: i32,
|
||||||
#[cfg(something)] b: i32,
|
#[cfg(something)] b: i32,
|
||||||
#[cfg_attr(something, cfg(nothing))] c: i32,
|
#[cfg_attr(something, cfg(nothing))] c: i32,
|
||||||
#[deny(unused_mut)] d: i32,
|
#[forbid(unused_mut)] d: i32,
|
||||||
#[forbid(unused_mut)] #[warn(unused_mut)] ...
|
#[deny(unused_mut)] #[warn(unused_mut)] ...
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,16 +17,16 @@ type FnType = fn(
|
||||||
#[allow(unused_mut)] a: i32,
|
#[allow(unused_mut)] a: i32,
|
||||||
#[cfg(something)] b: i32,
|
#[cfg(something)] b: i32,
|
||||||
#[cfg_attr(something, cfg(nothing))] c: i32,
|
#[cfg_attr(something, cfg(nothing))] c: i32,
|
||||||
#[deny(unused_mut)] d: i32,
|
#[forbid(unused_mut)] d: i32,
|
||||||
#[forbid(unused_mut)] #[warn(unused_mut)] e: i32
|
#[deny(unused_mut)] #[warn(unused_mut)] e: i32
|
||||||
);
|
);
|
||||||
|
|
||||||
pub fn foo(
|
pub fn foo(
|
||||||
#[allow(unused_mut)] a: i32,
|
#[allow(unused_mut)] a: i32,
|
||||||
#[cfg(something)] b: i32,
|
#[cfg(something)] b: i32,
|
||||||
#[cfg_attr(something, cfg(nothing))] c: i32,
|
#[cfg_attr(something, cfg(nothing))] c: i32,
|
||||||
#[deny(unused_mut)] d: i32,
|
#[forbid(unused_mut)] d: i32,
|
||||||
#[forbid(unused_mut)] #[warn(unused_mut)] _e: i32
|
#[deny(unused_mut)] #[warn(unused_mut)] _e: i32
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
// self
|
// self
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue