about summary refs log tree commit diff
path: root/compiler/rustc_target/src/spec/linux_kernel_base.rs
diff options
context:
space:
mode:
authorLoïc BRANSTETT <lolo.branstett@numericable.fr>2022-03-22 11:43:05 +0100
committerLoïc BRANSTETT <lolo.branstett@numericable.fr>2022-04-03 21:29:57 +0200
commitccff48f97b7a4438b9818f8ff0f60c1cd01cdbeb (patch)
treea34d44a1df4bf8bd96e1f807416274343e11aa9b /compiler/rustc_target/src/spec/linux_kernel_base.rs
parent15a242a432c9c40a60def102209a5d40900b7b9d (diff)
downloadrust-ccff48f97b7a4438b9818f8ff0f60c1cd01cdbeb.tar.gz
rust-ccff48f97b7a4438b9818f8ff0f60c1cd01cdbeb.zip
Replace every `String` in Target(Options) with `Cow<'static, str>`
Diffstat (limited to 'compiler/rustc_target/src/spec/linux_kernel_base.rs')
-rw-r--r--compiler/rustc_target/src/spec/linux_kernel_base.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/spec/linux_kernel_base.rs b/compiler/rustc_target/src/spec/linux_kernel_base.rs
index a332e3b847a..0f5d85205f8 100644
--- a/compiler/rustc_target/src/spec/linux_kernel_base.rs
+++ b/compiler/rustc_target/src/spec/linux_kernel_base.rs
@@ -3,7 +3,7 @@ use crate::spec::{FramePointer, PanicStrategy, RelocModel, RelroLevel, StackProb
 
 pub fn opts() -> TargetOptions {
     TargetOptions {
-        env: "gnu".to_string(),
+        env: "gnu".into(),
         disable_redzone: true,
         panic_strategy: PanicStrategy::Abort,
         // don't use probe-stack=inline-asm until rust#83139 and rust#84667 are resolved