Skip to content
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

Build fails on nightly (2018-04-26) #123

Closed
CJStadler opened this issue Apr 27, 2018 · 1 comment · Fixed by #124
Closed

Build fails on nightly (2018-04-26) #123

CJStadler opened this issue Apr 27, 2018 · 1 comment · Fixed by #124

Comments

@CJStadler
Copy link
Contributor

I confirmed that it builds on nightly-2018-04-19, which seems like it was the last nightly release. Here are the errors:

error[E0658]: procedural macros cannot be expanded to expressions
  --> maud_macros/src/build.rs:28:17
   |
28 |                 quote!($output_ident.push_str($string);)
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: add #![feature(proc_macro_non_items)] to the crate attributes to enable

error[E0658]: procedural macros cannot be expanded to expressions
  --> maud_macros/src/build.rs:60:19
   |
60 |           self.push(quote!({
   |  ___________________^
61 | |             // Create a local trait alias so that autoref works
62 | |             trait Render: maud::Render {
63 | |                 fn __maud_render_to(&self, output_ident: &mut String) {
...  |
68 | |             $expr.__maud_render_to(&mut $output_ident);
69 | |         }));
   | |__________^
   |
   = help: add #![feature(proc_macro_non_items)] to the crate attributes to enable

error[E0658]: procedural macros cannot be expanded to expressions
   --> maud_macros/src/build.rs:123:19
    |
123 |         self.push(quote!(if $cond { $body }));
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: add #![feature(proc_macro_non_items)] to the crate attributes to enable

error[E0658]: procedural macros cannot be expanded to expressions
  --> maud_macros/src/lib.rs:43:5
   |
43 | /     quote!({
44 | |         extern crate maud;
45 | |         let mut $output_ident = String::with_capacity($size_hint);
46 | |         $stmts
47 | |         maud::PreEscaped($output_ident)
48 | |     })
   | |______^
   |
   = help: add #![feature(proc_macro_non_items)] to the crate attributes to enable
@lambda-fairy
Copy link
Owner

Thanks for reporting!

Looks like it's just missing a feature flag. I'd be happy to accept a PR that adds it in.

@lambda-fairy lambda-fairy changed the title Build fails on nightly (2018-04-26) Build fails on rustc 1.26.0-nightly (934902af6 2018-04-02) Apr 28, 2018
@lambda-fairy lambda-fairy changed the title Build fails on rustc 1.26.0-nightly (934902af6 2018-04-02) Build fails onrustc 1.27.0-nightly (686d0ae13 2018-04-27) Apr 28, 2018
@lambda-fairy lambda-fairy changed the title Build fails onrustc 1.27.0-nightly (686d0ae13 2018-04-27) Build fails on nightly (2018-04-26) May 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants