1
Fork 0

Address more travis errors

This commit is contained in:
Jonathan Turner 2016-06-22 12:50:19 -04:00
parent 2829fbc638
commit 51deb4fedb
8 changed files with 15 additions and 9 deletions

View file

@ -827,6 +827,7 @@ impl CodeMapper for CodeMap {
#[cfg(test)]
mod tests {
use super::*;
use syntax_pos::*;
#[test]
fn t1 () {

View file

@ -1229,7 +1229,7 @@ mod tests {
use super::{PatIdentFinder, IdentRenamer, PatIdentRenamer, ExpansionConfig};
use ast;
use ast::Name;
use codemap;
use syntax_pos;
use ext::base::{ExtCtxt, DummyMacroLoader};
use ext::mtwt;
use fold::Folder;

View file

@ -1677,7 +1677,7 @@ fn ident_continue(c: Option<char>) -> bool {
mod tests {
use super::*;
use codemap::{BytePos, Span, NO_EXPANSION};
use syntax_pos::{BytePos, Span, NO_EXPANSION};
use codemap::CodeMap;
use errors;
use parse::token;

View file

@ -662,7 +662,8 @@ pub fn integer_lit(s: &str,
mod tests {
use super::*;
use std::rc::Rc;
use syntax_pos::{Span, BytePos, Pos, Spanned, NO_EXPANSION};
use syntax_pos::{Span, BytePos, Pos, NO_EXPANSION};
use codemap::Spanned;
use ast::{self, TokenTree, PatKind};
use abi::Abi;
use attr::{first_attr_value_str_by_name, AttrMetaMethods};

View file

@ -3105,6 +3105,7 @@ mod tests {
use ast;
use codemap;
use parse::token;
use syntax_pos;
#[test]
fn test_fun_to_string() {
@ -3126,7 +3127,7 @@ mod tests {
fn test_variant_to_string() {
let ident = token::str_to_ident("principal_skinner");
let var = syntax_pos::respan(syntax_pos::DUMMY_SP, ast::Variant_ {
let var = codemap::respan(syntax_pos::DUMMY_SP, ast::Variant_ {
name: ident,
attrs: Vec::new(),
// making this up as I go.... ?

View file

@ -9,11 +9,11 @@
// except according to those terms.
// error-pattern: requires at least a format string argument
// error-pattern: bad-format-args.rs:19:5: 19:15 note: in this expansion
// error-pattern: bad-format-args.rs:19:5: 19:15: note: in this expansion
// error-pattern: expected token: `,`
// error-pattern: bad-format-args.rs:20:5: 20:19 note: in this expansion
// error-pattern: bad-format-args.rs:21:5: 21:22 note: in this expansion
// error-pattern: bad-format-args.rs:20:5: 20:19: note: in this expansion
// error-pattern: bad-format-args.rs:21:5: 21:22: note: in this expansion
fn main() {
format!();

View file

@ -18,6 +18,8 @@ extern crate rustc_lint;
extern crate rustc_llvm as llvm;
extern crate rustc_metadata;
extern crate rustc_resolve;
extern crate rustc_errors;
extern crate rustc_errors as errors;
#[macro_use] extern crate syntax;
use std::ffi::{CStr, CString};
@ -38,7 +40,7 @@ use rustc_metadata::creader::read_local_crates;
use rustc_metadata::cstore::CStore;
use libc::c_void;
use syntax::diagnostics::registry::Registry;
use rustc_errors::registry::Registry;
use syntax::parse::token;
fn main() {

View file

@ -14,6 +14,7 @@ extern crate rustc;
extern crate rustc_driver;
extern crate rustc_lint;
extern crate rustc_metadata;
extern crate rustc_errors;
extern crate syntax;
use rustc::dep_graph::DepGraph;
@ -21,7 +22,7 @@ use rustc::session::{build_session, Session};
use rustc::session::config::{basic_options, build_configuration, Input, OutputType};
use rustc_driver::driver::{compile_input, CompileController, anon_src};
use rustc_metadata::cstore::CStore;
use syntax::diagnostics::registry::Registry;
use rustc_errors::registry::Registry;
use syntax::parse::token;
use std::path::PathBuf;