diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2016-04-29 18:08:02 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2016-05-02 11:49:26 -0400 |
| commit | 2ba5fac1a460de9936b85f9459668b0992f21f06 (patch) | |
| tree | 4dbd67a088eb46a03c06dedb2790509ae38a8ccf | |
| parent | 5974e5b294ee3b67054a31eae2a4b9bab950a119 (diff) | |
| download | rust-2ba5fac1a460de9936b85f9459668b0992f21f06.tar.gz rust-2ba5fac1a460de9936b85f9459668b0992f21f06.zip | |
fix rebase flaws
| -rw-r--r-- | src/librustc_driver/lib.rs | 5 | ||||
| -rw-r--r-- | src/librustc_resolve/lib.rs | 3 | ||||
| -rw-r--r-- | src/libsyntax_ext/deriving/mod.rs | 6 |
3 files changed, 6 insertions, 8 deletions
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index 52306e388e2..d03ae45e83f 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -91,9 +91,8 @@ use std::thread; use rustc::session::early_error; -use syntax::{ast, errors, diagnostic}; -use syntax::codemap::MultiSpan; -use syntax::parse::{self, PResult}; +use syntax::{ast, errors, diagnostics}; +use syntax::codemap::{CodeMap, FileLoader, RealFileLoader, MultiSpan}; use syntax::errors::emitter::Emitter; use syntax::feature_gate::{GatedCfg, UnstableFeatures}; use syntax::parse::{self, PResult, token}; diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs index 1bb99eb1a5e..e747ed15260 100644 --- a/src/librustc_resolve/lib.rs +++ b/src/librustc_resolve/lib.rs @@ -1784,8 +1784,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> { // If it's a typedef, give a note if let Def::TyAlias(..) = path_res.base_def { - err.note(trait_path.span, - "`type` aliases cannot be used for traits"); + err.note("`type` aliases cannot be used for traits"); let definition_site = { let segments = &trait_path.segments; diff --git a/src/libsyntax_ext/deriving/mod.rs b/src/libsyntax_ext/deriving/mod.rs index 4ca3196b9c5..91c272c59c4 100644 --- a/src/libsyntax_ext/deriving/mod.rs +++ b/src/libsyntax_ext/deriving/mod.rs @@ -204,9 +204,9 @@ macro_rules! derive_traits { sp, feature_gate::EXPLAIN_DERIVE_UNDERSCORE, ); if option_env!("CFG_DISABLE_UNSTABLE_FEATURES").is_none() { - w.fileline_help( - sp, &format!("add #![feature(custom_derive)] to \ - the crate attributes to enable") + w.help( + &format!("add #![feature(custom_derive)] to \ + the crate attributes to enable") ); } w.emit(); |
