-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 28 pull requests #40091
Rollup of 28 pull requests #40091
Commits on Feb 9, 2017
-
Configuration menu - View commit details
-
Copy full SHA for cbafac5 - Browse repository at this point
Copy the full SHA cbafac5View commit details
Commits on Feb 16, 2017
-
[rustbuild] add a way to run command after failure
This is a simple way to workaround the debugging issues caused by the rustc wrapper used in the bootstrap process. Namely, it uses some obscure environment variables and you can’t just copy the failed command and run it in the shell or debugger to examine the failure more closely. With `--on-fail` its possible to run an arbitrary command within exactly the same environment under which rustc failed. Theres’s multiple ways to use this new flag: $ python x.py build --stage=1 --on-fail=env would print a list of environment variables and the failed command, so a few copy-pastes and you now can run the same rust in your shell outside the bootstrap system. $ python x.py build --stage=1 --on-fail=bash Is a more useful variation of the command above in that it launches a whole shell with environment already in place! All that’s left to do is copy-paste the command just above the shell prompt! Fixes rust-lang#38686 Fixes rust-lang#38221
Configuration menu - View commit details
-
Copy full SHA for 0e45a5e - Browse repository at this point
Copy the full SHA 0e45a5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 047a215 - Browse repository at this point
Copy the full SHA 047a215View commit details
Commits on Feb 17, 2017
-
* Update bootstrap to recognize the cputype 'sparcv9' (used on Solaris) * Change to never use -fomit-frame-pointer on Solaris or for sparc * Adds rust target sparcv9-sun-solaris Fixes rust-lang#39901
Configuration menu - View commit details
-
Copy full SHA for 2e756e2 - Browse repository at this point
Copy the full SHA 2e756e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 038a166 - Browse repository at this point
Copy the full SHA 038a166View commit details -
Follow rename of mx_handle_wait Magenta syscalls
The mx_handle_wait_* syscalls in Magenta were renamed to mx_object_wait. The syscall is used in the Magenta/Fuchsia implementation of std::process, to wait on child processes. In addition, this patch enables the use of the system provided libbacktrace library on Fuchsia targets. Symbolization is not yet working, but at least it allows printing hex addresses in a backtrace and makes building succeed when the backtrace feature is not disabled.
Configuration menu - View commit details
-
Copy full SHA for 6091330 - Browse repository at this point
Copy the full SHA 6091330View commit details
Commits on Feb 18, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 5205e2f - Browse repository at this point
Copy the full SHA 5205e2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d65622 - Browse repository at this point
Copy the full SHA 4d65622View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56e519d - Browse repository at this point
Copy the full SHA 56e519dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a611bbc - Browse repository at this point
Copy the full SHA a611bbcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9322a38 - Browse repository at this point
Copy the full SHA 9322a38View commit details
Commits on Feb 20, 2017
-
Configuration menu - View commit details
-
Copy full SHA for e606a43 - Browse repository at this point
Copy the full SHA e606a43View commit details -
bootstrap: stop trashing (DY)LD_LIBRARY_PATH
This generated an ugly error with fakeroot before.
Configuration menu - View commit details
-
Copy full SHA for df28569 - Browse repository at this point
Copy the full SHA df28569View commit details -
Configuration menu - View commit details
-
Copy full SHA for a84eb95 - Browse repository at this point
Copy the full SHA a84eb95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 25b1488 - Browse repository at this point
Copy the full SHA 25b1488View commit details
Commits on Feb 21, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 0b06db5 - Browse repository at this point
Copy the full SHA 0b06db5View commit details -
Set metadata for vtable-related loads
Give LLVM much more information about vtable pointers. Without the extra information, LLVM has to be rather pessimistic about vtables, preventing a number of obvious optimisations. * Makes the vtable pointer argument noalias and readonly. * Marks loads of the vtable pointer as nonnull. * Marks load from the vtable with `!invariant.load` metadata. Fixes rust-lang#39992
Configuration menu - View commit details
-
Copy full SHA for 7af3406 - Browse repository at this point
Copy the full SHA 7af3406View commit details -
Configuration menu - View commit details
-
Copy full SHA for d80cf80 - Browse repository at this point
Copy the full SHA d80cf80View commit details -
travis: Compile a more compatible libc.a for musl
The mitigations for rust-lang#34978 involve passing `-Wa,-mrelax-relocations=no` to all C code we compile, and we just forgot to pass it when compiling musl itself. Closes rust-lang#39979
Configuration menu - View commit details
-
Copy full SHA for 305aca8 - Browse repository at this point
Copy the full SHA 305aca8View commit details -
travis: Move -mrelax-relocations to Docker config
This doesn't belong in rustbuild itself, and now that we have only rustbuild we can move this out of the build system.
Configuration menu - View commit details
-
Copy full SHA for 9a08f40 - Browse repository at this point
Copy the full SHA 9a08f40View commit details -
std: Relax UnwindSafe impl for Unique
Add the `?Sized` bound as we don't require the type to be sized. Closes rust-lang#40011
Configuration menu - View commit details
-
Copy full SHA for 347e1af - Browse repository at this point
Copy the full SHA 347e1afView commit details -
Switch Fuchsia to readdir (instead of readdir_r)
The readdir_r function is deprecated on newer Posix systems because of various problems, and not implemented at all for Fuchsia. There are already implementations using both, and this patch switches Fuchsia over to the readdir-based one. Fixes rust-lang#40021 for Fuchsia, but that issue also contains discussion of what should happen for other Posix systems.
Configuration menu - View commit details
-
Copy full SHA for 163698c - Browse repository at this point
Copy the full SHA 163698cView commit details
Commits on Feb 22, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 9ce8bb9 - Browse repository at this point
Copy the full SHA 9ce8bb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 802a826 - Browse repository at this point
Copy the full SHA 802a826View commit details -
Configuration menu - View commit details
-
Copy full SHA for f557e71 - Browse repository at this point
Copy the full SHA f557e71View commit details -
In addition to defining and handling the new option, we also add a method on librustc::Session for determining the necessity of overflow checks. This method provides a single point to sort out the three (!) different ways for turning on overflow checks: -C debug-assertions, -C overflow-checks, and -Z force-overflow-checks. Fixes rust-lang#33134.
Configuration menu - View commit details
-
Copy full SHA for ffc6ddd - Browse repository at this point
Copy the full SHA ffc6dddView commit details -
Configuration menu - View commit details
-
Copy full SHA for b576abd - Browse repository at this point
Copy the full SHA b576abdView commit details -
Update name_bytes, scoop up latest libc
Update the implementation of name_bytes to use the owned string (which is thread safe). Also bump the src/liblibc submodule now that's merged.
Configuration menu - View commit details
-
Copy full SHA for 81b9b3c - Browse repository at this point
Copy the full SHA 81b9b3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b3ee249 - Browse repository at this point
Copy the full SHA b3ee249View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7b58ff - Browse repository at this point
Copy the full SHA b7b58ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 958fbc5 - Browse repository at this point
Copy the full SHA 958fbc5View commit details
Commits on Feb 23, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 6f0447b - Browse repository at this point
Copy the full SHA 6f0447bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ecdc68 - Browse repository at this point
Copy the full SHA 4ecdc68View commit details -
Add macro suggestions for macros imported with
use
This commit searchs modules for macro suggestions. It also removes imported macro_rules from macro_names, and adds more corner case checks for which macros should be suggested in specific contexts.
Configuration menu - View commit details
-
Copy full SHA for da6dc53 - Browse repository at this point
Copy the full SHA da6dc53View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae32b6e - Browse repository at this point
Copy the full SHA ae32b6eView commit details -
trans: don't ICE when trying to create ADT trans-items
ADTs are translated in-place from rustc_trans::callee, so no trans-items are needed. This fix will be superseded by the shimmir branch, but I prefer not to backport that to beta. Fixes rust-lang#39823.
Configuration menu - View commit details
-
Copy full SHA for 4e2c993 - Browse repository at this point
Copy the full SHA 4e2c993View commit details -
Configuration menu - View commit details
-
Copy full SHA for 69c5359 - Browse repository at this point
Copy the full SHA 69c5359View commit details -
use a more conservative inhabitableness rule
This is a [breaking-change] from 1.15, because this used to compile: ```Rust enum Void {} fn foo(x: &Void) { match x {} } ```
Configuration menu - View commit details
-
Copy full SHA for 87e544b - Browse repository at this point
Copy the full SHA 87e544bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b9b322 - Browse repository at this point
Copy the full SHA 1b9b322View commit details -
3
Configuration menu - View commit details
-
Copy full SHA for f753a6e - Browse repository at this point
Copy the full SHA f753a6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 21c3898 - Browse repository at this point
Copy the full SHA 21c3898View commit details -
* use more convenient mk_substs function * remove type annotations * use map_bound one level farther outside * style improvements
Configuration menu - View commit details
-
Copy full SHA for 77f131d - Browse repository at this point
Copy the full SHA 77f131dView commit details
Commits on Feb 25, 2017
-
Add Gankro's table to nomicon/src/phantom-data.md
Original: rust-lang#30069 (comment) Testing confirms that: - PhantomData<fn() -> T> does not actually enable drop checking. - PhantomData<fn(T) -> T> is neither variant nor contravariant.
Configuration menu - View commit details
-
Copy full SHA for 1f75085 - Browse repository at this point
Copy the full SHA 1f75085View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07a8026 - Browse repository at this point
Copy the full SHA 07a8026View commit details -
Rollup merge of rust-lang#39859 - GuillaumeGomez:rustdoc-test-relativ…
…e-path, r=alexcrichton Set rustdoc --test files' path relative to the current directory r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for 46fed6e - Browse repository at this point
Copy the full SHA 46fed6eView commit details -
Rollup merge of rust-lang#39864 - cramertj:normalize-breaks, r=nikoma…
…tsakis Normalize labeled and unlabeled breaks Part of rust-lang#39849.
Configuration menu - View commit details
-
Copy full SHA for ad9079b - Browse repository at this point
Copy the full SHA ad9079bView commit details -
Rollup merge of rust-lang#39888 - nagisa:on-fail-bootstrap, r=alexcri…
…chton [rustbuild] add a way to run command after failure This is a simple way to workaround the debugging issues caused by the rustc wrapper used in the bootstrap process. Namely, it uses some obscure environment variables and you can't just copy the failed command and run it in the shell or debugger to examine the failure more closely. With `--on-fail` its possible to run an arbitrary command within exactly the same environment under which rustc failed. Theres's multiple ways to use this new flag: $ python x.py build --stage=1 --on-fail=env would print a list of environment variables and the failed command, so a few copy-pastes and you now can run the same rust in your shell outside the bootstrap system. $ python x.py build --stage=1 --on-fail=bash Is a more useful variation of the command above in that it launches a whole shell with environment already in place! All that's left to do is copy-paste the command just above the shell prompt! Fixes rust-lang#38686 Fixes rust-lang#38221
Configuration menu - View commit details
-
Copy full SHA for e31d464 - Browse repository at this point
Copy the full SHA e31d464View commit details -
Rollup merge of rust-lang#39903 - binarycrusader:issue-39901, r=alexc…
…richton add solaris sparcv9 support Fixes rust-lang#39901
Configuration menu - View commit details
-
Copy full SHA for a692417 - Browse repository at this point
Copy the full SHA a692417View commit details -
Rollup merge of rust-lang#39905 - estebank:useless-error, r=arielb1
Properly display note/expected details Given a file ```rust fn takes_cb(f: fn(i8)) {} fn main() { fn callback(x: i32) {} takes_cb(callback) } ``` output ```rust error[E0308]: mismatched types --> file2.rs:5:22 | 5 | takes_cb(callback) | ^^^^^^^^ expected i8, found i32 | = note: expected type `fn(i8)` found type `fn(i32) {main::callback}` ``` Fix rust-lang#39343.
Configuration menu - View commit details
-
Copy full SHA for aa7eb65 - Browse repository at this point
Copy the full SHA aa7eb65View commit details -
Rollup merge of rust-lang#39914 - raphlinus:mx_handle_wait, r=alexcri…
…chton Follow rename of mx_handle_wait Magenta syscalls The mx_handle_wait_* syscalls in Magenta were renamed to mx_object_wait. The syscall is used in the Magenta/Fuchsia implementation of std::process, to wait on child processes. In addition, this patch enables the use of the system provided libbacktrace library on Fuchsia targets. Symbolization is not yet working, but at least it allows printing hex addresses in a backtrace and makes building succeed when the backtrace feature is not disabled.
Configuration menu - View commit details
-
Copy full SHA for a8ab222 - Browse repository at this point
Copy the full SHA a8ab222View commit details -
Rollup merge of rust-lang#39945 - petrochenkov:llvmtarg, r=alexcrichton
Use ARM instead of SystemZ for testing uninstalled targets This needs some explanation. `config.toml` has section `targets` listing backends that are built during LLVM build: ``` targets = "X86;ARM;AArch64;Mips;PowerPC;SystemZ;JSBackend;MSP430;Sparc;NVPTX" ``` It would be reasonable to expect that `targets = "X86"` would be enough for doing a local build in typical case (building on x86 and not working on some non-x86 platform-specific functionality). However, for `x.py test` to pass successfully you have to add ARM and SystemZ to the target list as well (`targets = "X86;ARM;SystemZ"`), because two tests (`compile-fail/issue-37131.rs` and `run-make\target-without-atomics`) require these architectures to be enabled in LLVM. This patch moves `compile-fail/issue-37131.rs` from SystemZ to ARM, so `targets = "X86;ARM"` becomes sufficient for running the full test suite without errors.
Configuration menu - View commit details
-
Copy full SHA for 1620286 - Browse repository at this point
Copy the full SHA 1620286View commit details -
Rollup merge of rust-lang#39950 - ishitatsuyuki:stop-trashing-ldpath,…
… r=alexcrichton bootstrap: stop trashing (DY)LD_LIBRARY_PATH This generated an ugly error with fakeroot before.
Configuration menu - View commit details
-
Copy full SHA for be66a60 - Browse repository at this point
Copy the full SHA be66a60View commit details -
Rollup merge of rust-lang#39953 - keeperofdakeys:macro-error, r=jseyf…
…ried Provide suggestions for unknown macros imported with `use` cc rust-lang#30197 r? @jseyfried
Configuration menu - View commit details
-
Copy full SHA for a6a5c32 - Browse repository at this point
Copy the full SHA a6a5c32View commit details -
Rollup merge of rust-lang#39961 - redox-os:redox, r=alexcrichton
Fix compilation on Redox This updates the Redox sys module to fix compilation. The functions peek and peek_from are added to TcpStream and UdpSocket as stubs. The sys::backtrace module is now included correctly
Configuration menu - View commit details
-
Copy full SHA for ef043a7 - Browse repository at this point
Copy the full SHA ef043a7View commit details -
Rollup merge of rust-lang#39980 - arielb1:privately-uninhabited, r=ni…
…komatsakis check_match: don't treat privately uninhabited types as uninhabited Fixes rust-lang#38972, which is a regression in 1.16 from @canndrew's patchset. r? @nikomatsakis beta-nominating because regression.
Configuration menu - View commit details
-
Copy full SHA for 33c1912 - Browse repository at this point
Copy the full SHA 33c1912View commit details -
Rollup merge of rust-lang#39988 - arthurprs:hm-adapt2, r=alexcrichton
Simplify/fix adaptive hashmap Please see rust-lang#38368 (comment) for context. The shift length math is broken. It turns out that checking for the shift length is complicated. Using simulations it's possible to see that a value of 2000 will only get probabilities down to ~1e-7 when the hashmap load factor is 90% (rust goes up to 90.9% as of today). That's probably not good enough to go into the stdlib with pluggable hashers. So this PR simplify the adaptive behavior to only consider displacement, which is much safer and very useful by itself. There's two comments because one of them is already being tested to be merged by bors.
Configuration menu - View commit details
-
Copy full SHA for d78a7fc - Browse repository at this point
Copy the full SHA d78a7fcView commit details -
Rollup merge of rust-lang#39993 - japaric:incr-san, r=alexcrichton
incr-comp: track the -Z sanitizer flag closes rust-lang#39611 r? @michaelwoerister
Configuration menu - View commit details
-
Copy full SHA for 0a950bd - Browse repository at this point
Copy the full SHA 0a950bdView commit details -
Rollup merge of rust-lang#39995 - Aatch:vtable-ptr-metadata, r=arielb1
Set metadata for vtable-related loads Give LLVM much more information about vtable pointers. Without the extra information, LLVM has to be rather pessimistic about vtables, preventing a number of obvious optimisations. * Makes the vtable pointer argument noalias and readonly. * Marks loads of the vtable pointer as nonnull. * Marks load from the vtable with `!invariant.load` metadata. Fixes rust-lang#39992
Configuration menu - View commit details
-
Copy full SHA for 5c0b4b3 - Browse repository at this point
Copy the full SHA 5c0b4b3View commit details -
Rollup merge of rust-lang#40019 - alexcrichton:fix-musl, r=brson
travis: Compile a more compatible libc.a for musl The mitigations for rust-lang#34978 involve passing `-Wa,-mrelax-relocations=no` to all C code we compile, and we just forgot to pass it when compiling musl itself. Closes rust-lang#39979
Configuration menu - View commit details
-
Copy full SHA for 411d8e9 - Browse repository at this point
Copy the full SHA 411d8e9View commit details -
Rollup merge of rust-lang#40020 - alexcrichton:fix-unwind-safe, r=sfa…
…ckler std: Relax UnwindSafe impl for Unique Add the `?Sized` bound as we don't require the type to be sized. Closes rust-lang#40011
Configuration menu - View commit details
-
Copy full SHA for 3ece892 - Browse repository at this point
Copy the full SHA 3ece892View commit details -
Rollup merge of rust-lang#40022 - wagenet:lib-defaults, r=alexcrichton
Better handling of lib defaults r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for ebde617 - Browse repository at this point
Copy the full SHA ebde617View commit details -
Rollup merge of rust-lang#40024 - raphlinus:readdir, r=alexcrichton
Switch Fuchsia to readdir (instead of readdir_r) The readdir_r function is deprecated on newer Posix systems because of various problems, and not implemented at all for Fuchsia. There are already implementations using both, and this patch switches Fuchsia over to the readdir-based one. Fixes rust-lang#40021 for Fuchsia, but that issue also contains discussion of what should happen for other Posix systems.
Configuration menu - View commit details
-
Copy full SHA for 32af4ce - Browse repository at this point
Copy the full SHA 32af4ceView commit details -
Rollup merge of rust-lang#40025 - est31:master, r=eddyb
Implement non-capturing closure to fn coercion Implements non capturing closure coercion ([RFC 1558](https://github.com/rust-lang/rfcs/blob/master/text/1558-closure-to-fn-coercion.md)). cc tracking issue rust-lang#39817
Configuration menu - View commit details
-
Copy full SHA for c3075f3 - Browse repository at this point
Copy the full SHA c3075f3View commit details -
Rollup merge of rust-lang#40026 - nrc:analysis-manifest, r=alexcrichton
Add save-analysis data to nightly manifests. For use by RLS. r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for f135040 - Browse repository at this point
Copy the full SHA f135040View commit details -
Rollup merge of rust-lang#40027 - cramertj:stabilize_static_recursion…
…, r=nrc Stabilize static_recursion Fix rust-lang#29719.
Configuration menu - View commit details
-
Copy full SHA for 69e5967 - Browse repository at this point
Copy the full SHA 69e5967View commit details -
Rollup merge of rust-lang#40031 - cynicaldevil:master, r=est31
Added test for inclusive_range_syntax in compile-fail test suite Fixes rust-lang#39059 r? @est31 Forgot to leave a comment on the issue, hopefully nobody else is working on this one!
Configuration menu - View commit details
-
Copy full SHA for 6ffc9e4 - Browse repository at this point
Copy the full SHA 6ffc9e4View commit details -
Rollup merge of rust-lang#40035 - er-1:master, r=alexcrichton
Ignore ASM tests on powerpc Part of rust-lang#39015
Configuration menu - View commit details
-
Copy full SHA for 4f9d6d6 - Browse repository at this point
Copy the full SHA 4f9d6d6View commit details -
Rollup merge of rust-lang#40037 - froydnj:overflow-checks, r=alexcric…
…hton add `-C overflow-checks` option In addition to defining and handling the new option, we also add a method on librustc::Session for determining the necessity of overflow checks. This method provides a single point to sort out the three (!) different ways for turning on overflow checks: -C debug-assertions, -C overflow-checks, and -Z force-overflow-checks. I was seeing a [run-pass/issue-28950.rs](https://github.com/rust-lang/rust/blob/b1363a73ede57ae595f3a1be2bb75d308ba4f7f6/src/test/run-pass/issue-28950.rs) failure on my machine with these patches, but I was also seeing the failure without the changes to the core compiler. We'll see what travis says. Fixes rust-lang#33134. r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for 582d5d9 - Browse repository at this point
Copy the full SHA 582d5d9View commit details -
Rollup merge of rust-lang#40038 - nikomatsakis:issue-39828, r=michael…
…woerister detect "bootstrap outputs" when serializing the dep-graph Fixes rust-lang#39828. r? @michaelwoerister
Configuration menu - View commit details
-
Copy full SHA for 393d80d - Browse repository at this point
Copy the full SHA 393d80dView commit details -
Rollup merge of rust-lang#40064 - arielb1:virtual-enum, r=nikomatsakis
trans: don't ICE when trying to create ADT trans-items ADTs are translated in-place from rustc_trans::callee, so no trans-items are needed. This fix will be superseded by the shimmir branch, but I prefer not to backport that to beta. Fixes rust-lang#39823. Beta-nominating because regression. r? @michaelwoerister
Configuration menu - View commit details
-
Copy full SHA for ecae5bf - Browse repository at this point
Copy the full SHA ecae5bfView commit details -
Rollup merge of rust-lang#40069 - Rufflewind:master, r=steveklabnik
Add Gankro's table to nomicon/src/phantom-data.md Original: rust-lang#30069 (comment) Testing confirms that: - `PhantomData<fn() -> T>` does not actually enable drop checking. - `PhantomData<fn(T) -> T>` is neither variant nor contravariant.
Configuration menu - View commit details
-
Copy full SHA for 49c8d58 - Browse repository at this point
Copy the full SHA 49c8d58View commit details -
Rollup merge of rust-lang#40086 - danobi:move-compiler_tests, r=brson
Move COMPILER_TESTS.md out of the root directory See rust-lang#39896. r? @brson
Configuration menu - View commit details
-
Copy full SHA for 207c763 - Browse repository at this point
Copy the full SHA 207c763View commit details