Skip to content

Commit 9fffb8d

Browse files
committed
---
yaml --- r: 151374 b: refs/heads/try2 c: 445988b h: refs/heads/master v: v3
1 parent d27376e commit 9fffb8d

File tree

729 files changed

+10403
-12080
lines changed

Some content is hidden

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

729 files changed

+10403
-12080
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: 7b2a89fa757eccc34d99568c2efc83285f39d33d
8+
refs/heads/try2: 445988b47811679144d0fa9b3a2ccf2348752850
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@
1212
[submodule "src/compiler-rt"]
1313
path = src/compiler-rt
1414
url = https://github.com/rust-lang/compiler-rt.git
15+
[submodule "src/rt/hoedown"]
16+
path = src/rt/hoedown
17+
url = https://github.com/rust-lang/hoedown.git

branches/try2/AUTHORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ Raphael Speyer <[email protected]>
362362
reedlepee <[email protected]>
363363
Reuben Morais <[email protected]>
364364
Richard Diamond <[email protected]>
365+
Richo Healey <[email protected]>
365366
Rick Waldron <[email protected]>
366367
Rob Arnold <[email protected]>
367368
Rob Hoelz <[email protected]>

branches/try2/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ message explaining why.
3333

3434
In the licensing header at the beginning of any files you change,
3535
please make sure the listed date range includes the current year. For
36-
example, if it's 2013, and you change a Rust file that was created in
36+
example, if it's 2014, and you change a Rust file that was created in
3737
2010, it should begin:
3838

3939
```
40-
// Copyright 2010-2013 The Rust Project Developers.
40+
// Copyright 2010-2014 The Rust Project Developers.
4141
```
4242

4343
For more details, please refer to

branches/try2/LICENSE-MIT

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Copyright (c) 2006-2009 Graydon Hoare
2-
Copyright (c) 2009-2014 Mozilla Foundation
1+
Copyright (c) 2014 The Rust Project Developers
32

43
Permission is hereby granted, free of charge, to any
54
person obtaining a copy of this software and associated

branches/try2/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ documentation.
2020
## Building from Source
2121

2222
1. Make sure you have installed the dependencies:
23-
* `g++` 4.4 or `clang++` 3.x
23+
* `g++` 4.7 or `clang++` 3.x
2424
* `python` 2.6 or later (but not 3.x)
2525
* `perl` 5.0 or later
2626
* GNU `make` 3.81 or later

branches/try2/RELEASES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Version 0.10 (April 2014)
6363
documentation index page.
6464
* std: `std::condition` has been removed. All I/O errors are now propagated
6565
through the `Result` type. In order to assist with error handling, a
66-
`try!` macro for unwrapping errors with an early return and an lint for
66+
`try!` macro for unwrapping errors with an early return and a lint for
6767
unused results has been added. See #12039 for more information.
6868
* std: The `vec` module has been renamed to `slice`.
6969
* std: A new vector type, `Vec<T>`, has been added in preparation for DST.

branches/try2/mk/crates.mk

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# DEPS_<crate>
3939
# These lists are the dependencies of the <crate> that is to be built.
4040
# Rust dependencies are listed bare (i.e. std, green) and native
41-
# dependencies have a "native:" prefix (i.e. native:sundown). All deps
41+
# dependencies have a "native:" prefix (i.e. native:hoedown). All deps
4242
# will be built before the crate itself is built.
4343
#
4444
# TOOL_DEPS_<tool>/TOOL_SOURCE_<tool>
@@ -51,7 +51,7 @@
5151

5252
TARGET_CRATES := libc std green rustuv native flate arena glob term semver \
5353
uuid serialize sync getopts collections num test time rand \
54-
workcache url log regex
54+
workcache url log regex graphviz
5555
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat regex_macros
5656
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5757
TOOLS := compiletest rustdoc rustc
@@ -63,10 +63,11 @@ DEPS_native := std
6363
DEPS_syntax := std term serialize collections log
6464
DEPS_rustc := syntax native:rustllvm flate arena serialize sync getopts \
6565
collections time log
66-
DEPS_rustdoc := rustc native:sundown serialize sync getopts collections \
66+
DEPS_rustdoc := rustc native:hoedown serialize sync getopts collections \
6767
test time
6868
DEPS_flate := std native:miniz
6969
DEPS_arena := std collections
70+
DEPS_graphviz := std
7071
DEPS_glob := std
7172
DEPS_serialize := std collections log
7273
DEPS_term := std collections

branches/try2/mk/dist.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ LICENSE.txt: $(S)COPYRIGHT $(S)LICENSE-APACHE $(S)LICENSE-MIT
3535

3636
PKG_TAR = dist/$(PKG_NAME).tar.gz
3737

38-
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm $(S)src/gyp $(S)src/compiler-rt
38+
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm $(S)src/gyp $(S)src/compiler-rt \
39+
$(S)src/rt/hoedown
3940
PKG_FILES := \
4041
$(S)COPYRIGHT \
4142
$(S)LICENSE-APACHE \

branches/try2/mk/docs.mk

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -141,26 +141,6 @@ doc/footer.inc: $(D)/footer.inc | doc/
141141
@$(call E, cp: $@)
142142
$(Q)cp -a $< $@ 2> /dev/null
143143

144-
doc/FiraSans-Regular.woff: $(D)/FiraSans-Regular.woff | doc/
145-
@$(call E, cp: $@)
146-
$(Q)cp -a $< $@ 2> /dev/null
147-
148-
doc/FiraSans-Medium.woff: $(D)/FiraSans-Medium.woff | doc/
149-
@$(call E, cp: $@)
150-
$(Q)cp -a $< $@ 2> /dev/null
151-
152-
doc/Heuristica-Regular.woff: $(D)/Heuristica-Regular.woff | doc/
153-
@$(call E, cp: $@)
154-
$(Q)cp -a $< $@ 2> /dev/null
155-
156-
doc/Heuristica-Italic.woff: $(D)/Heuristica-Italic.woff | doc/
157-
@$(call E, cp: $@)
158-
$(Q)cp -a $< $@ 2> /dev/null
159-
160-
doc/Heuristica-Bold.woff: $(D)/Heuristica-Bold.woff | doc/
161-
@$(call E, cp: $@)
162-
$(Q)cp -a $< $@ 2> /dev/null
163-
164144
# The (english) documentation for each doc item.
165145

166146
define DEF_SHOULD_BUILD_PDF_DOC

branches/try2/mk/platform.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ CFG_PATH_MUNGE_arm-unknown-linux-gnueabihf := true
330330
CFG_LDPATH_arm-unknown-linux-gnueabihf :=
331331
CFG_RUN_arm-unknown-linux-gnueabihf=$(2)
332332
CFG_RUN_TARG_arm-unknown-linux-gnueabihf=$(call CFG_RUN_arm-unknown-linux-gnueabihf,,$(2))
333-
RUSTC_FLAGS_arm-unknown-linux-gnueabihf := -C target-feature=+v7,+vfp3
333+
RUSTC_FLAGS_arm-unknown-linux-gnueabihf := -C target-feature=+v6,+vfp2
334334
RUSTC_CROSS_FLAGS_arm-unknown-linux-gnueabihf :=
335335

336336
# arm-unknown-linux-gnueabi configuration

branches/try2/mk/rt.mk

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,20 @@
3535
# that's per-target so you're allowed to conditionally add files based on the
3636
# target.
3737
################################################################################
38-
NATIVE_LIBS := rustrt sundown uv_support morestack miniz context_switch
38+
NATIVE_LIBS := rustrt hoedown uv_support morestack miniz context_switch
3939

4040
# $(1) is the target triple
4141
define NATIVE_LIBRARIES
4242

43-
NATIVE_DEPS_sundown_$(1) := sundown/src/autolink.c \
44-
sundown/src/buffer.c \
45-
sundown/src/stack.c \
46-
sundown/src/markdown.c \
47-
sundown/html/houdini_href_e.c \
48-
sundown/html/houdini_html_e.c \
49-
sundown/html/html_smartypants.c \
50-
sundown/html/html.c
43+
NATIVE_DEPS_hoedown_$(1) := hoedown/src/autolink.c \
44+
hoedown/src/buffer.c \
45+
hoedown/src/document.c \
46+
hoedown/src/escape.c \
47+
hoedown/src/html.c \
48+
hoedown/src/html_blocks.c \
49+
hoedown/src/html_smartypants.c \
50+
hoedown/src/stack.c \
51+
hoedown/src/version.c
5152
NATIVE_DEPS_uv_support_$(1) := rust_uv.c
5253
NATIVE_DEPS_miniz_$(1) = miniz.c
5354
NATIVE_DEPS_rustrt_$(1) := rust_builtin.c \
@@ -79,7 +80,7 @@ $$(RT_OUTPUT_DIR_$(1))/%.o: $(S)src/rt/%.c $$(MKFILE_DEPS)
7980
@mkdir -p $$(@D)
8081
@$$(call E, compile: $$@)
8182
$$(Q)$$(call CFG_COMPILE_C_$(1), $$@, \
82-
-I $$(S)src/rt/sundown/src -I $$(S)src/rt/sundown/html \
83+
-I $$(S)src/rt/hoedown/src \
8384
-I $$(S)src/libuv/include -I $$(S)src/rt \
8485
$$(RUNTIME_CFLAGS_$(1))) $$<
8586

branches/try2/mk/tests.mk

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ ALL_CS := $(wildcard $(S)src/rt/*.cpp \
220220
$(S)src/rt/*/*/*.cpp \
221221
$(S)src/rustllvm/*.cpp)
222222
ALL_CS := $(filter-out $(S)src/rt/miniz.cpp \
223-
$(wildcard $(S)src/rt/sundown/src/*.c) \
224-
$(wildcard $(S)src/rt/sundown/html/*.c) \
223+
$(wildcard $(S)src/rt/hoedown/src/*.c) \
224+
$(wildcard $(S)src/rt/hoedown/bin/*.c) \
225225
,$(ALL_CS))
226226
ALL_HS := $(wildcard $(S)src/rt/*.h \
227227
$(S)src/rt/*/*.h \
@@ -232,8 +232,8 @@ ALL_HS := $(filter-out $(S)src/rt/vg/valgrind.h \
232232
$(S)src/rt/msvc/typeof.h \
233233
$(S)src/rt/msvc/stdint.h \
234234
$(S)src/rt/msvc/inttypes.h \
235-
$(wildcard $(S)src/rt/sundown/src/*.h) \
236-
$(wildcard $(S)src/rt/sundown/html/*.h) \
235+
$(wildcard $(S)src/rt/hoedown/src/*.h) \
236+
$(wildcard $(S)src/rt/hoedown/bin/*.h) \
237237
,$(ALL_HS))
238238

239239
# Run the tidy script in multiple parts to avoid huge 'echo' commands
@@ -266,6 +266,7 @@ tidy:
266266
-and -not -name '*.sh' \
267267
| grep '^$(S)src/llvm' -v \
268268
| grep '^$(S)src/libuv' -v \
269+
| grep '^$(S)src/rt/hoedown' -v \
269270
| grep '^$(S)src/gyp' -v \
270271
| grep '^$(S)src/etc' -v \
271272
| grep '^$(S)src/doc' -v \
@@ -350,6 +351,16 @@ TESTDEP_$(1)_$(2)_$(3)_$(4) = $$(SREQ$(1)_T_$(2)_H_$(3)) \
350351
$$(foreach crate,$$(TARGET_CRATES),\
351352
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$$(crate)) \
352353
$$(CRATE_FULLDEPS_$(1)_T_$(2)_H_$(3)_$(4))
354+
355+
# The regex crate depends on the regex_macros crate during testing, but it
356+
# notably depend on the *host* regex_macros crate, not the target version.
357+
# Additionally, this is not a dependency in stage1, only in stage2.
358+
ifeq ($(4),regex)
359+
ifneq ($(1),1)
360+
TESTDEP_$(1)_$(2)_$(3)_$(4) += $$(TLIB$(1)_T_$(3)_H_$(3))/stamp.regex_macros
361+
endif
362+
endif
363+
353364
else
354365
TESTDEP_$(1)_$(2)_$(3)_$(4) = $$(RSINPUTS_$(4))
355366
endif

branches/try2/src/compiletest/header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ fn parse_compile_flags(line: &str) -> Option<~str> {
170170
}
171171

172172
fn parse_run_flags(line: &str) -> Option<~str> {
173-
parse_name_value_directive(line, ~"run-flags")
173+
parse_name_value_directive(line, "run-flags".to_owned())
174174
}
175175

176176
fn parse_debugger_cmd(line: &str) -> Option<~str> {

branches/try2/src/compiletest/runtest.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ fn run_cfail_test(config: &config, props: &TestProps, testfile: &Path) {
8989
} else {
9090
check_error_patterns(props, testfile, &proc_res);
9191
}
92+
check_no_compiler_crash(&proc_res);
9293
}
9394

9495
fn run_rfail_test(config: &config, props: &TestProps, testfile: &Path) {
@@ -505,6 +506,15 @@ fn check_error_patterns(props: &TestProps,
505506
}
506507
}
507508

509+
fn check_no_compiler_crash(proc_res: &ProcRes) {
510+
for line in proc_res.stderr.lines() {
511+
if line.starts_with("error: internal compiler error:") {
512+
fatal_ProcRes("compiler encountered internal error".to_owned(),
513+
proc_res);
514+
}
515+
}
516+
}
517+
508518
fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
509519
testfile: &Path,
510520
proc_res: &ProcRes) {

branches/try2/src/doc/complement-cheatsheet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ use std::str;
6262
6363
let x: Option<~str> = str::from_utf8_owned(~[104u8,105u8]);
6464
let y: ~str = x.unwrap();
65-
~~~~
65+
~~~
6666

6767
To return a [`MaybeOwned`](http://static.rust-lang.org/doc/master/std/str/enum.MaybeOwned.html) use the str helper function [`from_utf8_lossy`](http://static.rust-lang.org/doc/master/std/str/fn.from_utf8_owned.html). This function also replaces non-valid utf-8 sequences with U+FFFD replacement character.
6868

@@ -71,7 +71,7 @@ use std::str;
7171
7272
let x = bytes!(72u8,"ello ",0xF0,0x90,0x80,"World!");
7373
let y = str::from_utf8_lossy(x);
74-
~~~~
74+
~~~
7575

7676
# File operations
7777

branches/try2/src/doc/complement-lang-faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ For simplicity, we do not plan to do so. Implementing automatic semicolon insert
135135

136136
**Short answer** set the RUST_LOG environment variable to the name of your source file, sans extension.
137137

138-
``` {.sh .notrust}
138+
```notrust,sh
139139
rustc hello.rs
140140
export RUST_LOG=hello
141141
./hello

branches/try2/src/doc/guide-container.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl Iterator<int> for ZeroStream {
8181
Some(0)
8282
}
8383
}
84-
~~~~
84+
~~~
8585

8686
Reaching the end of the iterator is signalled by returning `None` instead of
8787
`Some(item)`:
@@ -120,12 +120,13 @@ differently.
120120
Containers implement iteration over the contained elements by returning an
121121
iterator object. For example, vector slices several iterators available:
122122

123-
* `iter()` and `rev_iter()`, for immutable references to the elements
124-
* `mut_iter()` and `mut_rev_iter()`, for mutable references to the elements
125-
* `move_iter()` and `move_rev_iter()`, to move the elements out by-value
123+
* `iter()` for immutable references to the elements
124+
* `mut_iter()` for mutable references to the elements
125+
* `move_iter()` to move the elements out by-value
126126

127127
A typical mutable container will implement at least `iter()`, `mut_iter()` and
128-
`move_iter()` along with the reverse variants if it maintains an order.
128+
`move_iter()`. If it maintains an order, the returned iterators will be
129+
`DoubleEndedIterator`s, which are described below.
129130

130131
### Freezing
131132

@@ -265,7 +266,7 @@ Iterators offer generic conversion to containers with the `collect` adaptor:
265266

266267
~~~
267268
let xs = [0, 1, 1, 2, 3, 5, 8];
268-
let ys = xs.rev_iter().skip(1).map(|&x| x * 2).collect::<~[int]>();
269+
let ys = xs.iter().rev().skip(1).map(|&x| x * 2).collect::<~[int]>();
269270
assert_eq!(ys, ~[10, 6, 4, 2, 2, 0]);
270271
~~~
271272

@@ -358,9 +359,6 @@ for &x in it.rev() {
358359
}
359360
~~~
360361

361-
The `rev_iter` and `mut_rev_iter` methods on vectors just return an inverted
362-
version of the standard immutable and mutable vector iterators.
363-
364362
The `chain`, `map`, `filter`, `filter_map` and `inspect` adaptors are
365363
`DoubleEndedIterator` implementations if the underlying iterators are.
366364

0 commit comments

Comments
 (0)