Skip to content

Commit e9af4bc

Browse files
pcwaltonalexcrichton
authored andcommitted
---
yaml --- r: 152493 b: refs/heads/try2 c: 9b9ef44 h: refs/heads/master i: 152491: 9124e4c v: v3
1 parent 4ef619d commit e9af4bc

25 files changed

+177
-102
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 03ec8e5cc91b3b6b6ab98ef70aa63a0965c5f6c1
8+
refs/heads/try2: 9b9ef442337ee3b9a29449a0792ae2eeb0480d0c
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustc/middle/typeck/astconv.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,7 @@ pub fn ast_ty_to_ty<AC:AstConv, RS:RegionScope>(
724724
.collect();
725725
ty::mk_tup(tcx, flds)
726726
}
727+
ast::TyParen(ref typ) => ast_ty_to_ty(this, rscope, &**typ),
727728
ast::TyBareFn(ref bf) => {
728729
if bf.decl.variadic && bf.abi != abi::C {
729730
tcx.sess.span_err(ast_ty.span,

branches/try2/src/librustc/middle/typeck/infer/error_reporting.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,7 @@ impl<'a> Rebuilder<'a> {
11401140
}
11411141
ast::TyTup(new_tys)
11421142
}
1143+
ast::TyParen(ref typ) => ast::TyParen(build_to(*typ, to)),
11431144
ref other => other.clone()
11441145
};
11451146
box(GC) ast::Ty { id: from.id, node: new_node, span: from.span }

branches/try2/src/librustdoc/clean/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl<T: Clean<U>, U> Clean<VecPerParamSpace<U>> for VecPerParamSpace<T> {
6060
}
6161
}
6262

63-
impl<T: Clean<U>, U> Clean<U> for Gc<T> {
63+
impl<T: 'static + Clean<U>, U> Clean<U> for Gc<T> {
6464
fn clean(&self) -> U {
6565
(**self).clean()
6666
}
@@ -1198,6 +1198,7 @@ impl Clean<Type> for ast::Ty {
11981198
TyClosure(ref c, region) => Closure(box c.clean(), region.clean()),
11991199
TyProc(ref c) => Proc(box c.clean()),
12001200
TyBareFn(ref barefn) => BareFunction(box barefn.clean()),
1201+
TyParen(ref ty) => ty.clean(),
12011202
TyBot => Bottom,
12021203
ref x => fail!("Unimplemented type {:?}", x),
12031204
}

branches/try2/src/libsyntax/ast.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,8 @@ pub enum Ty_ {
784784
TyUnboxedFn(Gc<UnboxedFnTy>),
785785
TyTup(Vec<P<Ty>> ),
786786
TyPath(Path, Option<OwnedSlice<TyParamBound>>, NodeId), // for #7264; see above
787+
// No-op; kept solely so that we can pretty-print faithfully
788+
TyParen(P<Ty>),
787789
TyTypeof(Gc<Expr>),
788790
// TyInfer means the type should be inferred instead of it having been
789791
// specified. This can appear anywhere in a type.

branches/try2/src/libsyntax/ast_util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,7 @@ pub fn get_inner_tys(ty: P<Ty>) -> Vec<P<Ty>> {
737737
| ast::TyUniq(ty)
738738
| ast::TyFixedLengthVec(ty, _) => vec!(ty),
739739
ast::TyTup(ref tys) => tys.clone(),
740+
ast::TyParen(ty) => get_inner_tys(ty),
740741
_ => Vec::new()
741742
}
742743
}

branches/try2/src/libsyntax/fold.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ pub trait Folder {
192192
})
193193
}
194194
TyTup(ref tys) => TyTup(tys.iter().map(|&ty| self.fold_ty(ty)).collect()),
195+
TyParen(ref ty) => TyParen(self.fold_ty(*ty)),
195196
TyPath(ref path, ref bounds, id) => {
196197
let id = self.new_id(id);
197198
TyPath(self.fold_path(path),

0 commit comments

Comments
 (0)