X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Fsymbol-names%2Fissue-60925.rs;h=09d68eebb950e77377363f24b46cf4fe7386eb57;hb=760a98fb5e1c964efbe5cb36710fff892b547c51;hp=e9f763ad7cf67ca425d8c2911e5c7e5e803fa4b4;hpb=3013c0b698d7e294333be280e7051f96f7da2f41;p=rust.git diff --git a/src/test/ui/symbol-names/issue-60925.rs b/src/test/ui/symbol-names/issue-60925.rs index e9f763ad7cf..09d68eebb95 100644 --- a/src/test/ui/symbol-names/issue-60925.rs +++ b/src/test/ui/symbol-names/issue-60925.rs @@ -1,8 +1,13 @@ +// ignore-tidy-linelength +// revisions: legacy v0 +//[legacy]compile-flags: -Z symbol-mangling-version=legacy + //[v0]compile-flags: -Z symbol-mangling-version=v0 + #![feature(rustc_attrs)] // This test is the same code as in ui/issue-53912.rs but this test checks that the symbol mangling // fix produces the correct result, whereas that test just checks that the reproduction compiles -// successfully and doesn't segfault +// successfully and doesn't crash LLVM fn dummy() {} @@ -14,7 +19,12 @@ mod foo { impl Foo<::llvm::Foo> { #[rustc_symbol_name] -//~^ ERROR _ZN11issue_609253foo36Foo$LT$issue_60925..llv$6d$..Foo$GT$3foo17h059a991a004536adE + //[legacy]~^ ERROR symbol-name(_ZN11issue_609253foo36Foo$LT$issue_60925..llv$6d$..Foo$GT$3foo + //[legacy]~| ERROR demangling(issue_60925::foo::Foo>::foo) + //[v0]~| ERROR demangling-alt(>::foo) pub(crate) fn foo() { for _ in 0..0 { for _ in &[::dummy()] {