Skip to content

Commit c24ba91

Browse files
committed
Rustup to 1.9.0-nightly (bf5da36 2016-04-06)
1 parent c1c935d commit c24ba91

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+135
-129
lines changed

src/approx_const.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use rustc::lint::*;
2-
use rustc_front::hir::*;
2+
use rustc::hir::*;
33
use std::f64::consts as f64;
44
use syntax::ast::{Lit, LitKind, FloatTy};
55
use utils::span_lint;

src/array_indexing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use rustc::ty::TyArray;
44
use rustc_const_eval::EvalHint::ExprTypeChecked;
55
use rustc_const_eval::eval_const_expr_partial;
66
use rustc_const_math::ConstInt;
7-
use rustc_front::hir::*;
7+
use rustc::hir::*;
88
use syntax::ast::RangeLimits;
99
use utils;
1010

src/attrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
use reexport::*;
44
use rustc::lint::*;
5-
use rustc_front::hir::*;
5+
use rustc::hir::*;
66
use semver::Version;
77
use syntax::ast::{Attribute, Lit, LitKind, MetaItemKind};
88
use syntax::attr::*;

src/bit_mask.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
use rustc::hir::*;
2+
use rustc::hir::def::{Def, PathResolution};
13
use rustc::lint::*;
2-
use rustc::middle::def::{Def, PathResolution};
34
use rustc_const_eval::lookup_const_by_id;
4-
use rustc_front::hir::*;
5-
use rustc_front::util::is_comparison_binop;
65
use syntax::ast::LitKind;
76
use syntax::codemap::Span;
87
use utils::span_lint;
@@ -91,7 +90,7 @@ impl LintPass for BitMask {
9190
impl LateLintPass for BitMask {
9291
fn check_expr(&mut self, cx: &LateContext, e: &Expr) {
9392
if let ExprBinary(ref cmp, ref left, ref right) = e.node {
94-
if is_comparison_binop(cmp.node) {
93+
if cmp.node.is_comparison() {
9594
fetch_int_literal(cx, right).map_or_else(|| {
9695
fetch_int_literal(cx, left).map_or((), |cmp_val| {
9796
check_compare(cx,

src/blacklisted_name.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use rustc::lint::*;
2-
use rustc_front::hir::*;
2+
use rustc::hir::*;
33
use utils::span_lint;
44

55
/// **What it does:** This lints about usage of blacklisted names.

src/block_in_if_condition.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use rustc::lint::{LateLintPass, LateContext, LintArray, LintPass};
2-
use rustc_front::hir::*;
3-
use rustc_front::intravisit::{Visitor, walk_expr};
2+
use rustc::hir::*;
3+
use rustc::hir::intravisit::{Visitor, walk_expr};
44
use utils::*;
55

66
/// **What it does:** This lint checks for `if` conditions that use blocks to contain an expression.

src/booleans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use rustc::lint::{LintArray, LateLintPass, LateContext, LintPass};
2-
use rustc_front::hir::*;
3-
use rustc_front::intravisit::*;
2+
use rustc::hir::*;
3+
use rustc::hir::intravisit::*;
44
use syntax::ast::{LitKind, DUMMY_NODE_ID};
55
use syntax::codemap::{DUMMY_SP, dummy_spanned};
66
use utils::{span_lint_and_then, in_macro, snippet_opt, SpanlessEq};

src/collapsible_if.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//! This lint is **warn** by default
1414
1515
use rustc::lint::*;
16-
use rustc_front::hir::*;
16+
use rustc::hir::*;
1717
use std::borrow::Cow;
1818
use syntax::codemap::Spanned;
1919

src/consts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#![allow(cast_possible_truncation)]
22

33
use rustc::lint::LateContext;
4-
use rustc::middle::def::{Def, PathResolution};
4+
use rustc::hir::def::{Def, PathResolution};
55
use rustc_const_eval::lookup_const_by_id;
66
use rustc_const_math::{ConstInt, ConstUsize, ConstIsize};
7-
use rustc_front::hir::*;
7+
use rustc::hir::*;
88
use std::cmp::Ordering::{self, Equal};
99
use std::cmp::PartialOrd;
1010
use std::hash::{Hash, Hasher};

src/copies.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use rustc::lint::*;
22
use rustc::ty;
3-
use rustc_front::hir::*;
3+
use rustc::hir::*;
44
use std::collections::HashMap;
55
use std::collections::hash_map::Entry;
66
use syntax::parse::token::InternedString;

0 commit comments

Comments
 (0)