-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add a more complex symbol-name testcase.
- Loading branch information
Showing
3 changed files
with
98 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,74 @@ | ||
error: symbol-name(_ZN5impl13foo3Foo3bar17he53b9bee7600ed8dE) | ||
--> $DIR/impl1.rs:12:9 | ||
--> $DIR/impl1.rs:13:9 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: demangling(impl1::foo::Foo::bar::he53b9bee7600ed8d) | ||
--> $DIR/impl1.rs:12:9 | ||
--> $DIR/impl1.rs:13:9 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: demangling-alt(impl1::foo::Foo::bar) | ||
--> $DIR/impl1.rs:12:9 | ||
--> $DIR/impl1.rs:13:9 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: def-path(foo::Foo::bar) | ||
--> $DIR/impl1.rs:19:9 | ||
--> $DIR/impl1.rs:20:9 | ||
| | ||
LL | #[rustc_def_path] | ||
| ^^^^^^^^^^^^^^^^^ | ||
|
||
error: symbol-name(_ZN5impl13bar33_$LT$impl$u20$impl1..foo..Foo$GT$3baz17h86c41f0462d901d4E) | ||
--> $DIR/impl1.rs:30:9 | ||
--> $DIR/impl1.rs:31:9 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: demangling(impl1::bar::<impl impl1::foo::Foo>::baz::h86c41f0462d901d4) | ||
--> $DIR/impl1.rs:30:9 | ||
--> $DIR/impl1.rs:31:9 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: demangling-alt(impl1::bar::<impl impl1::foo::Foo>::baz) | ||
--> $DIR/impl1.rs:30:9 | ||
--> $DIR/impl1.rs:31:9 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: def-path(bar::<impl foo::Foo>::baz) | ||
--> $DIR/impl1.rs:37:9 | ||
--> $DIR/impl1.rs:38:9 | ||
| | ||
LL | #[rustc_def_path] | ||
| ^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 8 previous errors | ||
error: symbol-name(_ZN198_$LT$$u5b$$RF$dyn$u20$impl1..Foo$u2b$Assoc$u20$$u3d$$u20$extern$u20$$u22$C$u22$$u20$fn$LP$$RF$u8$RP$$u2b$impl1..AutoTrait$u3b$$u20$_$u5d$$u20$as$u20$impl1..main..$u7b$$u7b$closure$u7d$$u7d$..Bar$GT$6method17h6f205aef6a8ccc7bE) | ||
--> $DIR/impl1.rs:63:13 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: demangling(<[&dyn impl1::Foo+Assoc = extern "C" fn(&u8)+impl1::AutoTrait; _] as impl1::main::{{closure}}::Bar>::method::h6f205aef6a8ccc7b) | ||
--> $DIR/impl1.rs:63:13 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: demangling-alt(<[&dyn impl1::Foo+Assoc = extern "C" fn(&u8)+impl1::AutoTrait; _] as impl1::main::{{closure}}::Bar>::method) | ||
--> $DIR/impl1.rs:63:13 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: def-path(<[&dyn Foo<Assoc = for<'r> extern "C" fn(&'r u8)> + AutoTrait; _] as main::{{closure}}#1::Bar>::method) | ||
--> $DIR/impl1.rs:70:13 | ||
| | ||
LL | #[rustc_def_path] | ||
| ^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 12 previous errors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,74 @@ | ||
error: symbol-name(_RNvMNtCs4fqI2P2rA04_5impl13fooNtB2_3Foo3bar) | ||
--> $DIR/impl1.rs:12:9 | ||
--> $DIR/impl1.rs:13:9 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: demangling(<impl1[317d481089b8c8fe]::foo::Foo>::bar) | ||
--> $DIR/impl1.rs:12:9 | ||
--> $DIR/impl1.rs:13:9 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: demangling-alt(<impl1::foo::Foo>::bar) | ||
--> $DIR/impl1.rs:12:9 | ||
--> $DIR/impl1.rs:13:9 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: def-path(foo::Foo::bar) | ||
--> $DIR/impl1.rs:19:9 | ||
--> $DIR/impl1.rs:20:9 | ||
| | ||
LL | #[rustc_def_path] | ||
| ^^^^^^^^^^^^^^^^^ | ||
|
||
error: symbol-name(_RNvMNtCs4fqI2P2rA04_5impl13barNtNtB4_3foo3Foo3baz) | ||
--> $DIR/impl1.rs:30:9 | ||
--> $DIR/impl1.rs:31:9 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: demangling(<impl1[317d481089b8c8fe]::foo::Foo>::baz) | ||
--> $DIR/impl1.rs:30:9 | ||
--> $DIR/impl1.rs:31:9 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: demangling-alt(<impl1::foo::Foo>::baz) | ||
--> $DIR/impl1.rs:30:9 | ||
--> $DIR/impl1.rs:31:9 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: def-path(bar::<impl foo::Foo>::baz) | ||
--> $DIR/impl1.rs:37:9 | ||
--> $DIR/impl1.rs:38:9 | ||
| | ||
LL | #[rustc_def_path] | ||
| ^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 8 previous errors | ||
error: symbol-name(_RNvXNCNvCs4fqI2P2rA04_5impl14mains_0ARDNtB6_3Foop5AssocFG0_KCRL0_hEuNtB6_9AutoTraitEL_j3_NtB2_3Bar6method) | ||
--> $DIR/impl1.rs:63:13 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: demangling(<[&dyn impl1[317d481089b8c8fe]::Foo<Assoc = for<'a, 'b> extern "C" fn(&'b u8)> + impl1[317d481089b8c8fe]::AutoTrait; 3: usize] as impl1[317d481089b8c8fe]::main::{closure#1}::Bar>::method) | ||
--> $DIR/impl1.rs:63:13 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: demangling-alt(<[&dyn impl1::Foo<Assoc = for<'a, 'b> extern "C" fn(&'b u8)> + impl1::AutoTrait; 3] as impl1::main::{closure#1}::Bar>::method) | ||
--> $DIR/impl1.rs:63:13 | ||
| | ||
LL | #[rustc_symbol_name] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: def-path(<[&dyn Foo<Assoc = for<'r> extern "C" fn(&'r u8)> + AutoTrait; _] as main::{{closure}}#1::Bar>::method) | ||
--> $DIR/impl1.rs:70:13 | ||
| | ||
LL | #[rustc_def_path] | ||
| ^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 12 previous errors | ||
|