Skip to content

Instantly share code, notes, and snippets.

 Running `target/debug/crater-cli report comparison 542d56ea91f403c5d7eb9511848509e5ddb8e05e 3c5a93b421fe725741e6496b1c8cdc79f6e12411`

Regression report 542d56ea91f403c5d7eb9511848509e5ddb8e05e vs. 3c5a93b421fe725741e6496b1c8cdc79f6e12411

  • From: 542d56ea91f403c5d7eb9511848509e5ddb8e05e
  • To: 3c5a93b421fe725741e6496b1c8cdc79f6e12411

Coverage

  • 2695 crates tested: 1528 working / 1073 broken / 6 regressed / 73 fixed / 15 unknown.
 Running `target/debug/crater-cli report comparison stable-2015-08-06 nightly-2015-08-27`

Regression report stable-2015-08-06 vs. nightly-2015-08-27

  • From: stable-2015-08-06
  • To: nightly-2015-08-27

Coverage

  • 2886 crates tested: 1478 working / 1062 broken / 15 regressed / 175 fixed / 156 unknown.
# Compile time, noopt, before
brian@brian-X1:~/dev/rust2/build$ time CFG_VERSION=1 CFG_COMPILER=rustc CFG_PREFIX=/ CFG_LIBDIR_RELATIVE=/ CFG_RUSTLIBDIR=/ x86_64-unknown-linux-gnu/stage2/bin/rustc --cfg stage2 --cfg rtopt --cfg debug --target=x86_64-unknown-linux-gnu -D warnings -L "x86_64-unknown-linux-gnu/rt" -L "/opt/dev/rust2/build/x86_64-unknown-linux-gnu/llvm/Release+Asserts/lib" --out-dir x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib /home/brian/dev/rust2/src/librustc/lib.rs
real 2m12.633s
user 1m46.688s
sys 0m24.360s
real 2m43.636s
user 1m58.660s
COMPILE: triple/runtime/x86_64: /home/brian/dev/rust/src/compiler-rt/lib/builtins/udivti3.c
COMPILE: triple/runtime/x86_64: /home/brian/dev/rust/src/compiler-rt/lib/builtins/umoddi3.c
COMPILE: triple/runtime/x86_64: /home/brian/dev/rust/src/compiler-rt/lib/builtins/umodsi3.c
COMPILE: triple/runtime/x86_64: /home/brian/dev/rust/src/compiler-rt/lib/builtins/umodti3.c
ARCHIVE: triple/runtime/x86_64: /opt/dev/rust/build/x86_64-unknown-linux-gnu/rt/compiler-rt/triple/runtime/x86_64/libcompiler_rt.a
FINAL-ARCHIVE: triple/runtime: /opt/dev/rust/build/x86_64-unknown-linux-gnu/rt/compiler-rt/triple/runtime/libcompiler_rt.a
make[1]: Leaving directory `/opt/dev/rust/src/compiler-rt'
cp: x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler-rt.a
oxidize: x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmini
compile: x86_64-unknown-linux-gnu/rt/rust_builtin.o
@brson
brson / gist:9777333
Last active August 29, 2015 13:57
New Rust installers

Hi.

I have very exciting news. Rust now has binary installers for Linux and Mac, as well as nightly builds for Windows, Linux and Mac.

Official Rust installers now come in the following forms:

  • source .tar.gz - the same old source tarball
  • binary .tar.gz - Generic Unix installers, currently built for Linux and Mac
  • win .exe - 32-bit windows installers
  • mac .pkg files - Mac installers in the standard .pkg format
brian@brian-X1:~/dev/rust/build$ make
cfg: build triple x86_64-unknown-linux-gnu
cfg: host triples x86_64-unknown-linux-gnu
cfg: target triples x86_64-unknown-linux-gnu
cfg: enabling more debugging (CFG_ENABLE_DEBUG)
cfg: host for x86_64-unknown-linux-gnu is x86_64
cfg: os for x86_64-unknown-linux-gnu is unknown-linux-gnu
cfg: using gcc
cfg: no llnextgen found, omitting grammar-verification
make[1]: Entering directory `/opt/dev/rust/build/x86_64-unknown-linux-gnu/rt/libuv'
running 66 tests
test arc::tests::drop_arc_weak ... ok
test arc::tests::drop_arc ... ok
test arc::tests::manually_share_arc ... ok
test arc::tests::test_cowarc_clone_make_unique ... ok
test arc::tests::test_cowarc_clone_unique2 ... ok
test arc::tests::test_dead ... ok
test arc::tests::test_live ... ok
test arc::tests::weak_self_cyclic ... ok
test comm::test::DuplexStream1 ... ok

First run configure

../configure --target-triples=arm-linux-androideabi --android-cross-path=/dev/ndk_standalone/ --android-ndk-path=/dev/android-ndk-r9b/ --android-sdk-path=~/dev/adt-bundle-linux-x86_64-20131030/sdk/

Then build rustc (without explicitly setting --target - the build system does this itself)

make /home/brian/dev/servo/build/arm-linux-androideabi/src/compiler/rust/x86_64-unknown-linux-gnu/stage2/bin/rustc

Then build the rest of servo using the correct rustc flags

make VERBOSE=1 CFG_RUSTC_FLAGS="--target=arm-linux-androideabi -C android-cross-path=/home/brian/dev/ndk_standalone"

@brson
brson / gist:10506330
Created April 11, 2014 22:21
Upgrading a Rust AMI
1. From the AMI tab launch an instance of the image you want to upgrade
- put it int the VPC (not the default EC2 environment)
- use the 'default' security group
2. Modify the running instance
3. While it's still running, from the EC2 instance list, pick Action->Create Image
4. Name it according to the existing scheme
5. Terminate the instance
6. On the build master, in slave-list.txt, update the AMI id
7. Restart buildbot
static mut my_global_data: Option<MyData> = None;
// Do this before launching any threads
fn init() {
unsafe { my_global_data = Some(load()); }
}
// The ref this returns isn't actually safe because it could be mutated away.
// As long is MyData is deeply immutable though there shouldn't otherwise be a data race here.
fn <'a>get_data() -> &'a MyData {