Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 9 pull requests #53884

Merged
merged 26 commits into from
Sep 1, 2018
Merged

Rollup of 9 pull requests #53884

merged 26 commits into from
Sep 1, 2018

Conversation

kennytm
Copy link
Member

@kennytm kennytm commented Sep 1, 2018

Successful merges:

flip1995 and others added 25 commits August 28, 2018 20:43
This script invokes the gdbgui graphical GDB front-end
with the Rust pretty printers loaded. The script does not install
gdbgui, that must be done manually.
Add some more wording to module documentation regarding how
`Arc::clone()` works, as some users have assumed cloning Arc's
to work via dereferencing to inner value as follows:

    use std::sync::Arc;

    let myarc = Arc::new(1);
    let myarcref = myarc.clone();

    assert!(1 == myarcref);

Instead of the actual mechanic of referencing the existing
Arc value:

    use std::sync::Arg;

    let myarc = Arc::new(1);
    let myarcref = myarc.clone();

    assert!(myarcref == &myarc); // not sure if assert could assert this
    in the real world
Make it clearer that `Arc::clone()` in fact creates a whole new
Arc with the internal pointer pointing to the same location as
the source Arc.
cleanup: Add main functions to some UI tests
Also link Clippy repo in the CONTRIBUTING.md file

r? @steveklabnik
Add rust-gdbgui script.

This script invokes the [gdbgui](https://gdbgui.com/) graphical GDB front-end with the Rust pretty printers loaded. The script does not install gdbgui, that must be done manually.

As an escapee from Visual Studio it is nice to have a point-and-click debugger. This script invokes `gdbgui` similarly to the way that `rust-gdb` invokes `gdb` - I copied that script as a starting point.

Because it is a wrapper around a wrapper you don't have as much flexibility in passing arguments to GDB and I could not find a way to eliminate the single quotes you have to use when you want to pass arguments to your program (`gdbgui` supposedly supports an `--args` option which I think should allow this, but I couldn't get it to work, my shell-fu is weak). Still, I find this very usable for debugging programs, and it is a lot more approachable than gdb in the terminal.
bench: libcore: fix build failure of any.rs benchmark (use "dyn Any")

fixes
````
error: trait objects without an explicit `dyn` are deprecated
  --> libcore/../libcore/benches/any.rs:18:36
   |
18 |         let mut y = &mut x as &mut Any;
   |                                    ^^^ help: use `dyn`: `dyn Any`
   |
   = note: requested on the command line with `-D bare-trait-objects`
````
…amertj

Make Arc cloning mechanics clearer in module docs

Add some more wording to module documentation regarding how
`Arc::clone()` works, as some users have assumed cloning Arc's
to work via dereferencing to inner value as follows:

    use std::sync::Arc;

    let myarc = Arc::new(1);
    let myarcref = myarc.clone();

    assert!(1 == myarcref);

Instead of the actual mechanic of referencing the existing
Arc value:

    use std::sync::Arg;

    let myarc = Arc::new(1);
    let myarcref = myarc.clone();

    assert!(myarcref == &myarc); // not sure if assert could assert this in the real world
…ype-impls, r=QuietMisdreavus

Prevent duplicated impl on foreign types

Fixes rust-lang#53689.

r? @QuietMisdreavus
Nuke the `const_to_allocation` query

Closes rust-lang#53847
r? @RalfJung
`./x.py check` works anyway, let's checkout tests from ci.
@kennytm
Copy link
Member Author

kennytm commented Sep 1, 2018

@bors r+ p=9

@bors
Copy link
Contributor

bors commented Sep 1, 2018

📌 Commit 44db762258c1c1bf8f27925f22d5da3cdde84703 has been approved by kennytm

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Sep 1, 2018
@bors
Copy link
Contributor

bors commented Sep 1, 2018

⌛ Testing commit 44db762258c1c1bf8f27925f22d5da3cdde84703 with merge 0b488d87464d80e74801066a584070e0dace7955...

@bors
Copy link
Contributor

bors commented Sep 1, 2018

💔 Test failed - status-travis

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 1, 2018
@rust-highfive
Copy link
Collaborator

The job dist-powerpc-linux of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[00:48:07] [RUSTC-TIMING] num_cpus test:false 2.885
[00:48:08]    Compiling rustc_llvm v0.0.0 (file:///checkout/src/librustc_llvm)
[00:48:08] [RUSTC-TIMING] cc test:false 10.742
[00:48:11] [RUSTC-TIMING] rustc_llvm test:false 0.227
[00:49:14] error: linking with `powerpc-unknown-linux-gnu-gcc` failed: exit code: 1
[00:49:14]   |
[00:49:14]   = note: "powerpc-unknown-linux-gnu-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m32" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/rustc_codegen_llvm-a141e10119431993.rustc_codegen_llvm.5qlqu15c-cgu.0.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/rustc_codegen_llvm-a141e10119431993.rustc_codegen_llvm.5qlqu15c-cgu.1.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/rustc_codegen_llvm-a141e10119431993.rustc_codegen_llvm.5qlqu15c-cgu.10.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/rustc_codegen_llvm-a141e10119431993.rustc_codegen_llvm.5qlqu15c-cgu.11.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/rustc_codegen_llvm-a141e10119431993.rustc_codegen_llvm.5qlqu15c-cgu.12.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/rustc_codegen_llvm-a141e10119431993.rustc_codegen_llvm.5qlqu15c-cgu.13.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/rustc_codegen_llvm-a141e10119431993.rustc_codegen_llvm.5qlqu15c-cgu.14.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/rustc_codegen_llvm-a141e10119431993.rustc_codegen_llvm.5qlqu15c-cgu.15.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/rustc_codegen_llvm-a141e10119431993.rustc_codegen_llvm.5qlqu15c-cgu.2.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/rustc_codegen_llvm-a141e10119431993.rustc_codegen_llvm.5qlqu15c-cgu.3.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/rustc_codegen_llvm-a141e10119431993.rustc_codegen_llvm.5qlqu15c-cgu.4.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/rustc_codegen_llvm-a141e10119431993.rustc_codegen_llvm.5qlqu15c-cgu.5.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/rustc_codegen_llvm-a141e10119431993.rustc_codegen_llvm.5qlqu15c-cgu.6.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/rustc_codegen_llvm-a141e10119431993.rustc_codegen_llvm.5qlqu15c-cgu.7.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/rustc_codegen_llvm-a141e10119431993.rustc_codegen_llvm.5qlqu15c-cgu.8.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/rustc_codegen_llvm-a141e10119431993.rustc_codegen_llvm.5qlqu15c-cgu.9.rcgu.o" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/librustc_codegen_llvm-a141e10119431993.so" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/rustc_codegen_llvm-a141e10119431993.4in0xn7anz43602p.rcgu.o" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/release/deps" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/build/rustc_llvm-6762d6129fd15651/out" "-L" "/checkout/obj/build/powerpc-unknown-linux-gnu/llvm/build/lib" "-L" "/x-tools/powerpc-unknown-linux-gnu/lib/gcc/powerpc-unknown-linux-gnu/4.9.3/../../../../powerpc-unknown-linux-gnu/lib" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,--whole-archive" "/tmp/rustcAaPmp3/libtempfile-df3ba837e349f303.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcAaPmp3/libremove_dir_all-64c9ee667ac6822c.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcAaPmp3/librand-93987db9043996c3.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcAaPmp3/librand_core-b6828894d0786f1a.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcAaPmp3/libcc-eeaa08a8fa8f00fb.rlib" "-Wl,--no-whole-archive" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-Wl,-Bdynamic" "-lrustc_codegen_utils-a4accf973ecef709" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lrustc_metadata_utils-452bfdf201e4c5e8" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lrustc_platform_intrinsics-f89fd78bfb5b7e45" "-Wl,-Bstatic" "-Wl,--whole-archive" "/tmp/rustcAaPmp3/librustc_llvm-49c93b52cf70d374.rlib" "-Wl,--no-whole-archive" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-Wl,-Bdynamic" "-lrustc_incremental-eeb2d71a6d27b1ce" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lrustc_allocator-d1bb8c5c9bb21974" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lrustc_mir-365e62e545de8245" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lrustc-405e17c45f830b3a" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-ltest-012bba1472fd70c4" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lterm-ead8b159cfe1b905" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lrustc_fs_util-b60d064d042c0e12" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lproc_macro-db58a869821cf10c" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lsyntax-f5805ce4a4717701" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lrustc_errors-7dde2baa52bb065c" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lsyntax_pos-e1400458a2f3471a" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lrustc_target-4354c023e10d264f" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lgraphviz-0e5cfc601dc7b909" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lfmt_macros-20e833a641b5aeb5" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-larena-b8c15675ba73f242" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lrustc_data_structures-b71b9bfa86368edf" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lrustc_cratesio_shim-76bb52816db92ac7" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lserialize-5ce152c7e7632288" "-Wl,--start-group" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/powerpc-unknown-linux-gnu/lib" "-lstd-cd28b9a1e3a5776e" "-Wl,--end-group" "-Wl,-Bstatic" "/tmp/rustcAaPmp3/libcompiler_builtins-8aad4ef4c022934e.rlib" "-Wl,-Bdynamic" "-lutil" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil" "-shared" "-Wl,-rpath,$ORIGIN/../lib"
[00:49:14]   = note: /tmp/rustcAaPmp3/librustc_llvm-49c93b52cf70d374.rlib(ResourcePriorityQueue.cpp.o): In function `llvm::ResourcePriorityQueue::ResourcePriorityQueue(llvm::SelectionDAGISel*)':
[00:49:14]           ResourcePriorityQueue.cpp:(.text._ZN4llvm21ResourcePriorityQueueC2EPNS_16SelectionDAGISelE+0x40c): relocation truncated to fit: R_PPC_PLTREL24 against symbol `operator new(unsigned int)' defined in .text._Znwj section in /tmp/rustcAaPmp3/librustc_llvm-49c93b52cf70d374.rlib(new_op.o)
[00:49:14]           ResourcePriorityQueue.cpp:(.text._ZN4llvm21ResourcePriorityQueueC2EPNS_16SelectionDAGISelE+0x4a4): relocation truncated to fit: R_PPC_PLTREL24 against symbol `operator new(unsigned int)' defined in .text._Znwj section in /tmp/rustcAaPmp3/librustc_llvm-49c93b52cf70d374.rlib(new_op.o)
[00:49:14]           ResourcePriorityQueue.cpp:(.text._ZN4llvm21ResourcePriorityQueueC2EPNS_16SelectionDAGISelE+0x570): relocation truncated to fit: R_PPC_PLTREL24 against symbol `memmove@@GLIBC_2.0' defined in .text section in /x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sysroot/lib/libc.so.6
[00:49:14]           ResourcePriorityQueue.cpp:(.text._ZN4llvm21ResourcePriorityQueueC2EPNS_16SelectionDAGISelE+0x588): relocation truncated to fit: R_PPC_PLTREL24 against symbol `memmove@@GLIBC_2.0' defined in .text section in /x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sysroot/lib/libc.so.6
[00:49:14]           /tmp/rustcAaPmp3/librustc_llvm-49c93b52cf70d374.rlib(ResourcePriorityQueue.cpp.o): In function `llvm::ResourcePriorityQueue::isResourceAvailable(llvm::SUnit*)':
[00:49:14]           ResourcePriorityQueue.cpp:(.text._ZN4llvm21ResourcePriorityQueue19isResourceAvailableEPNS_5SUnitE+0x170): relocation truncated to fit: R_PPC_PLTREL24 against symbol `llvm::DFAPacketizer::canReserveResources(llvm::MCInstrDesc const*)' defined in .text._ZN4llvm13DFAPacketizer19canReserveResourcesEPKNS_11MCInstrDescE section in /tmp/rustcAaPmp3/librustc_llvm-49c93b52cf70d374.rlib(DFAPacketizer.cpp.o)
[00:49:14]           /tmp/rustcAaPmp3/librustc_llvm-49c93b52cf70d374.rlib(ResourcePriorityQueue.cpp.o): In function `llvm::ResourcePriorityQueue::SUSchedulingCost(llvm::SUnit*)':
[00:49:14]           ResourcePriorityQueue.cpp:(.text._ZN4llvm21ResourcePriorityQueue16SUSchedulingCostEPNS_5SUnitE+0x98): relocation truncated to fit: R_PPC_PLTREL24 against symbol `llvm::ResourcePriorityQueue::isResourceAvailable(llvm::SUnit*)' defined in .text._ZN4llvm21ResourcePriorityQueue19isResourceAvailableEPNS_5SUnitE section in /tmp/rustcAaPmp3/librustc_llvm-49c93b52cf70d374.rlib(ResourcePriorityQueue.cpp.o)
[00:49:14]           ResourcePriorityQueue.cpp:(.text._ZN4llvm21ResourcePriorityQueue16SUSchedulingCostEPNS_5SUnitE+0xb0): relocation truncated to fit: R_PPC_PLTREL24 against symbol `llvm::ResourcePriorityQueue::regPressureDelta(llvm::SUnit*, bool)' defined in .text._ZN4llvm21ResourcePriorityQueue16regPressureDeltaEPNS_5SUnitEb section in /tmp/rustcAaPmp3/librustc_llvm-49c93b52cf70d374.rlib(ResourcePriorityQueue.cpp.o)
[00:49:14]           ResourcePriorityQueue.cpp:(.text._ZN4llvm21ResourcePriorityQueue16SUSchedulingCostEPNS_5SUnitE+0x160): relocation truncated to fit: R_PPC_PLTREL24 against symbol `llvm::ResourcePriorityQueue::isResourceAvailable(llvm::SUnit*)' defined in .text._ZN4llvm21ResourcePriorityQueue19isResourceAvailableEPNS_5SUnitE section in /tmp/rustcAaPmp3/librustc_llvm-49c93b52cf70d374.rlib(ResourcePriorityQueue.cpp.o)
[00:49:14]           ResourcePriorityQueue.cpp:(.text._ZN4llvm21ResourcePriorityQueue16SUSchedulingCostEPNS_5SUnitE+0x17c): relocation truncated to fit: R_PPC_PLTREL24 against symbol `llvm::ResourcePriorityQueue::regPressureDelta(llvm::SUnit*, bool)' defined in .text._ZN4llvm21ResourcePriorityQueue16regPressureDeltaEPNS_5SUnitEb section in /tmp/rustcAaPmp3/librustc_llvm-49c93b52cf70d374.rlib(ResourcePriorityQueue.cpp.o)
[00:49:14]           /tmp/rustcAaPmp3/librustc_llvm-49c93b52cf70d374.rlib(ResourcePriorityQueue.cpp.o): In function `llvm::ResourcePriorityQueue::pop()':
[00:49:14]           ResourcePriorityQueue.cpp:(.text._ZN4llvm21ResourcePriorityQueue3popEv+0x118): relocation truncated to fit: R_PPC_PLTREL24 against symbol `llvm::ResourcePriorityQueue::SUSchedulingCost(llvm::SUnit*)' defined in .text._ZN4llvm21ResourcePriorityQueue16SUSchedulingCostEPNS_5SUnitE section in /tmp/rustcAaPmp3/librustc_llvm-49c93b52cf70d374.rlib(ResourcePriorityQueue.cpp.o)
[00:49:14]           ResourcePriorityQueue.cpp:(.text._ZN4llvm21ResourcePriorityQueue3popEv+0x14c): additional relocation overflows omitted from the output
[00:49:14]           
[00:49:14] 
[00:49:14] error: aborting due to previous error
[00:49:14] 
[00:49:14] 
[00:49:14] [RUSTC-TIMING] rustc_codegen_llvm test:false 62.985
[00:49:15] error: Could not compile `rustc_codegen_llvm`.
[00:49:15] 
[00:49:15] Caused by:
[00:49:15]   process didn't exit successfully: `/checkout/obj/build/bootstrap/debug/rustc --crate-name rustc_codegen_llvm librustc_codegen_llvm/lib.rs --color always --error-format json --crate-type dylib --emit=dep-info,link -C prefer-dynamic -C opt-level=2 -C metadata=a141e10119431993 -C extra-filename=-a141e10119431993 --out-dir /checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps --target powerpc-unknown-linux-gnu -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/release/deps --extern cc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/libcc-eeaa08a8fa8f00fb.rlib --extern num_cpus=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/libnum_cpus-097b4205d3ac3b16.rlib --extern rustc_demangle=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/librustc_demangle-15ba299e981352ef.rlib --extern rustc_llvm=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/deps/librustc_llvm-49c93b52cf70d374.rlib -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-codegen/powerpc-unknown-linux-gnu/release/build/rustc_llvm-6762d6129fd15651/out -L native=/checkout/obj/build/powerpc-unknown-linux-gnu/llvm/build/lib -L native=/x-tools/powerpc-unknown-linux-gnu/lib/gcc/powerpc-unknown-linux-gnu/4.9.3/../../../../powerpc-unknown-linux-gnu/lib` (exit code: 1)
[00:49:15] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--target" "powerpc-unknown-linux-gnu" "-j" "4" "--release" "--locked" "--color" "always" "--manifest-path" "/checkout/src/librustc_codegen_llvm/Cargo.toml" "--features" "" "--message-format" "json"
[00:49:15] expected success, got: exit code: 101
[00:49:15] thread 'main' panicked at 'cargo must succeed', bootstrap/compile.rs:1155:9
[00:49:15] travis_fold:start:stage1-rustc_codegen_llvm
travis_time:start:stage1-rustc_codegen_llvm
travis_fold:end:stage1-rustc_codegen_llvm

---
travis_time:end:096f7e45:start=1535812562676516118,finish=1535812562683106271,duration=6590153
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:20a7ad46
$ ln -s . checkout && for CORE in obj/cores/core.*; do EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|'); if [ -f "$EXE" ]; then printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE"; gdb -q -c "$CORE" "$EXE" -iex 'set auto-load off' -iex 'dir src/' -iex 'set sysroot .' -ex bt -ex q; echo travis_fold":"end:crashlog; fi; done || true
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:16a51d84
travis_time:start:16a51d84
$ cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
cat: ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers: No such file or directory
travis_fold:end:after_failure.5
travis_fold:start:after_failure.6
travis_time:start:0e672e3c
$ dmesg | grep -i kill

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-tools of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[01:29:43]    --> tools/miri/src/lib.rs:554:5
[01:29:43]     |
[01:29:43] 554 | /     fn global_item_with_linkage<'a>(
[01:29:43] 555 | |         _ecx: &mut EvalContext<'a, 'mir, 'tcx, Self>,
[01:29:43] 556 | |         _instance: ty::Instance<'tcx>m|         mem.check_locks(ptr, size.bytes(), access)
[01:29:43]     | |_____^ not a member of trait `Machine`
[01:29:43] 
[01:29:43] error[E0407]: method `add_lock` is not a member of trait `Machine`
[01:29:43]    --> tools/miri/src/lib.rs:571:5
---
[01:29:43] 
[01:29:43] error[E0423]: expected value, found struct variant `StackPopCleanup::None`
[01:29:43]    --> tools/miri/src/fn_call.rs:163:38
[01:29:43]     |
[01:29:43] 163 |             None => (Place::[0m^^^^^^^^^^^ did you mean `$crate::mir::interpret::EvalErrorKind::Panic { /* fields */ }`?
[01:29:43]     = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[01:29:43] 
[01:29:43] error[E0423]: expected value, found struct variant `$crate::mir::interpret::EvalErrorKind::Panic`
[01:29:43]    --> tools/miri/src/fn_call.rs:736:50
---
[01:29:43] 
[01:29:43] warning: unused imports: `EvalErrorKind`, `EvalError`
[01:29:43]   --> tools/miri/src/validation.rs:16:58
[01:29:43]    |
[01:29:43] 16 | use rustc::mi[1m^^^^^^^^^^^^^^^^^^
[01:29:43] warning: unused import: `tls::EvalContextExt as TlsEvalContextExt`
[01:29:43]   --> tools/miri/src/lib.rs:54:5
[01:29:43]    |
[01:29:43] 54 | use tls::EvalContextExt as TlsEvalContextExt;
---
[01:29:44] Verifying status of rust-by-example...
[01:29:44] Verifying status of rls...
[01:29:44] This PR updated 'src/tools/rls', verifying if status is 'test-pass'...
[01:29:44] 
[01:29:44] ⚠️ We detected that this PR updated 'rls', but its tests failed.
[01:29:44] 
[01:29:44] If you do intend to update 'rls', please check the error messages above and
[01:29:44] commit another update.
[01:29:44] If youllvm-emscripten
219712 ./obj/build/x86_64-unknown-linux-gnu/stage0-codegen
209616 ./obj/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu
209612 ./obj/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release
---
145112 ./obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu
145108 ./obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release
142912 ./obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps
134532 ./obj/build/bootstrap/debug/incremental/bootstrap-11nz4fw202v9g
134528 ./obj/build/bootstrap/debug/incremental/bootstrap-11nz4fw202v9g/s-f4ecfhgr0r-17p59mv-29k09wkatlb53
131912 ./86_64-unknown-linux-gnu/openssl/openssl-1.0.2n/test
55548 ./obj/build/x86_64-unknown-linux-gnu/stage0/bin
51036 ./obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/bin
50132 ./src/llvm/test/CodeGen/X86
48928 ./obj/build/x86_64-unknown-linux-gnu/llvm/build/lib/Target/AArch64
---
travis_time:end:1f8710d5:start=1535813184920740575,finish=1535813184927831449,duration=7090874
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:2de0e860
$ ln -s . checkout && for CORE in obj/cores/core.*; do EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|'); if [ -f "$EXE" ]; then printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE"; gdb -q -c "$CORE" "$EXE" -iex 'set auto-load off' -iex 'dir src/' -iex 'set sysroot .' -ex bt -ex q; echo travis_fold":"end:crashlog; fi; done || true
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:07ac1a26
travis_time:start:07ac1a26
$ cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
cat: ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers: No such file or directory
travis_fold:end:after_failure.5
travis_fold:start:after_failure.6
travis_time:start:16877448
$ dmesg | grep -i kill

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

…laumeGomez

set cfg(rustdoc) when rustdoc is running on a crate

When using `#[doc(cfg)]` to document platform-specific items, it's a little cumbersome to get all the platforms' items to appear all at once. For example, the standard library adds `--cfg dox` to rustdoc's command line whenever it builds docs, and the documentation for `#![feature(doc_cfg)]` suggests using a Cargo feature to approximate the same thing. This is a little awkward, because you always need to remember to set `--features dox` whenever you build documentation.

This PR proposes making rustdoc set `#[cfg(rustdoc)]` whenever it runs on a crate, to provide an officially-sanctioned version of this that is set automatically. This way, there's a standardized way to declare that a certain version of an item is specifically when building docs.

To try to prevent the spread of this feature from happening too quickly, this PR also restricts the use of this flag to whenever `#![feature(doc_cfg)]` is active. I'm sure there are other uses for this, but right now i'm tying it to this feature. (If it makes more sense to give this its own feature, i can easily do that.)
@kennytm
Copy link
Member Author

kennytm commented Sep 1, 2018

@bors r+

Removed #53870
Added #53076

@bors
Copy link
Contributor

bors commented Sep 1, 2018

📌 Commit d0f8cf3 has been approved by kennytm

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 1, 2018
@bors
Copy link
Contributor

bors commented Sep 1, 2018

⌛ Testing commit d0f8cf3 with merge 839d99c...

bors added a commit that referenced this pull request Sep 1, 2018
Rollup of 9 pull requests

Successful merges:

 - #53076 (set cfg(rustdoc) when rustdoc is running on a crate)
 - #53622 (cleanup: Add main functions to some UI tests)
 - #53769 (Also link Clippy repo in the CONTRIBUTING.md file)
 - #53774 (Add rust-gdbgui script.)
 - #53781 (bench: libcore: fix build failure of any.rs benchmark (use "dyn Any"))
 - #53782 (Make Arc cloning mechanics clearer in module docs)
 - #53790 (Add regression test for issue #52060)
 - #53801 (Prevent duplicated impl on foreign types)
 - #53850 (Nuke the `const_to_allocation` query)
@bors
Copy link
Contributor

bors commented Sep 1, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: kennytm
Pushing 839d99c to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.