rustc_target: Refactor away TargetResult

Construction of a built-in target is always infallible now, so `TargetResult` is no longer necessary.
This commit is contained in:
Vadim Petrochenkov
2020-10-05 15:37:55 +03:00
parent f317a93d4d
commit 021fcbd90c
158 changed files with 619 additions and 630 deletions

View File

@@ -1,7 +1,7 @@
use crate::spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
use crate::spec::{LinkerFlavor, Target, TargetOptions};
pub fn target() -> TargetResult {
Ok(Target {
pub fn target() -> Target {
Target {
llvm_target: "mipsisa64r6-unknown-linux-gnuabi64".to_string(),
target_endian: "big".to_string(),
target_pointer_width: "64".to_string(),
@@ -21,5 +21,5 @@ pub fn target() -> TargetResult {
..super::linux_base::opts()
},
})
}
}