@@ -18,7 +18,7 @@ extend the compiler's behavior with new syntax extensions, lint checks, etc.
1818A plugin is a dynamic library crate with a designated * registrar* function that
1919registers extensions with ` rustc ` . Other crates can load these extensions using
2020the crate attribute ` #![plugin(...)] ` . See the
21- ` rustc_plugin ` documentation for more about the
21+ ` rustc_driver::plugin ` documentation for more about the
2222mechanics of defining and loading a plugin.
2323
2424If present, arguments passed as ` #![plugin(foo(... args ...))] ` are not
@@ -54,13 +54,13 @@ that implements Roman numeral integer literals.
5454extern crate syntax;
5555extern crate syntax_pos;
5656extern crate rustc;
57- extern crate rustc_plugin ;
57+ extern crate rustc_driver ;
5858
5959use syntax::parse::token::{self, Token};
6060use syntax::tokenstream::TokenTree;
6161use syntax::ext::base::{ExtCtxt, MacResult, DummyResult, MacEager};
6262use syntax_pos::Span;
63- use rustc_plugin ::Registry;
63+ use rustc_driver::plugin ::Registry;
6464
6565fn expand_rn(cx: &mut ExtCtxt, sp: Span, args: &[TokenTree])
6666 -> Box<dyn MacResult + 'static> {
@@ -180,11 +180,11 @@ extern crate syntax;
180180// Load rustc as a plugin to get macros
181181#[macro_use]
182182extern crate rustc;
183- extern crate rustc_plugin ;
183+ extern crate rustc_driver ;
184184
185185use rustc::lint::{EarlyContext, LintContext, LintPass, EarlyLintPass,
186186 EarlyLintPassObject, LintArray};
187- use rustc_plugin ::Registry;
187+ use rustc_driver::plugin ::Registry;
188188use syntax::ast;
189189
190190declare_lint!(TEST_LINT, Warn, "Warn about items named 'lintme'");
0 commit comments