Skip to content

Commit 2d4a7e0

Browse files
committed
---
yaml --- r: 114654 b: refs/heads/auto c: 48b1a45 h: refs/heads/master v: v3
1 parent 9b90bac commit 2d4a7e0

File tree

569 files changed

+8026
-3523
lines changed

Some content is hidden

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

569 files changed

+8026
-3523
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: ef6daf9935da103f1b915a5c9904794da79b0b60
16+
refs/heads/auto: 48b1a45cbcbb5684fa1403e9555a4e409863ff14
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/.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/auto/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/auto/mk/crates.mk

Lines changed: 2 additions & 2 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>
@@ -63,7 +63,7 @@ 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

branches/auto/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/auto/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/auto/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/auto/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/auto/mk/tests.mk

Lines changed: 4 additions & 5 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 \

branches/auto/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/auto/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/auto/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

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

Lines changed: 1 addition & 1 deletion
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)`:

branches/auto/src/doc/guide-ffi.md

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ snappy includes a C interface (documented in
1111
The following is a minimal example of calling a foreign function which will
1212
compile if snappy is installed:
1313

14-
~~~~no_run
14+
~~~~
1515
extern crate libc;
1616
use libc::size_t;
1717
1818
#[link(name = "snappy")]
19+
# #[cfg(ignore_this)]
1920
extern {
2021
fn snappy_max_compressed_length(source_length: size_t) -> size_t;
2122
}
23+
# unsafe fn snappy_max_compressed_length(a: size_t) -> size_t { a }
2224
2325
fn main() {
2426
let x = unsafe { snappy_max_compressed_length(100) };
@@ -44,7 +46,7 @@ keeping the binding correct at runtime.
4446

4547
The `extern` block can be extended to cover the entire snappy API:
4648

47-
~~~~no_run
49+
~~~~ {.ignore}
4850
extern crate libc;
4951
use libc::{c_int, size_t};
5052
@@ -65,7 +67,6 @@ extern {
6567
fn snappy_validate_compressed_buffer(compressed: *u8,
6668
compressed_length: size_t) -> c_int;
6769
}
68-
# fn main() {}
6970
~~~~
7071

7172
# Creating a safe interface
@@ -208,16 +209,19 @@ A basic example is:
208209

209210
Rust code:
210211

211-
~~~~no_run
212+
~~~~
212213
extern fn callback(a:i32) {
213214
println!("I'm called from C with value {0}", a);
214215
}
215216
216217
#[link(name = "extlib")]
218+
# #[cfg(ignore)]
217219
extern {
218220
fn register_callback(cb: extern fn(i32)) -> i32;
219221
fn trigger_callback();
220222
}
223+
# unsafe fn register_callback(cb: extern fn(i32)) -> i32 { 0 }
224+
# unsafe fn trigger_callback() { }
221225
222226
fn main() {
223227
unsafe {
@@ -261,7 +265,7 @@ referenced Rust object.
261265

262266
Rust code:
263267

264-
~~~~no_run
268+
~~~~
265269
266270
struct RustObject {
267271
a: i32,
@@ -277,15 +281,19 @@ extern fn callback(target: *mut RustObject, a:i32) {
277281
}
278282
279283
#[link(name = "extlib")]
284+
# #[cfg(ignore)]
280285
extern {
281286
fn register_callback(target: *mut RustObject,
282287
cb: extern fn(*mut RustObject, i32)) -> i32;
283288
fn trigger_callback();
284289
}
290+
# unsafe fn register_callback(a: *mut RustObject,
291+
# b: extern fn(*mut RustObject, i32)) -> i32 { 0 }
292+
# unsafe fn trigger_callback() {}
285293
286294
fn main() {
287295
// Create the object that will be referenced in the callback
288-
let mut rust_object = box RustObject { a: 5 };
296+
let mut rust_object = ~RustObject{ a: 5 };
289297
290298
unsafe {
291299
register_callback(&mut *rust_object, callback);
@@ -390,12 +398,9 @@ the `link_args` attribute. This attribute is applied to `extern` blocks and
390398
specifies raw flags which need to get passed to the linker when producing an
391399
artifact. An example usage would be:
392400

393-
~~~ no_run
394-
#![feature(link_args)]
395-
401+
~~~ {.ignore}
396402
#[link_args = "-foo -bar -baz"]
397403
extern {}
398-
# fn main() {}
399404
~~~
400405

401406
Note that this feature is currently hidden behind the `feature(link_args)` gate
@@ -429,13 +434,15 @@ Foreign APIs often export a global variable which could do something like track
429434
global state. In order to access these variables, you declare them in `extern`
430435
blocks with the `static` keyword:
431436

432-
~~~no_run
437+
~~~
433438
extern crate libc;
434439
435440
#[link(name = "readline")]
441+
# #[cfg(ignore)]
436442
extern {
437443
static rl_readline_version: libc::c_int;
438444
}
445+
# static rl_readline_version: libc::c_int = 0;
439446
440447
fn main() {
441448
println!("You have readline version {} installed.",
@@ -447,14 +454,16 @@ Alternatively, you may need to alter global state provided by a foreign
447454
interface. To do this, statics can be declared with `mut` so rust can mutate
448455
them.
449456

450-
~~~no_run
457+
~~~
451458
extern crate libc;
452459
use std::ptr;
453460
454461
#[link(name = "readline")]
462+
# #[cfg(ignore)]
455463
extern {
456464
static mut rl_prompt: *libc::c_char;
457465
}
466+
# static mut rl_prompt: *libc::c_char = 0 as *libc::c_char;
458467
459468
fn main() {
460469
"[my-awesome-shell] $".with_c_str(|buf| {
@@ -479,6 +488,7 @@ extern crate libc;
479488
extern "stdcall" {
480489
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> libc::c_int;
481490
}
491+
482492
# fn main() { }
483493
~~~~
484494

0 commit comments

Comments
 (0)