File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
compiler/rustc_passes/src Expand file tree Collapse file tree 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> {
625625 sym:: naked,
626626 sym:: instruction_set,
627627 sym:: repr,
628+ sym:: rustc_std_internal_symbol,
628629 // code generation
629630 sym:: cold,
630631 // documentation
Original file line number Diff line number Diff line change 22//@ ignore-nvptx64
33//@ ignore-spirv
44
5- #![ feature( asm_unwind, linkage) ]
5+ #![ feature( asm_unwind, linkage, rustc_attrs ) ]
66#![ crate_type = "lib" ]
77
88use std:: arch:: { asm, naked_asm} ;
@@ -225,3 +225,9 @@ pub extern "C" fn compatible_doc_attributes() {
225225pub extern "C" fn compatible_linkage ( ) {
226226 naked_asm ! ( "" , options( raw) ) ;
227227}
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