File tree 2 files changed +8
-1
lines changed
compiler/rustc_passes/src
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -625,6 +625,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
625
625
sym:: naked,
626
626
sym:: instruction_set,
627
627
sym:: repr,
628
+ sym:: rustc_std_internal_symbol,
628
629
// code generation
629
630
sym:: cold,
630
631
// documentation
Original file line number Diff line number Diff line change 2
2
//@ ignore-nvptx64
3
3
//@ ignore-spirv
4
4
5
- #![ feature( asm_unwind, linkage) ]
5
+ #![ feature( asm_unwind, linkage, rustc_attrs ) ]
6
6
#![ crate_type = "lib" ]
7
7
8
8
use std:: arch:: { asm, naked_asm} ;
@@ -225,3 +225,9 @@ pub extern "C" fn compatible_doc_attributes() {
225
225
pub extern "C" fn compatible_linkage ( ) {
226
226
naked_asm ! ( "" , options( raw) ) ;
227
227
}
228
+
229
+ #[ rustc_std_internal_symbol]
230
+ #[ unsafe( naked) ]
231
+ pub extern "C" fn rustc_std_internal_symbol ( ) {
232
+ naked_asm ! ( "" , options( raw) ) ;
233
+ }
You can’t perform that action at this time.
0 commit comments