Skip to content

Commit 7db867a

Browse files
committed
---
yaml --- r: 274645 b: refs/heads/stable c: ad73330 h: refs/heads/master i: 274643: b124388
1 parent 324ac0f commit 7db867a

Some content is hidden

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

85 files changed

+538
-1268
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: 8c604dc940c35e4ac36012aa85375250f2e6e07e
32+
refs/heads/stable: ad73330391d7b608e6650cb83dc76d5eeb1919ed
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/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
}

branches/stable/src/liballoc/heap.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
issue = "27700")]
1717

1818
use core::{isize, usize};
19-
#[cfg(not(test))]
20-
use core::intrinsics::{size_of, min_align_of};
2119

2220
#[allow(improper_ctypes)]
2321
extern "C" {
@@ -149,17 +147,6 @@ unsafe fn exchange_free(ptr: *mut u8, old_size: usize, align: usize) {
149147
deallocate(ptr, old_size, align);
150148
}
151149

152-
#[cfg(not(test))]
153-
#[lang = "box_free"]
154-
#[inline]
155-
unsafe fn box_free<T>(ptr: *mut T) {
156-
let size = size_of::<T>();
157-
// We do not allocate for Box<T> when T is ZST, so deallocation is also not necessary.
158-
if size != 0 {
159-
deallocate(ptr as *mut u8, size, min_align_of::<T>());
160-
}
161-
}
162-
163150
#[cfg(test)]
164151
mod tests {
165152
extern crate test;

branches/stable/src/liballoc_system/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ extern crate libc;
3030
target_arch = "arm",
3131
target_arch = "mips",
3232
target_arch = "powerpc",
33-
target_arch = "powerpc64",
34-
target_arch = "asmjs")))]
33+
target_arch = "powerpc64")))]
3534
const MIN_ALIGN: usize = 8;
3635
#[cfg(all(any(target_arch = "x86_64",
3736
target_arch = "aarch64")))]

0 commit comments

Comments
 (0)