-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumped version number for const_eval_limit in active.rs
and renamed 'recursion_limit' in limits.rs to simple 'limit' because it does handle other limits too.
- Loading branch information
Showing
13 changed files
with
47 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/test/ui/consts/const_limit/const_eval_limit_overflow.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
error: `limit` must be a non-negative integer | ||
--> $DIR/const_eval_limit_overflow.rs:2:1 | ||
| | ||
LL | #![const_eval_limit="18_446_744_073_709_551_615"] | ||
| ^^^^^^^^^^^^^^^^^^^^----------------------------^ | ||
| | | ||
| not a valid integer | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
src/test/ui/consts/const_limit/const_eval_limit_reached.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// Test the parse error for an empty recursion_limit | ||
|
||
#![recursion_limit = ""] //~ ERROR `recursion_limit` must be a non-negative integer | ||
//~| `recursion_limit` must be a non-negative integer | ||
#![recursion_limit = ""] //~ ERROR `limit` must be a non-negative integer | ||
//~| `limit` must be a non-negative integer | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
error: `recursion_limit` must be a non-negative integer | ||
error: `limit` must be a non-negative integer | ||
--> $DIR/empty.rs:3:1 | ||
| | ||
LL | #![recursion_limit = ""] | ||
| ^^^^^^^^^^^^^^^^^^^^^--^ | ||
| | | ||
| `recursion_limit` must be a non-negative integer | ||
| `limit` must be a non-negative integer | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// Test the parse error for an invalid digit in recursion_limit | ||
|
||
#![recursion_limit = "-100"] //~ ERROR `recursion_limit` must be a non-negative integer | ||
#![recursion_limit = "-100"] //~ ERROR `limit` must be a non-negative integer | ||
//~| not a valid integer | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// Test the parse error for an overflowing recursion_limit | ||
|
||
#![recursion_limit = "999999999999999999999999"] | ||
//~^ ERROR `recursion_limit` must be a non-negative integer | ||
//~| `recursion_limit` is too large | ||
//~^ ERROR `limit` must be a non-negative integer | ||
//~| `limit` is too large | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
error: `recursion_limit` must be a non-negative integer | ||
error: `limit` must be a non-negative integer | ||
--> $DIR/overflow.rs:3:1 | ||
| | ||
LL | #![recursion_limit = "999999999999999999999999"] | ||
| ^^^^^^^^^^^^^^^^^^^^^--------------------------^ | ||
| | | ||
| `recursion_limit` is too large | ||
| `limit` is too large | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Test that a `recursion_limit` of 0 is valid | ||
// Test that a `limit` of 0 is valid | ||
|
||
#![recursion_limit = "0"] | ||
|
||
|