Skip to content

Commit

Permalink
Remove unused method CodegenBackend::diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Oct 13, 2019
1 parent cf858a8 commit 41d329c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/librustc_codegen_llvm/lib.rs
Expand Up @@ -258,10 +258,6 @@ impl CodegenBackend for LlvmCodegenBackend {
llvm_util::print_version();
}

fn diagnostics(&self) -> &[(&'static str, &'static str)] {
&error_codes::DIAGNOSTICS
}

fn target_features(&self, sess: &Session) -> Vec<Symbol> {
target_features(sess)
}
Expand Down
1 change: 0 additions & 1 deletion src/librustc_codegen_utils/codegen_backend.rs
Expand Up @@ -25,7 +25,6 @@ pub trait CodegenBackend {
fn target_features(&self, _sess: &Session) -> Vec<Symbol> { vec![] }
fn print_passes(&self) {}
fn print_version(&self) {}
fn diagnostics(&self) -> &[(&'static str, &'static str)] { &[] }

fn metadata_loader(&self) -> Box<dyn MetadataLoader + Sync>;
fn provide(&self, _providers: &mut Providers<'_>);
Expand Down

0 comments on commit 41d329c

Please sign in to comment.