Hey there,
meta currently fails to build from source on nightly:
$ cargo build
Compiling pest_meta v2.0.0 (file:///Users/kivikakk/Code/pest-parser/pest/meta)
error[E0518]: attribute should be applied to function
--> meta/src/parser.rs:21:10
|
21 | #[derive(Parser)]
| ^^^^^^ not a function
error: aborting due to previous error
For more information about this error, try `rustc --explain E0518`.
error: Could not compile `pest_meta`.
To learn more, run the command again with --verbose.
The pest_derive from crates.io it's using is 1.0.6.
E0158 appears to be #[inline(…)] applied to a non-function:
This error indicates that an `#[inline(..)]` attribute was incorrectly placed
on something other than a function or method.
I've tried looking at the generated code with --pretty=expanded and … well, there's a lot of inlines, and I can't easily find one that doesn't correspond with a fn or lambda.
I can't easily find a change in rustc itself that would've caused this … so I'm going to try manually bisecting by installing nightlies that correspond to changes in the relevant code, i.e. https://github.com/rust-lang/rust/commits/361509320c882ee76f0d1359f842dec4637e6b08/src/librustc/hir/check_attr.rs. Wish me luck!
Hey there,
metacurrently fails to build from source on nightly:The
pest_derivefrom crates.io it's using is 1.0.6.E0158appears to be#[inline(…)]applied to a non-function:I've tried looking at the generated code with
--pretty=expandedand … well, there's a lot of inlines, and I can't easily find one that doesn't correspond with afnor lambda.I can't easily find a change in rustc itself that would've caused this … so I'm going to try manually bisecting by installing nightlies that correspond to changes in the relevant code, i.e. https://github.com/rust-lang/rust/commits/361509320c882ee76f0d1359f842dec4637e6b08/src/librustc/hir/check_attr.rs. Wish me luck!