File tree 5 files changed +16
-6
lines changed
external-crate-panic-handle-no-lint
5 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,6 @@ run-make/issue-46239/Makefile
116
116
run-make/issue-47384/Makefile
117
117
run-make/issue-47551/Makefile
118
118
run-make/issue-51671/Makefile
119
- run-make/issue-53964/Makefile
120
119
run-make/issue-64153/Makefile
121
120
run-make/issue-68794-textrel-on-minimal-lib/Makefile
122
121
run-make/issue-69368/Makefile
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ // Defining a crate that provides panic handling as an external crate
2
+ // could uselessly trigger the "unused external crate" lint. This test
3
+ // creates this situation and checks that the lint is not triggered.
4
+ // See https://github.com/rust-lang/rust/issues/53964
5
+
6
+ use run_make_support:: { rustc, tmp_dir} ;
7
+
8
+ fn main ( ) {
9
+ rustc ( ) . input ( "panic.rs" ) . run ( ) ;
10
+ rustc ( )
11
+ . input ( "app.rs" )
12
+ . panic ( "abort" )
13
+ . emit ( "obj" )
14
+ . library_search_path ( tmp_dir ( ) )
15
+ . run ( ) ;
16
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments