diff options
| author | khyperia <github@khyperia.com> | 2020-09-17 12:14:18 +0200 |
|---|---|---|
| committer | khyperia <github@khyperia.com> | 2020-09-17 12:18:09 +0200 |
| commit | 48655c2d2ca8590c7627f32839ba921297290a1a (patch) | |
| tree | a415b07578f7df2d23acd60c10054c52d1d88bfa /compiler/rustc_codegen_ssa | |
| parent | c946c40d9d47328fc1a08919dec174a77c12fd6b (diff) | |
| download | rust-48655c2d2ca8590c7627f32839ba921297290a1a.tar.gz rust-48655c2d2ca8590c7627f32839ba921297290a1a.zip | |
PR feedback
Diffstat (limited to 'compiler/rustc_codegen_ssa')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/traits/backend.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/traits/backend.rs b/compiler/rustc_codegen_ssa/src/traits/backend.rs index 224c8c2350f..90520f77e3c 100644 --- a/compiler/rustc_codegen_ssa/src/traits/backend.rs +++ b/compiler/rustc_codegen_ssa/src/traits/backend.rs @@ -55,9 +55,11 @@ pub trait CodegenBackend { fn print_passes(&self) {} fn print_version(&self) {} - /// If this plugin provides additional builtin targets, provide them here. + /// If this plugin provides additional builtin targets, provide the one enabled by the options here. /// Be careful: this is called *before* init() is called. - fn target_override(&self, opts: &config::Options) -> Option<Target>; + fn target_override(&self, _opts: &config::Options) -> Option<Target> { + None + } fn metadata_loader(&self) -> Box<MetadataLoaderDyn>; fn provide(&self, _providers: &mut Providers); |
