Skip to content

Commit 120c8e4

Browse files
committed
---
yaml --- r: 89269 b: refs/heads/snap-stage3 c: 33c7d76 h: refs/heads/master i: 89267: 1aa79df v: v3
1 parent eab9812 commit 120c8e4

Some content is hidden

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

48 files changed

+1259
-1698
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: deeca5d586bfaa4aa60246f671a8d611d38f6248
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 8d4719047b561891bbbffe3e7a146d17453c9fd0
4+
refs/heads/snap-stage3: 33c7d76208e47953dde8fbc62f3c22904bb4b110
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ then
591591
LLVM_VERSION=$($LLVM_CONFIG --version)
592592

593593
case $LLVM_VERSION in
594-
(3.[2-4]svn|3.[2-4])
594+
(3.3|3.3svn|3.2|3.2svn)
595595
msg "found ok version of LLVM: $LLVM_VERSION"
596596
;;
597597
(*)

branches/snap-stage3/doc/tutorial-testing.md

Lines changed: 0 additions & 263 deletions
This file was deleted.

branches/snap-stage3/doc/tutorial.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3220,7 +3220,6 @@ tutorials on individual topics.
32203220
* [Error-handling and Conditions][conditions]
32213221
* [Packaging up Rust code][rustpkg]
32223222
* [Documenting Rust code][rustdoc]
3223-
* [Testing Rust code][testing]
32243223

32253224
There is further documentation on the [wiki], however those tend to be even
32263225
more out of date than this document.
@@ -3232,7 +3231,6 @@ more out of date than this document.
32323231
[container]: tutorial-container.html
32333232
[conditions]: tutorial-conditions.html
32343233
[rustpkg]: tutorial-rustpkg.html
3235-
[testing]: tutorial-testing.html
32363234
[rustdoc]: rustdoc.html
32373235

32383236
[wiki]: https://github.com/mozilla/rust/wiki/Docs

branches/snap-stage3/mk/docs.mk

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,6 @@ doc/tutorial-ffi.html: tutorial-ffi.md doc/version_info.html doc/rust.css \
133133
$(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \
134134
$(CFG_PANDOC) $(HTML_OPTS) --output=$@
135135

136-
DOCS += doc/tutorial-testing.html
137-
doc/tutorial-testing.html: tutorial-testing.md doc/version_info.html doc/rust.css \
138-
doc/favicon.inc
139-
@$(call E, pandoc: $@)
140-
$(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \
141-
$(CFG_PANDOC) $(HTML_OPTS) --output=$@
142-
143136
DOCS += doc/tutorial-borrowed-ptr.html
144137
doc/tutorial-borrowed-ptr.html: tutorial-borrowed-ptr.md doc/version_info.html doc/rust.css \
145138
doc/favicon.inc

branches/snap-stage3/src/librustc/README.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ASTs -- are in a separate crate called "syntax", whose files are in
3535
./../libsyntax, where . is the current directory (that is, the parent
3636
directory of front/, middle/, back/, and so on).
3737

38-
The entry-point for the compiler is main() in rustc.rc, and
38+
The entry-point for the compiler is main() in lib.rs, and
3939
this file sequences the various parts together.
4040

4141

@@ -75,7 +75,7 @@ The 3 central data structures:
7575
Control and information flow within the compiler:
7676
-------------------------------------------------
7777

78-
- main() in rustc.rc assumes control on startup. Options are
78+
- main() in lib.rs assumes control on startup. Options are
7979
parsed, platform is detected, etc.
8080

8181
- ./../libsyntax/parse/parser.rs parses the input files and produces an AST

branches/snap-stage3/src/librustc/front/config.rs

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
use syntax::fold::ast_fold;
1313
use syntax::{ast, fold, attr};
14-
use syntax::codemap;
1514

1615
struct Context<'a> {
1716
in_cfg: 'a |attrs: &[ast::Attribute]| -> bool,
@@ -110,47 +109,12 @@ fn fold_item_underscore(cx: &mut Context, item: &ast::item_) -> ast::item_ {
110109
.collect();
111110
ast::item_trait((*a).clone(), (*b).clone(), methods)
112111
}
113-
ast::item_struct(def, ref generics) => {
114-
ast::item_struct(fold_struct(cx, def), generics.clone())
115-
}
116-
ast::item_enum(ref def, ref generics) => {
117-
let mut variants = def.variants.iter().map(|c| c.clone()).filter(|m| {
118-
(cx.in_cfg)(m.node.attrs)
119-
}).map(|v| {
120-
match v.node.kind {
121-
ast::tuple_variant_kind(..) => v,
122-
ast::struct_variant_kind(def) => {
123-
let def = fold_struct(cx, def);
124-
@codemap::Spanned {
125-
node: ast::variant_ {
126-
kind: ast::struct_variant_kind(def),
127-
..v.node.clone()
128-
},
129-
..*v
130-
}
131-
}
132-
}
133-
});
134-
ast::item_enum(ast::enum_def {
135-
variants: variants.collect(),
136-
}, generics.clone())
137-
}
138-
ref item => item.clone(),
112+
ref item => (*item).clone(),
139113
};
140114

141115
fold::noop_fold_item_underscore(&item, cx)
142116
}
143117

144-
fn fold_struct(cx: &Context, def: &ast::struct_def) -> @ast::struct_def {
145-
let mut fields = def.fields.iter().map(|c| c.clone()).filter(|m| {
146-
(cx.in_cfg)(m.node.attrs)
147-
});
148-
@ast::struct_def {
149-
fields: fields.collect(),
150-
ctor_id: def.ctor_id,
151-
}
152-
}
153-
154118
fn retain_stmt(cx: &Context, stmt: @ast::Stmt) -> bool {
155119
match stmt.node {
156120
ast::StmtDecl(decl, _) => {

0 commit comments

Comments
 (0)