This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Issues
Pull requests
Activity
41318e9a26
rust
/
src
/
test
/
ui
/
derives
/
deriving-meta-unknown-trait.rs
6 lines
101 B
Rust
Raw
Normal View
History
Unescape
Escape
Make #[derive(Anything)] into sugar for #[derive_Anything] This is a hack, but I don't think we can do much better as long as `derive` is running at the syntax expansion phase. If the custom_derive feature gate is enabled, this works with user-defined traits and syntax extensions. Without the gate, you can't use e.g. #[derive_Clone] directly, so this does not change the stable language. This commit also cleans up the deriving code somewhat, and forbids some previously-meaningless attribute syntax. For this reason it's technically a [breaking-change]
2015-03-06 13:15:54 -08:00
#[
derive(Eqr)
]
Move derive macro expansion into the MacroExpander This removes the expand_derives function, and sprinkles the functionality throughout the Invocation Collector, Expander and Resolver.
2017-02-01 21:03:09 +10:30
//~^ ERROR cannot find derive macro `Eqr` in this scope
syntax: implement #[deriving] meta-attribute
2013-03-11 16:47:23 -04:00
struct
Foo
;
pub
fn
main
(
)
{
}
Reference in a new issue
Copy permalink