diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2015-03-20 06:48:40 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2015-03-23 18:05:20 -0400 |
| commit | 8bd8466e812e7c5acb99a50493e45aeb1bb81e93 (patch) | |
| tree | 75a322675f967e2c18dc75f6a520e69b5ee6c109 /src/test/compile-fail/recursion_limit.rs | |
| parent | 809a554fca2d0ebc2ba50077016fe282a4064752 (diff) | |
| download | rust-8bd8466e812e7c5acb99a50493e45aeb1bb81e93.tar.gz rust-8bd8466e812e7c5acb99a50493e45aeb1bb81e93.zip | |
Refactor how we handle overflow so that it is a fatal error that aborts
compilation: this removes all the ungainly code that special cases overflow so that we can ensure it propagates.
Diffstat (limited to 'src/test/compile-fail/recursion_limit.rs')
| -rw-r--r-- | src/test/compile-fail/recursion_limit.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/test/compile-fail/recursion_limit.rs b/src/test/compile-fail/recursion_limit.rs index e8bc11317f2..368269999a2 100644 --- a/src/test/compile-fail/recursion_limit.rs +++ b/src/test/compile-fail/recursion_limit.rs @@ -42,12 +42,5 @@ fn is_send<T:Send>() { } fn main() { is_send::<A>(); //~^ ERROR overflow evaluating - //~^^ NOTE consider adding a `#![recursion_limit="20"]` attribute to your crate - //~^^^ NOTE required by `is_send` - //~^^^^ ERROR overflow evaluating - //~^^^^^ NOTE consider adding a `#![recursion_limit="20"]` attribute to your crate - //~^^^^^^ NOTE required by `is_send` - //~^^^^^^^ ERROR overflow evaluating - //~^^^^^^^^ NOTE consider adding a `#![recursion_limit="20"]` attribute to your crate - //~^^^^^^^^^ NOTE required by `is_send` + //~| NOTE consider adding a `#![recursion_limit="20"]` attribute to your crate } |
