Skip to content

Commit d27376e

Browse files
committed
---
yaml --- r: 151373 b: refs/heads/try2 c: 7b2a89f h: refs/heads/master i: 151371: 087a7be v: v3
1 parent 0dbf2f1 commit d27376e

File tree

738 files changed

+12093
-10404
lines changed

Some content is hidden

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

738 files changed

+12093
-10404
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: f83cf6cf2acfd46329ccb804d63ad0336a98064b
8+
refs/heads/try2: 7b2a89fa757eccc34d99568c2efc83285f39d33d
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: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,3 @@
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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ Raphael Speyer <[email protected]>
362362
reedlepee <[email protected]>
363363
Reuben Morais <[email protected]>
364364
Richard Diamond <[email protected]>
365-
Richo Healey <[email protected]>
366365
Rick Waldron <[email protected]>
367366
Rob Arnold <[email protected]>
368367
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 2014, and you change a Rust file that was created in
36+
example, if it's 2013, and you change a Rust file that was created in
3737
2010, it should begin:
3838

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

4343
For more details, please refer to

branches/try2/LICENSE-MIT

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

34
Permission is hereby granted, free of charge, to any
45
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.7 or `clang++` 3.x
23+
* `g++` 4.4 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 a lint for
66+
`try!` macro for unwrapping errors with an early return and an 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/configure

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,7 @@ do
803803
make_dir $h/test/run-pass-fulldeps
804804
make_dir $h/test/run-fail
805805
make_dir $h/test/compile-fail
806+
make_dir $h/test/compile-fail-fulldeps
806807
make_dir $h/test/bench
807808
make_dir $h/test/perf
808809
make_dir $h/test/pretty

branches/try2/mk/crates.mk

Lines changed: 3 additions & 4 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:hoedown). All deps
41+
# dependencies have a "native:" prefix (i.e. native:sundown). 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 graphviz
54+
workcache url log regex
5555
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat regex_macros
5656
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5757
TOOLS := compiletest rustdoc rustc
@@ -63,11 +63,10 @@ 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:hoedown serialize sync getopts collections \
66+
DEPS_rustdoc := rustc native:sundown serialize sync getopts collections \
6767
test time
6868
DEPS_flate := std native:miniz
6969
DEPS_arena := std collections
70-
DEPS_graphviz := std
7170
DEPS_glob := std
7271
DEPS_serialize := std collections log
7372
DEPS_term := std collections

branches/try2/mk/dist.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ 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 \
39-
$(S)src/rt/hoedown
38+
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm $(S)src/gyp $(S)src/compiler-rt
4039
PKG_FILES := \
4140
$(S)COPYRIGHT \
4241
$(S)LICENSE-APACHE \

branches/try2/mk/docs.mk

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,26 @@ 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+
144164
# The (english) documentation for each doc item.
145165

146166
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=+v6,+vfp2
333+
RUSTC_FLAGS_arm-unknown-linux-gnueabihf := -C target-feature=+v7,+vfp3
334334
RUSTC_CROSS_FLAGS_arm-unknown-linux-gnueabihf :=
335335

336336
# arm-unknown-linux-gnueabi configuration

branches/try2/mk/rt.mk

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

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

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
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
5251
NATIVE_DEPS_uv_support_$(1) := rust_uv.c
5352
NATIVE_DEPS_miniz_$(1) = miniz.c
5453
NATIVE_DEPS_rustrt_$(1) := rust_builtin.c \
@@ -80,7 +79,7 @@ $$(RT_OUTPUT_DIR_$(1))/%.o: $(S)src/rt/%.c $$(MKFILE_DEPS)
8079
@mkdir -p $$(@D)
8180
@$$(call E, compile: $$@)
8281
$$(Q)$$(call CFG_COMPILE_C_$(1), $$@, \
83-
-I $$(S)src/rt/hoedown/src \
82+
-I $$(S)src/rt/sundown/src -I $$(S)src/rt/sundown/html \
8483
-I $$(S)src/libuv/include -I $$(S)src/rt \
8584
$$(RUNTIME_CFLAGS_$(1))) $$<
8685

branches/try2/mk/tests.mk

Lines changed: 16 additions & 16 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/hoedown/src/*.c) \
224-
$(wildcard $(S)src/rt/hoedown/bin/*.c) \
223+
$(wildcard $(S)src/rt/sundown/src/*.c) \
224+
$(wildcard $(S)src/rt/sundown/html/*.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/hoedown/src/*.h) \
236-
$(wildcard $(S)src/rt/hoedown/bin/*.h) \
235+
$(wildcard $(S)src/rt/sundown/src/*.h) \
236+
$(wildcard $(S)src/rt/sundown/html/*.h) \
237237
,$(ALL_HS))
238238

239239
# Run the tidy script in multiple parts to avoid huge 'echo' commands
@@ -266,7 +266,6 @@ 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 \
270269
| grep '^$(S)src/gyp' -v \
271270
| grep '^$(S)src/etc' -v \
272271
| grep '^$(S)src/doc' -v \
@@ -288,6 +287,7 @@ check-stage$(1)-T-$(2)-H-$(3)-exec: \
288287
check-stage$(1)-T-$(2)-H-$(3)-rfail-exec \
289288
check-stage$(1)-T-$(2)-H-$(3)-cfail-exec \
290289
check-stage$(1)-T-$(2)-H-$(3)-rpass-full-exec \
290+
check-stage$(1)-T-$(2)-H-$(3)-cfail-full-exec \
291291
check-stage$(1)-T-$(2)-H-$(3)-rmake-exec \
292292
check-stage$(1)-T-$(2)-H-$(3)-crates-exec \
293293
check-stage$(1)-T-$(2)-H-$(3)-doc-crates-exec \
@@ -350,16 +350,6 @@ TESTDEP_$(1)_$(2)_$(3)_$(4) = $$(SREQ$(1)_T_$(2)_H_$(3)) \
350350
$$(foreach crate,$$(TARGET_CRATES),\
351351
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$$(crate)) \
352352
$$(CRATE_FULLDEPS_$(1)_T_$(2)_H_$(3)_$(4))
353-
354-
# The regex crate depends on the regex_macros crate during testing, but it
355-
# notably depend on the *host* regex_macros crate, not the target version.
356-
# Additionally, this is not a dependency in stage1, only in stage2.
357-
ifeq ($(4),regex)
358-
ifneq ($(1),1)
359-
TESTDEP_$(1)_$(2)_$(3)_$(4) += $$(TLIB$(1)_T_$(3)_H_$(3))/stamp.regex_macros
360-
endif
361-
endif
362-
363353
else
364354
TESTDEP_$(1)_$(2)_$(3)_$(4) = $$(RSINPUTS_$(4))
365355
endif
@@ -451,6 +441,8 @@ RPASS_RC := $(wildcard $(S)src/test/run-pass/*.rc)
451441
RPASS_RS := $(wildcard $(S)src/test/run-pass/*.rs)
452442
RPASS_FULL_RC := $(wildcard $(S)src/test/run-pass-fulldeps/*.rc)
453443
RPASS_FULL_RS := $(wildcard $(S)src/test/run-pass-fulldeps/*.rs)
444+
CFAIL_FULL_RC := $(wildcard $(S)src/test/compile-fail-fulldeps/*.rc)
445+
CFAIL_FULL_RS := $(wildcard $(S)src/test/compile-fail-fulldeps/*.rs)
454446
RFAIL_RC := $(wildcard $(S)src/test/run-fail/*.rc)
455447
RFAIL_RS := $(wildcard $(S)src/test/run-fail/*.rs)
456448
CFAIL_RC := $(wildcard $(S)src/test/compile-fail/*.rc)
@@ -467,6 +459,7 @@ PERF_RS := $(wildcard $(S)src/test/bench/*.rs)
467459

468460
RPASS_TESTS := $(RPASS_RC) $(RPASS_RS)
469461
RPASS_FULL_TESTS := $(RPASS_FULL_RC) $(RPASS_FULL_RS)
462+
CFAIL_FULL_TESTS := $(CFAIL_FULL_RC) $(CFAIL_FULL_RS)
470463
RFAIL_TESTS := $(RFAIL_RC) $(RFAIL_RS)
471464
CFAIL_TESTS := $(CFAIL_RC) $(CFAIL_RS)
472465
BENCH_TESTS := $(BENCH_RS)
@@ -485,6 +478,11 @@ CTEST_BUILD_BASE_rpass-full = run-pass-fulldeps
485478
CTEST_MODE_rpass-full = run-pass
486479
CTEST_RUNTOOL_rpass-full = $(CTEST_RUNTOOL)
487480

481+
CTEST_SRC_BASE_cfail-full = compile-fail-fulldeps
482+
CTEST_BUILD_BASE_cfail-full = compile-fail-fulldeps
483+
CTEST_MODE_cfail-full = compile-fail
484+
CTEST_RUNTOOL_cfail-full = $(CTEST_RUNTOOL)
485+
488486
CTEST_SRC_BASE_rfail = run-fail
489487
CTEST_BUILD_BASE_rfail = run-fail
490488
CTEST_MODE_rfail = run-fail
@@ -583,6 +581,7 @@ CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3) := \
583581

584582
CTEST_DEPS_rpass_$(1)-T-$(2)-H-$(3) = $$(RPASS_TESTS)
585583
CTEST_DEPS_rpass-full_$(1)-T-$(2)-H-$(3) = $$(RPASS_FULL_TESTS) $$(CSREQ$(1)_T_$(3)_H_$(3)) $$(SREQ$(1)_T_$(2)_H_$(3))
584+
CTEST_DEPS_cfail-full_$(1)-T-$(2)-H-$(3) = $$(CFAIL_FULL_TESTS) $$(CSREQ$(1)_T_$(3)_H_$(3)) $$(SREQ$(1)_T_$(2)_H_$(3))
586585
CTEST_DEPS_rfail_$(1)-T-$(2)-H-$(3) = $$(RFAIL_TESTS)
587586
CTEST_DEPS_cfail_$(1)-T-$(2)-H-$(3) = $$(CFAIL_TESTS)
588587
CTEST_DEPS_bench_$(1)-T-$(2)-H-$(3) = $$(BENCH_TESTS)
@@ -651,7 +650,7 @@ endif
651650

652651
endef
653652

654-
CTEST_NAMES = rpass rpass-full rfail cfail bench perf debuginfo codegen
653+
CTEST_NAMES = rpass rpass-full cfail-full rfail cfail bench perf debuginfo codegen
655654

656655
$(foreach host,$(CFG_HOST), \
657656
$(eval $(foreach target,$(CFG_TARGET), \
@@ -794,6 +793,7 @@ TEST_GROUPS = \
794793
$(foreach crate,$(TEST_DOC_CRATES),doc-crate-$(crate)) \
795794
rpass \
796795
rpass-full \
796+
cfail-full \
797797
rfail \
798798
cfail \
799799
bench \

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".to_owned())
173+
parse_name_value_directive(line, ~"run-flags")
174174
}
175175

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

branches/try2/src/compiletest/runtest.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ 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);
9392
}
9493

9594
fn run_rfail_test(config: &config, props: &TestProps, testfile: &Path) {
@@ -506,15 +505,6 @@ fn check_error_patterns(props: &TestProps,
506505
}
507506
}
508507

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-
518508
fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
519509
testfile: &Path,
520510
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-
```notrust,sh
138+
``` {.sh .notrust}
139139
rustc hello.rs
140140
export RUST_LOG=hello
141141
./hello

0 commit comments

Comments
 (0)