@@ -18,7 +18,7 @@ extend the compiler's behavior with new syntax extensions, lint checks, etc.
18
18
A plugin is a dynamic library crate with a designated * registrar* function that
19
19
registers extensions with ` rustc ` . Other crates can load these extensions using
20
20
the crate attribute ` #![plugin(...)] ` . See the
21
- ` rustc_plugin ` documentation for more about the
21
+ ` rustc_driver::plugin ` documentation for more about the
22
22
mechanics of defining and loading a plugin.
23
23
24
24
If present, arguments passed as ` #![plugin(foo(... args ...))] ` are not
@@ -54,13 +54,13 @@ that implements Roman numeral integer literals.
54
54
extern crate syntax;
55
55
extern crate syntax_pos;
56
56
extern crate rustc;
57
- extern crate rustc_plugin ;
57
+ extern crate rustc_driver ;
58
58
59
59
use syntax::parse::token::{self, Token};
60
60
use syntax::tokenstream::TokenTree;
61
61
use syntax::ext::base::{ExtCtxt, MacResult, DummyResult, MacEager};
62
62
use syntax_pos::Span;
63
- use rustc_plugin ::Registry;
63
+ use rustc_driver::plugin ::Registry;
64
64
65
65
fn expand_rn(cx: &mut ExtCtxt, sp: Span, args: &[TokenTree])
66
66
-> Box<dyn MacResult + 'static> {
@@ -180,11 +180,11 @@ extern crate syntax;
180
180
// Load rustc as a plugin to get macros
181
181
#[macro_use]
182
182
extern crate rustc;
183
- extern crate rustc_plugin ;
183
+ extern crate rustc_driver ;
184
184
185
185
use rustc::lint::{EarlyContext, LintContext, LintPass, EarlyLintPass,
186
186
EarlyLintPassObject, LintArray};
187
- use rustc_plugin ::Registry;
187
+ use rustc_driver::plugin ::Registry;
188
188
use syntax::ast;
189
189
190
190
declare_lint!(TEST_LINT, Warn, "Warn about items named 'lintme'");
0 commit comments