Skip to content

Commit a7828be

Browse files
committed
fix rebase flaws
1 parent 2b6dc6c commit a7828be

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/librustc_driver/lib.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,8 @@ use std::thread;
9191

9292
use rustc::session::early_error;
9393

94-
use syntax::{ast, errors, diagnostic};
95-
use syntax::codemap::MultiSpan;
96-
use syntax::parse::{self, PResult};
94+
use syntax::{ast, errors, diagnostics};
95+
use syntax::codemap::{CodeMap, FileLoader, RealFileLoader, MultiSpan};
9796
use syntax::errors::emitter::Emitter;
9897
use syntax::feature_gate::{GatedCfg, UnstableFeatures};
9998
use syntax::parse::{self, PResult, token};

src/librustc_resolve/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1837,8 +1837,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
18371837

18381838
// If it's a typedef, give a note
18391839
if let Def::TyAlias(..) = path_res.base_def {
1840-
err.note(trait_path.span,
1841-
"`type` aliases cannot be used for traits");
1840+
err.note("`type` aliases cannot be used for traits");
18421841

18431842
let definition_site = {
18441843
let segments = &trait_path.segments;

src/libsyntax_ext/deriving/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ macro_rules! derive_traits {
204204
sp, feature_gate::EXPLAIN_DERIVE_UNDERSCORE,
205205
);
206206
if option_env!("CFG_DISABLE_UNSTABLE_FEATURES").is_none() {
207-
w.fileline_help(
208-
sp, &format!("add #![feature(custom_derive)] to \
209-
the crate attributes to enable")
207+
w.help(
208+
&format!("add #![feature(custom_derive)] to \
209+
the crate attributes to enable")
210210
);
211211
}
212212
w.emit();

0 commit comments

Comments
 (0)