Skip to content

Commit 41d329c

Browse files
committed
Remove unused method CodegenBackend::diagnostics
1 parent cf858a8 commit 41d329c

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/librustc_codegen_llvm/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,6 @@ impl CodegenBackend for LlvmCodegenBackend {
258258
llvm_util::print_version();
259259
}
260260

261-
fn diagnostics(&self) -> &[(&'static str, &'static str)] {
262-
&error_codes::DIAGNOSTICS
263-
}
264-
265261
fn target_features(&self, sess: &Session) -> Vec<Symbol> {
266262
target_features(sess)
267263
}

src/librustc_codegen_utils/codegen_backend.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ pub trait CodegenBackend {
2525
fn target_features(&self, _sess: &Session) -> Vec<Symbol> { vec![] }
2626
fn print_passes(&self) {}
2727
fn print_version(&self) {}
28-
fn diagnostics(&self) -> &[(&'static str, &'static str)] { &[] }
2928

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

0 commit comments

Comments
 (0)