File tree 6 files changed +28
-44
lines changed
6 files changed +28
-44
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,12 @@ pub(crate) fn codegen_llvm_intrinsic_call<'tcx>(
66
66
fx. tcx
67
67
. dcx ( )
68
68
. warn ( format ! ( "unsupported llvm intrinsic {}; replacing with trap" , intrinsic) ) ;
69
- crate :: trap:: trap_unimplemented ( fx, intrinsic) ;
69
+ let msg = format ! (
70
+ "{intrinsic} is not yet supported.\n \
71
+ See https://github.com/rust-lang/rustc_codegen_cranelift/issues/171\n \
72
+ Please open an issue at https://github.com/rust-lang/rustc_codegen_cranelift/issues"
73
+ ) ;
74
+ crate :: base:: codegen_panic_nounwind ( fx, & msg, None ) ;
70
75
return ;
71
76
}
72
77
}
Original file line number Diff line number Diff line change @@ -507,7 +507,12 @@ pub(crate) fn codegen_aarch64_llvm_intrinsic_call<'tcx>(
507
507
"unsupported AArch64 llvm intrinsic {}; replacing with trap" ,
508
508
intrinsic
509
509
) ) ;
510
- crate :: trap:: trap_unimplemented ( fx, intrinsic) ;
510
+ let msg = format ! (
511
+ "{intrinsic} is not yet supported.\n \
512
+ See https://github.com/rust-lang/rustc_codegen_cranelift/issues/171\n \
513
+ Please open an issue at https://github.com/rust-lang/rustc_codegen_cranelift/issues"
514
+ ) ;
515
+ crate :: base:: codegen_panic_nounwind ( fx, & msg, None ) ;
511
516
return ;
512
517
}
513
518
}
Original file line number Diff line number Diff line change @@ -1316,7 +1316,12 @@ pub(crate) fn codegen_x86_llvm_intrinsic_call<'tcx>(
1316
1316
fx. tcx
1317
1317
. dcx ( )
1318
1318
. warn ( format ! ( "unsupported x86 llvm intrinsic {}; replacing with trap" , intrinsic) ) ;
1319
- crate :: trap:: trap_unimplemented ( fx, intrinsic) ;
1319
+ let msg = format ! (
1320
+ "{intrinsic} is not yet supported.\n \
1321
+ See https://github.com/rust-lang/rustc_codegen_cranelift/issues/171\n \
1322
+ Please open an issue at https://github.com/rust-lang/rustc_codegen_cranelift/issues"
1323
+ ) ;
1324
+ crate :: base:: codegen_panic_nounwind ( fx, & msg, None ) ;
1320
1325
return ;
1321
1326
}
1322
1327
}
Original file line number Diff line number Diff line change @@ -801,7 +801,11 @@ fn codegen_regular_intrinsic_call<'tcx>(
801
801
// FIXME implement 128bit atomics
802
802
if fx. tcx . is_compiler_builtins ( LOCAL_CRATE ) {
803
803
// special case for compiler-builtins to avoid having to patch it
804
- crate :: trap:: trap_unimplemented ( fx, "128bit atomics not yet supported" ) ;
804
+ crate :: base:: codegen_panic_nounwind (
805
+ fx,
806
+ "128bit atomics not yet supported" ,
807
+ None ,
808
+ ) ;
805
809
return Ok ( ( ) ) ;
806
810
} else {
807
811
fx. tcx
@@ -832,7 +836,11 @@ fn codegen_regular_intrinsic_call<'tcx>(
832
836
// FIXME implement 128bit atomics
833
837
if fx. tcx . is_compiler_builtins ( LOCAL_CRATE ) {
834
838
// special case for compiler-builtins to avoid having to patch it
835
- crate :: trap:: trap_unimplemented ( fx, "128bit atomics not yet supported" ) ;
839
+ crate :: base:: codegen_panic_nounwind (
840
+ fx,
841
+ "128bit atomics not yet supported" ,
842
+ None ,
843
+ ) ;
836
844
return Ok ( ( ) ) ;
837
845
} else {
838
846
fx. tcx
Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ mod optimize;
76
76
mod pointer;
77
77
mod pretty_clif;
78
78
mod toolchain;
79
- mod trap;
80
79
mod unsize;
81
80
mod unwind_module;
82
81
mod value_and_place;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments