File tree 3 files changed +15
-14
lines changed
tests/run-make/track-path-dep-info
3 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,6 @@ run-make/target-without-atomic-cas/Makefile
158
158
run-make/test-benches/Makefile
159
159
run-make/thumb-none-cortex-m/Makefile
160
160
run-make/thumb-none-qemu/Makefile
161
- run-make/track-path-dep-info/Makefile
162
161
run-make/track-pgo-dep-info/Makefile
163
162
run-make/translation/Makefile
164
163
run-make/type-mismatch-same-crate-name/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // This test checks the functionality of `tracked_path::path`, a procedural macro
2
+ // feature that adds a dependency to another file inside the procmacro. In this case,
3
+ // the text file is added through this method, and the test checks that the compilation
4
+ // output successfully added the file as a dependency.
5
+ // See https://github.com/rust-lang/rust/pull/84029
6
+
7
+ //FIXME(Oneirical): Try it on musl
8
+
9
+ use run_make_support:: { bare_rustc, fs_wrapper, rustc} ;
10
+
11
+ fn main ( ) {
12
+ bare_rustc ( ) . input ( "macro_def.rs" ) . run ( ) ;
13
+ rustc ( ) . env ( "EXISTING_PROC_MACRO_ENV" , "1" ) . emit ( "dep-info" ) . input ( "macro_use.rs" ) . run ( ) ;
14
+ assert ! ( fs_wrapper:: read_to_string( "macro_use.d" ) . contains( "emojis.txt:" ) ) ;
15
+ }
You can’t perform that action at this time.
0 commit comments