Skip to content

Commit 118a6ff

Browse files
committed
---
yaml --- r: 274649 b: refs/heads/stable c: 70650f8 h: refs/heads/master i: 274647: ee6edb3
1 parent e977b2c commit 118a6ff

File tree

147 files changed

+1278
-2346
lines changed

Some content is hidden

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

147 files changed

+1278
-2346
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 1678072ce8f3f28f27dee49f51f7edea824944bd
32+
refs/heads/stable: 70650f849f7b88105c13f928308dd959d45e7af5
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/COPYRIGHT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ terms.
66

77
Longer version:
88

9-
The Rust Project is copyright 2010, The Rust Project
9+
The Rust Project is copyright 2016, The Rust Project
1010
Developers.
1111

1212
Licensed under the Apache License, Version 2.0

branches/stable/LICENSE-MIT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2010 The Rust Project Developers
1+
Copyright (c) 2016 The Rust Project Developers
22

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

branches/stable/configure

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,12 +1305,6 @@ $ pacman -R cmake && pacman -S mingw-w64-x86_64-cmake
13051305
putvar CFG_DISABLE_JEMALLOC
13061306
;;
13071307

1308-
*-emscripten)
1309-
step_msg "targeting emscripten, disabling jemalloc"
1310-
CFG_DISABLE_JEMALLOC=1
1311-
putvar CFG_DISABLE_JEMALLOC
1312-
;;
1313-
13141308
*)
13151309
;;
13161310
esac

branches/stable/man/rustdoc.1

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ rustdoc \- generate documentation from Rust source code
88
.SH DESCRIPTION
99
This tool generates API reference documentation by extracting comments from
1010
source code written in the Rust language, available at
11-
<\fBhttps://www.rust-lang.org\fR>. It accepts several input formats and
12-
provides several output formats for the generated documentation.
11+
.UR https://www.rust\-lang.org
12+
.UE .
13+
It accepts several input formats and provides several output formats
14+
for the generated documentation.
1315

1416
.SH OPTIONS
1517

@@ -129,7 +131,9 @@ The generated HTML can be viewed with any standard web browser.
129131
.BR rustc (1)
130132

131133
.SH "BUGS"
132-
See <\fBhttps://github.com/rust\-lang/rust/issues\fR>
134+
See
135+
.UR https://github.com/rust\-lang/rust/issues
136+
.UE
133137
for issues.
134138

135139
.SH "AUTHOR"

branches/stable/mk/cfg/asmjs-unknown-emscripten.mk

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

branches/stable/mk/cfg/i686-unknown-linux-musl.mk

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

branches/stable/mk/main.mk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,6 @@ export CFG_DISABLE_UNSTABLE_FEATURES
361361
export RUSTC_BOOTSTRAP_KEY:=$(CFG_BOOTSTRAP_KEY)
362362
endif
363363
export CFG_BOOTSTRAP_KEY
364-
ifdef CFG_MUSL_ROOT
365-
export CFG_MUSL_ROOT
366-
endif
367364

368365
######################################################################
369366
# Per-stage targets and runner

branches/stable/mk/rt.mk

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ COMPRT_AR_$(1) := $$(AR_$(1))
245245
# We chomp -Werror here because GCC warns about the type signature of
246246
# builtins not matching its own and the build fails. It's a bit hacky,
247247
# but what can we do, we're building libclang-rt using GCC ......
248-
COMPRT_CFLAGS_$(1) := $$(filter-out -Werror -Werror=*,$$(CFG_GCCISH_CFLAGS_$(1))) -std=c99
248+
COMPRT_CFLAGS_$(1) := $$(subst -Werror,,$$(CFG_GCCISH_CFLAGS_$(1))) -std=c99
249249

250250
# FreeBSD Clang's packaging is problematic; it doesn't copy unwind.h to
251251
# the standard include directory. This should really be in our changes to
@@ -254,15 +254,6 @@ ifeq ($$(findstring freebsd,$(1)),freebsd)
254254
COMPRT_CFLAGS_$(1) += -I/usr/include/c++/v1
255255
endif
256256

257-
ifeq ($$(findstring emscripten,$(1)),emscripten)
258-
259-
# FIXME: emscripten doesn't use compiler-rt and can't build it without
260-
# further hacks
261-
$$(COMPRT_LIB_$(1)):
262-
touch $$@
263-
264-
else
265-
266257
$$(COMPRT_LIB_$(1)): $$(COMPRT_DEPS) $$(MKFILE_DEPS)
267258
@$$(call E, make: compiler-rt)
268259
$$(Q)$$(MAKE) -C "$(S)src/compiler-rt" \
@@ -275,10 +266,7 @@ $$(COMPRT_LIB_$(1)): $$(COMPRT_DEPS) $$(MKFILE_DEPS)
275266
TargetTriple=$(1) \
276267
triple-builtins
277268
$$(Q)cp $$(COMPRT_BUILD_DIR_$(1))/triple/builtins/libcompiler_rt.a $$@
278-
279-
endif # if emscripten
280269
endif
281-
282270
################################################################################
283271
# libbacktrace
284272
#
@@ -313,12 +301,6 @@ $$(BACKTRACE_LIB_$(1)):
313301
touch $$@
314302
else
315303

316-
ifeq ($$(findstring emscripten,$(1)),emscripten)
317-
# FIXME: libbacktrace doesn't understand the emscripten triple
318-
$$(BACKTRACE_LIB_$(1)):
319-
touch $$@
320-
else
321-
322304
ifdef CFG_ENABLE_FAST_MAKE
323305
BACKTRACE_DEPS := $(S)/.gitmodules
324306
else
@@ -366,7 +348,6 @@ $$(BACKTRACE_LIB_$(1)): $$(BACKTRACE_BUILD_DIR_$(1))/Makefile $$(MKFILE_DEPS)
366348
INCDIR=$(S)src/libbacktrace
367349
$$(Q)cp $$(BACKTRACE_BUILD_DIR_$(1))/.libs/libbacktrace.a $$@
368350

369-
endif # endif for emscripten
370351
endif # endif for msvc
371352
endif # endif for ios
372353
endif # endif for darwin

branches/stable/src/compiletest/runtest.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,12 +1357,7 @@ fn make_lib_name(config: &Config, auxfile: &Path, testfile: &Path) -> PathBuf {
13571357

13581358
fn make_exe_name(config: &Config, testfile: &Path) -> PathBuf {
13591359
let mut f = output_base_name(config, testfile);
1360-
// FIXME: This is using the host architecture exe suffix, not target!
1361-
if config.target == "asmjs-unknown-emscripten" {
1362-
let mut fname = f.file_name().unwrap().to_os_string();
1363-
fname.push(".js");
1364-
f.set_file_name(&fname);
1365-
} else if !env::consts::EXE_SUFFIX.is_empty() {
1360+
if !env::consts::EXE_SUFFIX.is_empty() {
13661361
let mut fname = f.file_name().unwrap().to_os_string();
13671362
fname.push(env::consts::EXE_SUFFIX);
13681363
f.set_file_name(&fname);
@@ -1375,12 +1370,6 @@ fn make_run_args(config: &Config, props: &TestProps, testfile: &Path)
13751370
// If we've got another tool to run under (valgrind),
13761371
// then split apart its command
13771372
let mut args = split_maybe_args(&config.runtool);
1378-
1379-
// If this is emscripten, then run tests under nodejs
1380-
if config.target == "asmjs-unknown-emscripten" {
1381-
args.push("nodejs".to_owned());
1382-
}
1383-
13841373
let exe_file = make_exe_name(config, testfile);
13851374

13861375
// FIXME (#9639): This needs to handle non-utf8 paths

branches/stable/src/compiletest/util.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const OS_TABLE: &'static [(&'static str, &'static str)] = &[
2626
("win32", "windows"),
2727
("windows", "windows"),
2828
("solaris", "solaris"),
29-
("emscripten", "emscripten"),
3029
];
3130

3231
const ARCH_TABLE: &'static [(&'static str, &'static str)] = &[
@@ -45,7 +44,6 @@ const ARCH_TABLE: &'static [(&'static str, &'static str)] = &[
4544
("sparc", "sparc"),
4645
("x86_64", "x86_64"),
4746
("xcore", "xcore"),
48-
("asmjs", "asmjs"),
4947
];
5048

5149
pub fn get_os(triple: &str) -> &'static str {

branches/stable/src/doc/book/lang-items.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,11 @@ unsafe fn allocate(size: usize, _align: usize) -> *mut u8 {
3939

4040
p
4141
}
42-
4342
#[lang = "exchange_free"]
4443
unsafe fn deallocate(ptr: *mut u8, _size: usize, _align: usize) {
4544
libc::free(ptr as *mut libc::c_void)
4645
}
4746

48-
#[lang = "box_free"]
49-
unsafe fn box_free<T>(ptr: *mut T) {
50-
deallocate(ptr as *mut u8, ::core::mem::size_of::<T>(), ::core::mem::align_of::<T>());
51-
}
52-
5347
#[start]
5448
fn main(argc: isize, argv: *const *const u8) -> isize {
5549
let x = box 1;

branches/stable/src/doc/grammar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ struct_expr : expr_path '{' ident ':' expr
516516
### Block expressions
517517

518518
```antlr
519-
block_expr : '{' [ stmt | item ] *
519+
block_expr : '{' [ stmt ';' | item ] *
520520
[ expr ] '}' ;
521521
```
522522

branches/stable/src/doc/reference.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -984,8 +984,8 @@ fn first((value, _): (i32, i32)) -> i32 { value }
984984
#### Generic functions
985985

986986
A _generic function_ allows one or more _parameterized types_ to appear in its
987-
signature. Each type parameter must be explicitly declared in an
988-
angle-bracket-enclosed and comma-separated list, following the function name.
987+
signature. Each type parameter must be explicitly declared, in an
988+
angle-bracket-enclosed, comma-separated list following the function name.
989989

990990
```rust,ignore
991991
// foo is generic over A and B
@@ -1179,7 +1179,7 @@ Enumeration constructors can have either named or unnamed fields:
11791179
```rust
11801180
enum Animal {
11811181
Dog (String, f64),
1182-
Cat { name: String, weight: f64 },
1182+
Cat { name: String, weight: f64 }
11831183
}
11841184

11851185
let mut a: Animal = Animal::Dog("Cocoa".to_string(), 37.2);
@@ -1237,12 +1237,12 @@ const STRING: &'static str = "bitstring";
12371237
12381238
struct BitsNStrings<'a> {
12391239
mybits: [u32; 2],
1240-
mystring: &'a str,
1240+
mystring: &'a str
12411241
}
12421242
12431243
const BITS_N_STRINGS: BitsNStrings<'static> = BitsNStrings {
12441244
mybits: BITS,
1245-
mystring: STRING,
1245+
mystring: STRING
12461246
};
12471247
```
12481248

@@ -1661,7 +1661,7 @@ struct Foo;
16611661
16621662
// Declare a public struct with a private field
16631663
pub struct Bar {
1664-
field: i32,
1664+
field: i32
16651665
}
16661666
16671667
// Declare a public enum with two public variants
@@ -3212,7 +3212,7 @@ may refer to the variables bound within the pattern they follow.
32123212
let message = match maybe_digit {
32133213
Some(x) if x < 10 => process_digit(x),
32143214
Some(x) => process_other(x),
3215-
None => panic!(),
3215+
None => panic!()
32163216
};
32173217
```
32183218

@@ -3504,7 +3504,7 @@ An example of a `fn` type:
35043504

35053505
```
35063506
fn add(x: i32, y: i32) -> i32 {
3507-
x + y
3507+
return x + y;
35083508
}
35093509
35103510
let mut x = add(5,7);

branches/stable/src/etc/test-float-parse/_common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use std::mem::transmute;
1616
#[allow(dead_code)]
1717
pub const SEED: [u32; 3] = [0x243f_6a88, 0x85a3_08d3, 0x1319_8a2e];
1818

19-
pub fn validate(text: &str) {
19+
pub fn validate(text: String) {
2020
let mut out = io::stdout();
2121
let x: f64 = text.parse().unwrap();
2222
let f64_bytes: u64 = unsafe { transmute(x) };

branches/stable/src/etc/test-float-parse/few-ones.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn main() {
2020
for a in &pow {
2121
for b in &pow {
2222
for c in &pow {
23-
validate(&(a | b | c).to_string());
23+
validate((a | b | c).to_string());
2424
}
2525
}
2626
}

branches/stable/src/etc/test-float-parse/huge-pow10.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use _common::validate;
1515
fn main() {
1616
for e in 300..310 {
1717
for i in 0..100000 {
18-
validate(&format!("{}e{}", i, e));
18+
validate(format!("{}e{}", i, e));
1919
}
2020
}
2121
}

branches/stable/src/etc/test-float-parse/long-fractions.rs

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

branches/stable/src/etc/test-float-parse/many-digits.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ fn main() {
2323
let mut rnd = IsaacRng::from_seed(&SEED);
2424
let mut range = Range::new(0, 10);
2525
for _ in 0..5_000_000u64 {
26-
let num_digits = rnd.gen_range(100, 400);
26+
let num_digits = rnd.gen_range(100, 300);
2727
let digits = gen_digits(num_digits, &mut range, &mut rnd);
28-
validate(&digits);
28+
validate(digits);
2929
}
3030
}
3131

branches/stable/src/etc/test-float-parse/rand-f64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn main() {
2525
let bits = rnd.next_u64();
2626
let x: f64 = unsafe { transmute(bits) };
2727
if x.is_finite() {
28-
validate(&format!("{:e}", x));
28+
validate(format!("{:e}", x));
2929
i += 1;
3030
}
3131
}

0 commit comments

Comments
 (0)