Link compiler plugins to rustc_driver

This commit is contained in:
John Kåre Alsaker 2019-07-06 19:56:20 +02:00
parent 2caf5d9a5b
commit 7198687bb2
15 changed files with 15 additions and 0 deletions

View File

@ -17,6 +17,7 @@
//! #![feature(rustc_private)]
//!
//! extern crate rustc_plugin;
//! extern crate rustc_driver;
//! extern crate syntax;
//! extern crate syntax_pos;
//!

View File

@ -4,6 +4,7 @@
#[macro_use]
extern crate rustc;
extern crate rustc_plugin;
extern crate rustc_driver;
extern crate syntax;
use rustc_plugin::Registry;

View File

@ -5,6 +5,7 @@
#[macro_use] extern crate rustc;
extern crate rustc_plugin;
extern crate rustc_driver;
extern crate syntax;
use rustc::lint::{LateContext, LintContext, LintPass, LateLintPass, LateLintPassObject, LintArray};

View File

@ -5,6 +5,7 @@
extern crate rustc;
extern crate rustc_plugin;
extern crate rustc_driver;
use rustc_plugin::Registry;

View File

@ -5,6 +5,7 @@
extern crate rustc;
extern crate rustc_plugin;
extern crate rustc_driver;
use rustc_plugin::Registry;

View File

@ -7,6 +7,7 @@
extern crate syntax;
extern crate rustc;
extern crate rustc_plugin;
extern crate rustc_driver;
extern crate syntax_pos;
extern crate proc_macro;

View File

@ -5,6 +5,7 @@
extern crate rustc;
extern crate rustc_plugin;
extern crate rustc_driver;
use std::any::Any;
use std::cell::RefCell;

View File

@ -7,6 +7,7 @@ extern crate syntax;
extern crate syntax_pos;
extern crate rustc;
extern crate rustc_plugin;
extern crate rustc_driver;
use std::borrow::ToOwned;
use syntax::ast;

View File

@ -13,6 +13,7 @@ extern crate syntax;
extern crate syntax_pos;
extern crate rustc;
extern crate rustc_plugin;
extern crate rustc_driver;
use syntax::parse::token::{self, Token};
use syntax::tokenstream::TokenTree;

View File

@ -7,6 +7,7 @@ extern crate syntax;
extern crate rustc;
extern crate rustc_plugin;
extern crate rustc_driver;
use syntax::symbol::Symbol;
use syntax::feature_gate::AttributeType;

View File

@ -5,6 +5,7 @@
#[macro_use] extern crate rustc;
extern crate rustc_plugin;
extern crate rustc_driver;
extern crate syntax;
use rustc::lint::{LateContext, LintContext, LintPass, LateLintPass, LateLintPassObject, LintArray};

View File

@ -7,6 +7,7 @@
#[macro_use]
extern crate rustc;
extern crate rustc_plugin;
extern crate rustc_driver;
use rustc::hir;
use rustc::lint::{LateContext, LintContext, LintPass, LateLintPass, LateLintPassObject, LintArray};

View File

@ -9,6 +9,7 @@ extern crate syntax;
#[macro_use]
extern crate rustc;
extern crate rustc_plugin;
extern crate rustc_driver;
use rustc::lint::{EarlyContext, LintContext, LintPass, EarlyLintPass,
EarlyLintPassObject, LintArray};

View File

@ -7,6 +7,7 @@ extern crate syntax;
#[macro_use]
extern crate rustc;
extern crate rustc_plugin;
extern crate rustc_driver;
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintContext, LintPass};
use rustc_plugin::Registry;

View File

@ -5,6 +5,7 @@
extern crate rustc;
extern crate rustc_plugin;
extern crate rustc_driver;
use rustc_plugin::Registry;