File tree Expand file tree Collapse file tree 6 files changed +28
-44
lines changed Expand file tree Collapse file tree 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>(
6666 fx. tcx
6767 . dcx ( )
6868 . 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 ) ;
7075 return ;
7176 }
7277 }
Original file line number Diff line number Diff line change @@ -507,7 +507,12 @@ pub(crate) fn codegen_aarch64_llvm_intrinsic_call<'tcx>(
507507 "unsupported AArch64 llvm intrinsic {}; replacing with trap" ,
508508 intrinsic
509509 ) ) ;
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 ) ;
511516 return ;
512517 }
513518 }
Original file line number Diff line number Diff line change @@ -1316,7 +1316,12 @@ pub(crate) fn codegen_x86_llvm_intrinsic_call<'tcx>(
13161316 fx. tcx
13171317 . dcx ( )
13181318 . 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 ) ;
13201325 return ;
13211326 }
13221327 }
Original file line number Diff line number Diff line change @@ -801,7 +801,11 @@ fn codegen_regular_intrinsic_call<'tcx>(
801801 // FIXME implement 128bit atomics
802802 if fx. tcx . is_compiler_builtins ( LOCAL_CRATE ) {
803803 // 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+ ) ;
805809 return Ok ( ( ) ) ;
806810 } else {
807811 fx. tcx
@@ -832,7 +836,11 @@ fn codegen_regular_intrinsic_call<'tcx>(
832836 // FIXME implement 128bit atomics
833837 if fx. tcx . is_compiler_builtins ( LOCAL_CRATE ) {
834838 // 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+ ) ;
836844 return Ok ( ( ) ) ;
837845 } else {
838846 fx. tcx
Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ mod optimize;
7676mod pointer;
7777mod pretty_clif;
7878mod toolchain;
79- mod trap;
8079mod unsize;
8180mod unwind_module;
8281mod value_and_place;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments