Skip to content

Commit f37a1d2

Browse files
committed
WIP -- DO NOT LAND -- tweak recursion_limit stderr just to fix output
I want to measure perf
1 parent 18ae293 commit f37a1d2

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

src/test/compile-fail/issue-23080-2.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ unsafe auto trait Trait {
2020
fn call_method<T: Trait>(x: T) {}
2121

2222
fn main() {
23-
// ICE
2423
call_method(());
25-
//~^ ERROR
24+
//~^^^^^^^^^^^^^^^^^^^^^^^ ERROR overflow evaluating the requirement
2625
}

src/test/ui/did_you_mean/recursion_limit.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// fail the `Send` check by overflow when the recursion limit is set
1414
// very low.
1515

16+
//~^^^^^^^^^^^^^^^ ERROR overflow evaluating the requirement
17+
1618
#![allow(dead_code)]
1719
#![recursion_limit="10"]
1820

@@ -41,5 +43,5 @@ enum N { N(usize) }
4143
fn is_send<T:Send>() { }
4244

4345
fn main() {
44-
is_send::<A>(); //~ ERROR overflow evaluating the requirement
46+
is_send::<A>();
4547
}

src/test/ui/did_you_mean/recursion_limit.stderr

-9
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
error[E0275]: overflow evaluating the requirement `K: std::marker::Send`
2-
--> $DIR/recursion_limit.rs:44:5
3-
|
4-
LL | is_send::<A>(); //~ ERROR overflow evaluating the requirement
5-
| ^^^^^^^^^^^^
62
|
73
= help: consider adding a `#![recursion_limit="20"]` attribute to your crate
84
= note: required because it appears within the type `J`
@@ -15,11 +11,6 @@ LL | is_send::<A>(); //~ ERROR overflow evaluating the requirement
1511
= note: required because it appears within the type `C`
1612
= note: required because it appears within the type `B`
1713
= note: required because it appears within the type `A`
18-
note: required by `is_send`
19-
--> $DIR/recursion_limit.rs:41:1
20-
|
21-
LL | fn is_send<T:Send>() { }
22-
| ^^^^^^^^^^^^^^^^^^^^
2314

2415
error: aborting due to previous error
2516

0 commit comments

Comments
 (0)