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
2a663555dd
rust
/
src
/
test
/
ui
/
malformed
/
malformed-plugin-1.rs
5 lines
82 B
Rust
Raw
Normal View
History
Unescape
Escape
Check gated attributes before and after macro expansion This is important because attributes can affect expansion.
2015-03-06 17:10:20 -06:00
#![
feature(plugin)
]
Use a crate attribute to load plugins #[plugin] #[no_link] extern crate bleh; becomes a crate attribute #![plugin(bleh)] The feature gate is still required. It's almost never correct to link a plugin into the resulting library / executable, because it will bring all of libsyntax and librustc with it. However if you really want this behavior, you can get it with a separate `extern crate` item in addition to the `plugin` attribute. Fixes #21043. Fixes #20769. [breaking-change]
2015-02-06 15:56:38 -06:00
#![
plugin
]
//~ ERROR malformed plugin attribute
Pass the #[plugin(...)] meta item to the registrar
2015-01-02 20:26:00 -06:00
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink