Skip to content

Commit 45bccd8

Browse files
committed
Bump recursion limit in diesel_tests
The attribute in `schema.rs` didn't seem to do anything. I'm not sure if that is a regression in Rust or an oversight on our part (and the attr wasn't necessary before). Additionally, looking at <rust-lang/rust#41676>, this shouldn't be necessary at all in recent nightlies (after May 7), but without the explicit setting, it fails to compile and suggests adding `#![recursion_limit="128"]`. If I read the code in [1] correctly, this means it was set to 64 before. [1]: https://github.com/rust-lang/rust/blob/5c7add7551fa093f655e76650a48564ac347c83a/src/librustc/traits/error_reporting.rs#L1150-L1156
1 parent d09c786 commit 45bccd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

diesel_tests/tests/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![recursion_limit="1024"]
2+
13
extern crate quickcheck;
24
#[macro_use] extern crate assert_matches;
35
#[macro_use] extern crate diesel;

diesel_tests/tests/schema.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![recursion_limit="1024"]
2-
31
use diesel::*;
42
use dotenv::dotenv;
53
use std::env;

0 commit comments

Comments
 (0)