Skip to content

Commit 30f8e87

Browse files
committed
Auto merge of rust-lang#118470 - nnethercote:cleanup-error-handlers, r=compiler-errors
Cleanup error handlers Mostly by making function naming more consistent. More to do after this, but this is enough for one PR. r? compiler-errors
2 parents 3a76090 + 8dab738 commit 30f8e87

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/driver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ pub fn main() {
183183
// as simple as moving the call from the hook to main, because `install_ice_hook` doesn't
184184
// accept a generic closure.
185185
let version_info = rustc_tools_util::get_version_info!();
186-
handler.note_without_error(format!("Clippy version: {version_info}"));
186+
handler.note(format!("Clippy version: {version_info}"));
187187
});
188188

189189
exit(rustc_driver::catch_with_exit_code(move || {

tests/integration.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ fn integration_test() {
6969
// debug:
7070
eprintln!("{stderr}");
7171

72-
// this is an internal test to make sure we would correctly panic on a delay_span_bug
72+
// this is an internal test to make sure we would correctly panic on a span_delayed_bug
7373
if repo_name == "matthiaskrgr/clippy_ci_panic_test" {
7474
// we need to kind of switch around our logic here:
7575
// if we find a panic, everything is fine, if we don't panic, SOMETHING is broken about our testing
7676

77-
// the repo basically just contains a delay_span_bug that forces rustc/clippy to panic:
77+
// the repo basically just contains a span_delayed_bug that forces rustc/clippy to panic:
7878
/*
7979
#![feature(rustc_attrs)]
80-
#[rustc_error(delay_span_bug_from_inside_query)]
80+
#[rustc_error(span_delayed_bug_from_inside_query)]
8181
fn main() {}
8282
*/
8383

@@ -86,7 +86,7 @@ fn integration_test() {
8686
return;
8787
}
8888

89-
panic!("panic caused by delay_span_bug was NOT detected! Something is broken!");
89+
panic!("panic caused by span_delayed_bug was NOT detected! Something is broken!");
9090
}
9191

9292
if let Some(backtrace_start) = stderr.find("error: internal compiler error") {

0 commit comments

Comments
 (0)