Skip to content

Commit 51deb4f

Browse files
author
Jonathan Turner
committed
Address more travis errors
1 parent 2829fbc commit 51deb4f

File tree

8 files changed

+15
-9
lines changed

8 files changed

+15
-9
lines changed

src/libsyntax/codemap.rs

+1
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,7 @@ impl CodeMapper for CodeMap {
827827
#[cfg(test)]
828828
mod tests {
829829
use super::*;
830+
use syntax_pos::*;
830831

831832
#[test]
832833
fn t1 () {

src/libsyntax/ext/expand.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ mod tests {
12291229
use super::{PatIdentFinder, IdentRenamer, PatIdentRenamer, ExpansionConfig};
12301230
use ast;
12311231
use ast::Name;
1232-
use codemap;
1232+
use syntax_pos;
12331233
use ext::base::{ExtCtxt, DummyMacroLoader};
12341234
use ext::mtwt;
12351235
use fold::Folder;

src/libsyntax/parse/lexer/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1677,7 +1677,7 @@ fn ident_continue(c: Option<char>) -> bool {
16771677
mod tests {
16781678
use super::*;
16791679

1680-
use codemap::{BytePos, Span, NO_EXPANSION};
1680+
use syntax_pos::{BytePos, Span, NO_EXPANSION};
16811681
use codemap::CodeMap;
16821682
use errors;
16831683
use parse::token;

src/libsyntax/parse/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,8 @@ pub fn integer_lit(s: &str,
662662
mod tests {
663663
use super::*;
664664
use std::rc::Rc;
665-
use syntax_pos::{Span, BytePos, Pos, Spanned, NO_EXPANSION};
665+
use syntax_pos::{Span, BytePos, Pos, NO_EXPANSION};
666+
use codemap::Spanned;
666667
use ast::{self, TokenTree, PatKind};
667668
use abi::Abi;
668669
use attr::{first_attr_value_str_by_name, AttrMetaMethods};

src/libsyntax/print/pprust.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -3105,6 +3105,7 @@ mod tests {
31053105
use ast;
31063106
use codemap;
31073107
use parse::token;
3108+
use syntax_pos;
31083109

31093110
#[test]
31103111
fn test_fun_to_string() {
@@ -3126,7 +3127,7 @@ mod tests {
31263127
fn test_variant_to_string() {
31273128
let ident = token::str_to_ident("principal_skinner");
31283129

3129-
let var = syntax_pos::respan(syntax_pos::DUMMY_SP, ast::Variant_ {
3130+
let var = codemap::respan(syntax_pos::DUMMY_SP, ast::Variant_ {
31303131
name: ident,
31313132
attrs: Vec::new(),
31323133
// making this up as I go.... ?

src/test/compile-fail/bad-format-args.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
// except according to those terms.
1010

1111
// error-pattern: requires at least a format string argument
12-
// error-pattern: bad-format-args.rs:19:5: 19:15 note: in this expansion
12+
// error-pattern: bad-format-args.rs:19:5: 19:15: note: in this expansion
1313

1414
// error-pattern: expected token: `,`
15-
// error-pattern: bad-format-args.rs:20:5: 20:19 note: in this expansion
16-
// error-pattern: bad-format-args.rs:21:5: 21:22 note: in this expansion
15+
// error-pattern: bad-format-args.rs:20:5: 20:19: note: in this expansion
16+
// error-pattern: bad-format-args.rs:21:5: 21:22: note: in this expansion
1717

1818
fn main() {
1919
format!();

src/test/run-make/execution-engine/test.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ extern crate rustc_lint;
1818
extern crate rustc_llvm as llvm;
1919
extern crate rustc_metadata;
2020
extern crate rustc_resolve;
21+
extern crate rustc_errors;
22+
extern crate rustc_errors as errors;
2123
#[macro_use] extern crate syntax;
2224

2325
use std::ffi::{CStr, CString};
@@ -38,7 +40,7 @@ use rustc_metadata::creader::read_local_crates;
3840
use rustc_metadata::cstore::CStore;
3941
use libc::c_void;
4042

41-
use syntax::diagnostics::registry::Registry;
43+
use rustc_errors::registry::Registry;
4244
use syntax::parse::token;
4345

4446
fn main() {

src/test/run-make/issue-19371/foo.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ extern crate rustc;
1414
extern crate rustc_driver;
1515
extern crate rustc_lint;
1616
extern crate rustc_metadata;
17+
extern crate rustc_errors;
1718
extern crate syntax;
1819

1920
use rustc::dep_graph::DepGraph;
2021
use rustc::session::{build_session, Session};
2122
use rustc::session::config::{basic_options, build_configuration, Input, OutputType};
2223
use rustc_driver::driver::{compile_input, CompileController, anon_src};
2324
use rustc_metadata::cstore::CStore;
24-
use syntax::diagnostics::registry::Registry;
25+
use rustc_errors::registry::Registry;
2526
use syntax::parse::token;
2627

2728
use std::path::PathBuf;

0 commit comments

Comments
 (0)