Skip to content

Commit 251f04e

Browse files
author
Jorge Aparicio
committed
fix: "abort" -> PanicStrategy
1 parent 470eff7 commit 251f04e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustc_back/target/thumb_base.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535
// differentiate these targets from our other `arm(v7)-*-*-gnueabi(hf)` targets in the context of
3636
// build scripts / gcc flags.
3737

38-
use target::TargetOptions;
38+
use PanicStrategy;
3939
use std::default::Default;
40+
use target::TargetOptions;
4041

4142
pub fn opts() -> TargetOptions {
4243
// See rust-lang/rfcs#1645 for a discussion about these defaults
@@ -47,7 +48,7 @@ pub fn opts() -> TargetOptions {
4748
linker: "arm-none-eabi-gcc".to_string(),
4849
// Because these devices have very little resources having an unwinder is too onerous so we
4950
// default to "abort" because the "unwind" strategy is very rare.
50-
panic_strategy: "abort".to_string(),
51+
panic_strategy: PanicStrategy::Abort,
5152
// Similarly, one almost always never wants to use relocatable code because of the extra
5253
// costs it involves.
5354
relocation_model: "static".to_string(),

0 commit comments

Comments
 (0)