Skip to content

Commit 40d6078

Browse files
committed
Auto merge of #14765 - weihanglo:rustfix, r=epage
test(rustfix): switch to a simpler case for dedup-suggestions
2 parents 57ffbb6 + 8aec0a4 commit 40d6078

File tree

4 files changed

+363
-51
lines changed

4 files changed

+363
-51
lines changed
Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
// This fixes rust-lang/rust#123304.
2-
// If that lint stops emitting duplicate suggestions,
3-
// we might need to find a substitution.
4-
#![warn(unsafe_op_in_unsafe_fn)]
5-
1+
// See <https://github.com/rust-lang/cargo/issues/13027>
62
macro_rules! foo {
7-
($x:ident) => {
8-
pub unsafe fn $x() { unsafe {
9-
let _ = String::new().as_mut_vec();
10-
}}
3+
() => {
4+
let _ = &1;
115
};
126
}
137

148
fn main() {
15-
foo!(a);
16-
foo!(b);
9+
foo!();
10+
foo!();
1711
}

0 commit comments

Comments
 (0)