1
Fork 0

rustc: middle: rename ty::t to Ty and use it unqualified everywhere.

This commit is contained in:
Eduard Burtescu 2014-09-13 21:09:25 +03:00
parent 21da750663
commit 9706d8f602
79 changed files with 1111 additions and 1115 deletions

View file

@ -28,9 +28,10 @@ use self::MethodContext::*;
use metadata::csearch;
use middle::def::*;
use middle::ty::{mod, Ty};
use middle::typeck::astconv::ast_ty_to_ty;
use middle::typeck::infer;
use middle::{typeck, ty, def, pat_util, stability};
use middle::typeck::{mod, infer};
use middle::{def, pat_util, stability};
use middle::const_eval::{eval_const_expr_partial, const_int, const_uint};
use util::ppaux::{ty_to_string};
use util::nodemap::{FnvHashMap, NodeSet};
@ -473,7 +474,7 @@ declare_lint!(BOX_POINTERS, Allow,
pub struct BoxPointers;
impl BoxPointers {
fn check_heap_type(&self, cx: &Context, span: Span, ty: ty::t) {
fn check_heap_type(&self, cx: &Context, span: Span, ty: Ty) {
let mut n_uniq = 0i;
ty::fold_ty(cx.tcx, ty, |t| {
match ty::get(t).sty {