Skip to content

Commit d1b874b

Browse files
committed
rewrite symbols-include-type-name to rmake
1 parent 9d055b0 commit d1b874b

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ run-make/staticlib-dylib-linkage/Makefile
174174
run-make/std-core-cycle/Makefile
175175
run-make/symbol-mangling-hashed/Makefile
176176
run-make/symbol-visibility/Makefile
177-
run-make/symbols-include-type-name/Makefile
178177
run-make/sysroot-crates-are-unstable/Makefile
179178
run-make/target-cpu-native/Makefile
180179
run-make/target-specs/Makefile

tests/run-make/symbols-include-type-name/Makefile

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Method names used to be obfuscated when exported into symbols,
2+
// leaving only an obscure `<impl>`. After the fix in #30328,
3+
// this test checks that method names are successfully saved in the symbol list.
4+
// See https://github.com/rust-lang/rust/issues/30260
5+
6+
use run_make_support::{invalid_utf8_contains, rustc};
7+
8+
fn main() {
9+
rustc().crate_type("staticlib").emit("asm").input("lib.rs").run();
10+
// Check that symbol names for methods include type names, instead of <impl>.
11+
invalid_utf8_contains("lib.s", "Def");
12+
}

0 commit comments

Comments
 (0)