This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
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 15:15:54 -06: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 04:33:09 -06:00
//~^ ERROR cannot find derive macro `Eqr` in this scope
syntax: implement #[deriving] meta-attribute
2013-03-11 15:47:23 -05:00
struct
Foo
;
pub
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink