]> git.lizzy.rs Git - rust.git/commit
Auto merge of #22026 - kmcallister:plugin, r=sfackler
authorbors <bors@rust-lang.org>
Tue, 10 Feb 2015 11:15:52 +0000 (11:15 +0000)
committerbors <bors@rust-lang.org>
Tue, 10 Feb 2015 11:15:52 +0000 (11:15 +0000)
commit94c06a1be0ccfcf1a8e105fc98d126de372dbd40
tree34c42bfdc779516ea7be5d116b31ed1bf3507ef8
parentde8bc44753881aacdaf435f5ba61de3c20916761
parent1aedc45f85fe9feb70971f9d0c743c4af550a080
Auto merge of #22026 - kmcallister:plugin, r=sfackler

```rust
#[plugin] #[no_link] extern crate bleh;
```

becomes a crate attribute

```rust
#![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]
src/librustc_driver/lib.rs