Skip to content

Commit 3003f72

Browse files
committed
fix test
1 parent d42105b commit 3003f72

File tree

5 files changed

+7
-10
lines changed

5 files changed

+7
-10
lines changed

Diff for: src/tools/miri/tests/fail/terminate-terminator.stderr

-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ LL | | let _f = Foo;
1212
LL | | panic!();
1313
LL | | }
1414
| |_^ panic in a function that cannot unwind
15-
...
16-
LL | has_cleanup();
17-
| ------------- in this inlined function call
1815
|
1916
= note: inside `panic_abort` at $DIR/terminate-terminator.rs:LL:CC
2017
note: inside `main`

Diff for: tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ struct SuggestionsInvalidItem {
801801
sub: Span,
802802
}
803803

804-
#[derive(Diagnostic)] //~ ERROR cannot find value `__code_34` in this scope
804+
#[derive(Diagnostic)] //~ ERROR cannot find value `__code_34`
805805
#[diag(no_crate_example)]
806806
struct SuggestionsInvalidLiteral {
807807
#[suggestion(code = 3)]

Diff for: tests/ui-fulldeps/session-diagnostic/diagnostic-derive.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -632,11 +632,11 @@ error[E0425]: cannot find value `nonsense` in module `crate::fluent_generated`
632632
LL | #[diag(nonsense, code = "E0123")]
633633
| ^^^^^^^^ not found in `crate::fluent_generated`
634634

635-
error[E0425]: cannot find value `__code_34` in this scope
635+
error[E0425]: cannot find value `__code_34` in the expanded code of `derive` macro `Diagnostic`
636636
--> $DIR/diagnostic-derive.rs:804:10
637637
|
638638
LL | #[derive(Diagnostic)]
639-
| ^^^^^^^^^^ not found in this scope
639+
| ^^^^^^^^^^ `__code_34` not found in expanded code of this `derive` macro
640640
|
641641
= note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
642642

Diff for: tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -707,9 +707,9 @@ struct BP {
707707
}
708708

709709
#[derive(Subdiagnostic)]
710-
//~^ ERROR cannot find value `__code_29` in this scope
710+
//~^ ERROR cannot find value `__code_29`
711711
//~| NOTE in this expansion
712-
//~| NOTE not found in this scope
712+
//~| NOTE `__code_29` not found in expanded code of this `derive` macro
713713
#[multipart_suggestion(no_crate_example)]
714714
struct BQ {
715715
#[suggestion_part(code = 3)]

Diff for: tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -600,11 +600,11 @@ error[E0425]: cannot find value `slug` in module `crate::fluent_generated`
600600
LL | #[label(slug)]
601601
| ^^^^ not found in `crate::fluent_generated`
602602

603-
error[E0425]: cannot find value `__code_29` in this scope
603+
error[E0425]: cannot find value `__code_29` in the expanded code of `derive` macro `Subdiagnostic`
604604
--> $DIR/subdiagnostic-derive.rs:709:10
605605
|
606606
LL | #[derive(Subdiagnostic)]
607-
| ^^^^^^^^^^^^^ not found in this scope
607+
| ^^^^^^^^^^^^^ `__code_29` not found in expanded code of this `derive` macro
608608
|
609609
= note: this error originates in the derive macro `Subdiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
610610

0 commit comments

Comments
 (0)