Skip to content

Commit d8b62d0

Browse files
author
Keegan McAllister
committed
---
yaml --- r: 179673 b: refs/heads/auto c: 1aedc45 h: refs/heads/master i: 179671: 5d7d293 v: v3
1 parent b813017 commit d8b62d0

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 93b642d9743edea728ef08b2d6fd17229caaad43
13+
refs/heads/auto: 1aedc45f85fe9feb70971f9d0c743c4af550a080
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustc/plugin/load.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ impl<'a, 'v> Visitor<'v> for PluginLoader<'a> {
139139
}
140140
"plugin" => {
141141
self.sess.span_err(attr.span, "#[plugin] on `extern crate` is deprecated");
142+
self.sess.span_help(attr.span, &format!("use a crate attribute instead, \
143+
i.e. #![plugin({})]",
144+
item.ident.as_str())[]);
142145
}
143146
"macro_use" => {
144147
let names = attr.meta_item_list();

branches/auto/src/test/compile-fail/plugin-extern-crate-attr-deprecated.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
#[plugin] //~ ERROR #[plugin] on `extern crate` is deprecated
12+
//~^ HELP use a crate attribute instead, i.e. #![plugin(std)]
1213
extern crate std;
1314

1415
fn main() {}

0 commit comments

Comments
 (0)