diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2020-06-15 11:50:58 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-10-04 12:45:53 -0400 |
| commit | b4e77d21bcf8b15ef7d873005382ba8ca309faf5 (patch) | |
| tree | 720b6a1ae341f393afbdd20e16a686422e6749e5 /src/test | |
| parent | 0644cc1242dbeebb69b1b2496562751ba5d23ffb (diff) | |
| download | rust-b4e77d21bcf8b15ef7d873005382ba8ca309faf5.tar.gz rust-b4e77d21bcf8b15ef7d873005382ba8ca309faf5.zip | |
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...)
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/rfc-2565-param-attrs/param-attrs-allowed.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/rfc-2565-param-attrs/param-attrs-allowed.rs b/src/test/ui/rfc-2565-param-attrs/param-attrs-allowed.rs index 1217f89cb31..a547d09d048 100644 --- a/src/test/ui/rfc-2565-param-attrs/param-attrs-allowed.rs +++ b/src/test/ui/rfc-2565-param-attrs/param-attrs-allowed.rs @@ -8,8 +8,8 @@ extern "C" { #[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 @@ type FnType = fn( #[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 |
