Skip to content

Commit 8dab738

Browse files
committed
Rename HandlerInner::delay_span_bug as HandlerInner::span_delayed_bug.
Because the corresponding `Level` is `DelayedBug` and `span_delayed_bug` follows the pattern used everywhere else: `span_err`, `span_warning`, etc.
1 parent dc702e3 commit 8dab738

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/integration.rs

Lines changed: 4 additions & 4 deletions
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)