New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#![recursion_limit="128"] #1133

Closed
ghost opened this Issue Aug 28, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@ghost

ghost commented Aug 28, 2017

Setup

Versions

  • Rust:0.16.o
  • Diesel:0.16.0
  • Database:Mysql
  • Operating System:Mac OS

Feature Flags

  • diesel: Mysql
  • diesel_codegen: Mysql

Problem Description

schema.rs

infer_schema!("dotenv:DATABASE_URL");

build error

error: recursion limit reached while expanding the macro `numeric_expr`
 --> src/schema.rs:1:1
  |
1 | infer_schema!("dotenv:DATABASE_URL");
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: consider adding a `#![recursion_limit="128"]` attribute to your crate
  = note: this error originates in a macro outside of the current crate

@ghost ghost closed this Aug 28, 2017

@mmstick

This comment has been minimized.

mmstick commented Aug 29, 2017

What was your solution?

@Eijebong

This comment has been minimized.

Member

Eijebong commented Aug 29, 2017

@mmstick Do what the rust compiler tells you to do, add a #[recursion_limit="128"] at the root of your crate

@killercup

This comment has been minimized.

Member

killercup commented Aug 29, 2017

Do what the rust compiler tells you to do

I want that on a t shirt

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment