File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
compiler/rustc_metadata/src Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -301,14 +301,14 @@ pub struct NoLinkModOverride {
301301
302302#[ derive( Diagnostic ) ]
303303#[ diag( metadata_unsupported_abi_i686) ]
304- pub struct UnsupportedAbiI686 {
304+ pub struct RawDylibUnsupportedAbiI686 {
305305 #[ primary_span]
306306 pub span : Span ,
307307}
308308
309309#[ derive( Diagnostic ) ]
310310#[ diag( metadata_unsupported_abi) ]
311- pub struct UnsupportedAbi {
311+ pub struct RawDylibUnsupportedAbi {
312312 #[ primary_span]
313313 pub span : Span ,
314314}
Original file line number Diff line number Diff line change @@ -653,6 +653,7 @@ impl<'tcx> Collector<'tcx> {
653653 let span = self . tcx . def_span ( item) ;
654654
655655 // this logic is similar to `Target::adjust_abi` (in rustc_target/src/spec/mod.rs) but errors on unsupported inputs
656+ // FIXME: also call `is_abi_supported` here.
656657 let calling_convention = if self . tcx . sess . target . arch == "x86" {
657658 match abi {
658659 ExternAbi :: C { .. } | ExternAbi :: Cdecl { .. } => DllCallingConvention :: C ,
@@ -679,7 +680,7 @@ impl<'tcx> Collector<'tcx> {
679680 DllCallingConvention :: Vectorcall ( self . i686_arg_list_size ( item) )
680681 }
681682 _ => {
682- self . tcx . dcx ( ) . emit_fatal ( errors:: UnsupportedAbiI686 { span } ) ;
683+ self . tcx . dcx ( ) . emit_fatal ( errors:: RawDylibUnsupportedAbiI686 { span } ) ;
683684 }
684685 }
685686 } else {
@@ -688,7 +689,7 @@ impl<'tcx> Collector<'tcx> {
688689 DllCallingConvention :: C
689690 }
690691 _ => {
691- self . tcx . dcx ( ) . emit_fatal ( errors:: UnsupportedAbi { span } ) ;
692+ self . tcx . dcx ( ) . emit_fatal ( errors:: RawDylibUnsupportedAbi { span } ) ;
692693 }
693694 }
694695 } ;
You can’t perform that action at this time.
0 commit comments