Skip to content

Commit 91dc68e

Browse files
committed
---
yaml --- r: 97566 b: refs/heads/snap-stage3 c: 72ee4a5 h: refs/heads/master v: v3
1 parent 46d215f commit 91dc68e

File tree

5 files changed

+32
-33
lines changed

5 files changed

+32
-33
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 6b221768cfe4585a70cc5c3b647ceda0c7319c25
4+
refs/heads/snap-stage3: 72ee4a57b7ab3651db1ec99ff3167b86f2583c43
55
refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustdoc/clean.rs

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -598,9 +598,9 @@ pub enum Type {
598598
FixedVector(~Type, ~str),
599599
String,
600600
Bool,
601-
/// aka ty_nil
601+
/// aka TyNil
602602
Unit,
603-
/// aka ty_bot
603+
/// aka TyBot
604604
Bottom,
605605
Unique(~Type),
606606
Managed(~Type),
@@ -624,22 +624,22 @@ impl Clean<Type> for ast::Ty {
624624
let codemap = local_data::get(super::ctxtkey, |x| *x.unwrap()).sess.codemap;
625625
debug!("span corresponds to `{}`", codemap.span_to_str(self.span));
626626
match self.node {
627-
ty_nil => Unit,
628-
ty_ptr(ref m) => RawPointer(m.mutbl.clean(), ~m.ty.clean()),
629-
ty_rptr(ref l, ref m) =>
627+
TyNil => Unit,
628+
TyPtr(ref m) => RawPointer(m.mutbl.clean(), ~m.ty.clean()),
629+
TyRptr(ref l, ref m) =>
630630
BorrowedRef {lifetime: l.clean(), mutability: m.mutbl.clean(),
631631
type_: ~m.ty.clean()},
632-
ty_box(ty) => Managed(~ty.clean()),
633-
ty_uniq(ty) => Unique(~ty.clean()),
634-
ty_vec(ty) => Vector(~ty.clean()),
635-
ty_fixed_length_vec(ty, ref e) => FixedVector(~ty.clean(),
636-
e.span.to_src()),
637-
ty_tup(ref tys) => Tuple(tys.iter().map(|x| x.clean()).collect()),
638-
ty_path(ref p, ref tpbs, id) =>
632+
TyBox(ty) => Managed(~ty.clean()),
633+
TyUniq(ty) => Unique(~ty.clean()),
634+
TyVec(ty) => Vector(~ty.clean()),
635+
TyFixedLengthVec(ty, ref e) => FixedVector(~ty.clean(),
636+
e.span.to_src()),
637+
TyTup(ref tys) => Tuple(tys.iter().map(|x| x.clean()).collect()),
638+
TyPath(ref p, ref tpbs, id) =>
639639
resolve_type(p.clean(), tpbs.clean(), id),
640-
ty_closure(ref c) => Closure(~c.clean()),
641-
ty_bare_fn(ref barefn) => BareFunction(~barefn.clean()),
642-
ty_bot => Bottom,
640+
TyClosure(ref c) => Closure(~c.clean()),
641+
TyBareFn(ref barefn) => BareFunction(~barefn.clean()),
642+
TyBot => Bottom,
643643
ref x => fail!("Unimplemented type {:?}", x),
644644
}
645645
}
@@ -1204,9 +1204,8 @@ fn resolve_type(path: Path, tpbs: Option<~[TyParamBound]>,
12041204
let fqn = csearch::get_item_path(tycx, def_id);
12051205
let fqn = fqn.move_iter().map(|i| {
12061206
match i {
1207-
ast_map::path_mod(id) |
1208-
ast_map::path_name(id) |
1209-
ast_map::path_pretty_name(id, _) => id.clean()
1207+
ast_map::PathMod(id) | ast_map::PathName(id) |
1208+
ast_map::PathPrettyName(id, _) => id.clean()
12101209
}
12111210
}).to_owned_vec();
12121211
ExternalPath{ path: path, typarams: tpbs, fqn: fqn, kind: kind,

branches/snap-stage3/src/librustdoc/doctree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl Module {
3939
Module {
4040
name : name,
4141
id: 0,
42-
vis: ast::private,
42+
vis: ast::Private,
4343
where: syntax::codemap::DUMMY_SP,
4444
attrs : ~[],
4545
structs : ~[],

branches/snap-stage3/src/librustdoc/visit_ast.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -121,36 +121,36 @@ impl<'a> RustdocVisitor<'a> {
121121
om
122122
}
123123

124-
pub fn visit_view_item(&mut self, item: &ast::view_item, om: &mut Module) {
125-
if item.vis != ast::public {
124+
pub fn visit_view_item(&mut self, item: &ast::ViewItem, om: &mut Module) {
125+
if item.vis != ast::Public {
126126
return om.view_items.push(item.clone());
127127
}
128128
let item = match item.node {
129-
ast::view_item_use(ref paths) => {
129+
ast::ViewItemUse(ref paths) => {
130130
// rustc no longer supports "use foo, bar;"
131131
assert_eq!(paths.len(), 1);
132132
match self.visit_view_path(paths[0], om) {
133133
None => return,
134134
Some(path) => {
135-
ast::view_item {
136-
node: ast::view_item_use(~[path]),
135+
ast::ViewItem {
136+
node: ast::ViewItemUse(~[path]),
137137
.. item.clone()
138138
}
139139
}
140140
}
141141
}
142-
ast::view_item_extern_mod(..) => item.clone()
142+
ast::ViewItemExternMod(..) => item.clone()
143143
};
144144
om.view_items.push(item);
145145
}
146146

147-
fn visit_view_path(&mut self, path: @ast::view_path,
148-
om: &mut Module) -> Option<@ast::view_path> {
147+
fn visit_view_path(&mut self, path: @ast::ViewPath,
148+
om: &mut Module) -> Option<@ast::ViewPath> {
149149
match path.node {
150-
ast::view_path_simple(_, _, id) => {
150+
ast::ViewPathSimple(_, _, id) => {
151151
if self.resolve_id(id, false, om) { return None }
152152
}
153-
ast::view_path_list(ref p, ref paths, ref b) => {
153+
ast::ViewPathList(ref p, ref paths, ref b) => {
154154
let mut mine = ~[];
155155
for path in paths.iter() {
156156
if !self.resolve_id(path.node.id, false, om) {
@@ -160,13 +160,13 @@ impl<'a> RustdocVisitor<'a> {
160160

161161
if mine.len() == 0 { return None }
162162
return Some(@::syntax::codemap::Spanned {
163-
node: ast::view_path_list(p.clone(), mine, b.clone()),
163+
node: ast::ViewPathList(p.clone(), mine, b.clone()),
164164
span: path.span,
165165
})
166166
}
167167

168168
// these are feature gated anyway
169-
ast::view_path_glob(_, id) => {
169+
ast::ViewPathGlob(_, id) => {
170170
if self.resolve_id(id, true, om) { return None }
171171
}
172172
}

branches/snap-stage3/src/librustpkg/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ struct PkgScript<'a> {
8888
/// The config for compiling the custom build script
8989
cfg: ast::CrateConfig,
9090
/// The crate and ast_map for the custom build script
91-
crate_and_map: Option<(ast::Crate, syntax::ast_map::map)>,
91+
crate_and_map: Option<(ast::Crate, syntax::ast_map::Map)>,
9292
/// Directory in which to store build output
9393
build_dir: Path
9494
}

0 commit comments

Comments
 (0)