mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 02:27:39 +03:00
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:
committed by
Mark Rousskov
parent
0644cc1242
commit
b4e77d21bc
@@ -8,8 +8,8 @@ fn ffi(
|
||||
#[allow(unused_mut)] a: i32,
|
||||
#[cfg(something)] b: i32,
|
||||
#[cfg_attr(something, cfg(nothing))] c: i32,
|
||||
#[deny(unused_mut)] d: i32,
|
||||
#[forbid(unused_mut)] #[warn(unused_mut)] ...
|
||||
#[forbid(unused_mut)] d: i32,
|
||||
#[deny(unused_mut)] #[warn(unused_mut)] ...
|
||||
);
|
||||
}
|
||||
|
||||
@@ -17,16 +17,16 @@ fn ffi(
|
||||
#[allow(unused_mut)] a: i32,
|
||||
#[cfg(something)] b: i32,
|
||||
#[cfg_attr(something, cfg(nothing))] c: i32,
|
||||
#[deny(unused_mut)] d: i32,
|
||||
#[forbid(unused_mut)] #[warn(unused_mut)] e: i32
|
||||
#[forbid(unused_mut)] d: i32,
|
||||
#[deny(unused_mut)] #[warn(unused_mut)] e: i32
|
||||
);
|
||||
|
||||
pub fn foo(
|
||||
#[allow(unused_mut)] a: i32,
|
||||
#[cfg(something)] b: i32,
|
||||
#[cfg_attr(something, cfg(nothing))] c: i32,
|
||||
#[deny(unused_mut)] d: i32,
|
||||
#[forbid(unused_mut)] #[warn(unused_mut)] _e: i32
|
||||
#[forbid(unused_mut)] d: i32,
|
||||
#[deny(unused_mut)] #[warn(unused_mut)] _e: i32
|
||||
) {}
|
||||
|
||||
// self
|
||||
|
||||
Reference in New Issue
Block a user