diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2016-10-03 22:54:59 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2016-10-03 22:54:59 -0500 |
| commit | 251f04e90dbffc63642854fdc003ea7254a1151c (patch) | |
| tree | 7fac1fb2f16889de904af08a657c8da1462702e7 | |
| parent | 470eff75df9184f3cc497fc8451f5ed558df3c30 (diff) | |
| download | rust-251f04e90dbffc63642854fdc003ea7254a1151c.tar.gz rust-251f04e90dbffc63642854fdc003ea7254a1151c.zip | |
fix: "abort" -> PanicStrategy
| -rw-r--r-- | src/librustc_back/target/thumb_base.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc_back/target/thumb_base.rs b/src/librustc_back/target/thumb_base.rs index 61be7ff2f5d..b612261dfbf 100644 --- a/src/librustc_back/target/thumb_base.rs +++ b/src/librustc_back/target/thumb_base.rs @@ -35,8 +35,9 @@ // differentiate these targets from our other `arm(v7)-*-*-gnueabi(hf)` targets in the context of // build scripts / gcc flags. -use target::TargetOptions; +use PanicStrategy; use std::default::Default; +use target::TargetOptions; pub fn opts() -> TargetOptions { // See rust-lang/rfcs#1645 for a discussion about these defaults @@ -47,7 +48,7 @@ pub fn opts() -> TargetOptions { linker: "arm-none-eabi-gcc".to_string(), // Because these devices have very little resources having an unwinder is too onerous so we // default to "abort" because the "unwind" strategy is very rare. - panic_strategy: "abort".to_string(), + panic_strategy: PanicStrategy::Abort, // Similarly, one almost always never wants to use relocatable code because of the extra // costs it involves. relocation_model: "static".to_string(), |
