Skip to content

Commit ee6edb3

Browse files
committed
---
yaml --- r: 274647 b: refs/heads/stable c: 61e4f2e h: refs/heads/master i: 274645: 7db867a 274643: b124388 274639: 8dd0804
1 parent d8e732e commit ee6edb3

Some content is hidden

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

86 files changed

+539
-1277
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: 3623797ebb9674322c4cfcfb0bb7b002afe17f11
32+
refs/heads/stable: 61e4f2eb71ec51fb572cce03d262dfa1281b81ed
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

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: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ 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-
.UR https://www.rust\-lang.org
12-
.UE .
13-
It accepts several input formats and provides several output formats
14-
for the generated documentation.
11+
<\fBhttps://www.rust-lang.org\fR>. It accepts several input formats and
12+
provides several output formats for the generated documentation.
1513

1614
.SH OPTIONS
1715

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

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

139135
.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: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -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/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
}

branches/stable/src/etc/test-float-parse/runtests.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@
2121
2222
The actual tests (generating decimal strings and feeding them to dec2flt) is
2323
performed by a set of stand-along rust programs. This script compiles, runs,
24-
and supervises them. The programs report the strings they generate and the
25-
floating point numbers they converted those strings to, and this script
26-
checks that the results are correct.
24+
and supervises them. In particular, the programs report the strings they
25+
generate and the floating point numbers they converted those strings to.
2726
2827
You can run specific tests rather than all of them by giving their names
2928
(without .rs extension) as command line parameters.
@@ -65,9 +64,9 @@
6564
exit code that's not 0, the test fails.
6665
The output on stdout is treated as (f64, f32, decimal) record, encoded thusly:
6766
68-
- First, the bits of the f64 encoded as an ASCII hex string.
69-
- Second, the bits of the f32 encoded as an ASCII hex string.
70-
- Then the corresponding string input, in ASCII
67+
- The first eight bytes are a binary64 (native endianness).
68+
- The following four bytes are a binary32 (native endianness).
69+
- Then the corresponding string input follows, in ASCII (no newline).
7170
- The record is terminated with a newline.
7271
7372
Incomplete records are an error. Not-a-Number bit patterns are invalid too.

branches/stable/src/etc/test-float-parse/short-decimals.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ fn main() {
2222
if i % 10 == 0 {
2323
continue;
2424
}
25-
validate(&format!("{}e{}", i, e));
26-
validate(&format!("{}e-{}", i, e));
25+
validate(format!("{}e{}", i, e));
26+
validate(format!("{}e-{}", i, e));
2727
}
2828
}
2929
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ use _common::validate;
1616
fn main() {
1717
for bits in 0u32..(1 << 21) {
1818
let single: f32 = unsafe { transmute(bits) };
19-
validate(&format!("{:e}", single));
19+
validate(format!("{:e}", single));
2020
let double: f64 = unsafe { transmute(bits as u64) };
21-
validate(&format!("{:e}", double));
21+
validate(format!("{:e}", double));
2222
}
2323
}

branches/stable/src/etc/test-float-parse/tiny-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 301..327 {
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/u32-small.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ use _common::validate;
1414

1515
fn main() {
1616
for i in 0..(1 << 19) {
17-
validate(&i.to_string());
17+
validate(i.to_string());
1818
}
1919
}

branches/stable/src/etc/test-float-parse/u64-pow2.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ use std::u64;
1616
fn main() {
1717
for exp in 19..64 {
1818
let power: u64 = 1 << exp;
19-
validate(&power.to_string());
19+
validate(power.to_string());
2020
for offset in 1..123 {
21-
validate(&(power + offset).to_string());
22-
validate(&(power - offset).to_string());
21+
validate((power + offset).to_string());
22+
validate((power - offset).to_string());
2323
}
2424
}
2525
for offset in 0..123 {
26-
validate(&(u64::MAX - offset).to_string());
26+
validate((u64::MAX - offset).to_string());
2727
}
2828
}

0 commit comments

Comments
 (0)