-
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 34 pull requests #39632
Rollup of 34 pull requests #39632
Commits on Jan 1, 2017
-
Aaron Power committed
Jan 1, 2017 Configuration menu - View commit details
-
Copy full SHA for 108293d - Browse repository at this point
Copy the full SHA 108293dView commit details
Commits on Jan 28, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 87dcbca - Browse repository at this point
Copy the full SHA 87dcbcaView commit details
Commits on Jan 29, 2017
-
Add support for test suites emulated in QEMU
This commit adds support to the build system to execute test suites that cannot run natively but can instead run inside of a QEMU emulator. A proof-of-concept builder was added for the `arm-unknown-linux-gnueabihf` target to show off how this might work. In general the architecture is to have a server running inside of the emulator which a local client connects to. The protocol between the server/client supports compiling tests on the host and running them on the target inside the emulator. Closes rust-lang#33114
Configuration menu - View commit details
-
Copy full SHA for 1747ce2 - Browse repository at this point
Copy the full SHA 1747ce2View commit details
Commits on Jan 31, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 6d9f359 - Browse repository at this point
Copy the full SHA 6d9f359View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd603e4 - Browse repository at this point
Copy the full SHA cd603e4View commit details
Commits on Feb 2, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 897029d - Browse repository at this point
Copy the full SHA 897029dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3388855 - Browse repository at this point
Copy the full SHA 3388855View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7b65f1 - Browse repository at this point
Copy the full SHA a7b65f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4cd4e1 - Browse repository at this point
Copy the full SHA c4cd4e1View commit details
Commits on Feb 3, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 5c9fdd1 - Browse repository at this point
Copy the full SHA 5c9fdd1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ddb56b - Browse repository at this point
Copy the full SHA 4ddb56bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e866d07 - Browse repository at this point
Copy the full SHA e866d07View commit details
Commits on Feb 4, 2017
-
Pass -fPIC to native compiles on 32-bit
This is apparently a regression from 1.14.0 to 1.15.0. Previously we passed `-fPIC` to C compilers on i686 targets, but the `gcc` crate apparently [explicitly] didn't do this. I don't recall why that was avoided but it was [previously passed by the makefiles][mk] and this seems to have [caused a regression][regression] in Firefox, so this commit reverts back to passing `-fPIC`. [explicitly]: rust-lang/cc-rs@362bdf20 [mk]: https://github.com/rust-lang/rust/blob/c781fc4a/mk/cfg/i686-unknown-linux-gnu.mk#L11 [regression]: https://bugzilla.mozilla.org/show_bug.cgi?id=1336155
Configuration menu - View commit details
-
Copy full SHA for f98f6c7 - Browse repository at this point
Copy the full SHA f98f6c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8579218 - Browse repository at this point
Copy the full SHA 8579218View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89ae2ca - Browse repository at this point
Copy the full SHA 89ae2caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7aff6ad - Browse repository at this point
Copy the full SHA 7aff6adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fa28cb - Browse repository at this point
Copy the full SHA 3fa28cbView commit details
Commits on Feb 6, 2017
-
Configuration menu - View commit details
-
Copy full SHA for c68e963 - Browse repository at this point
Copy the full SHA c68e963View commit details -
Configuration menu - View commit details
-
Copy full SHA for caf9f95 - Browse repository at this point
Copy the full SHA caf9f95View commit details -
Move type of discriminant to AdtDef
Previously AdtDef variants contained ConstInt for each discriminant, which did not really reflect the actual type of the discriminants. Moving the type into AdtDef allows to easily put the type into metadata and also saves bytes from ConstVal overhead for each discriminant. Also arguably the code is cleaner now :)
Configuration menu - View commit details
-
Copy full SHA for 6849985 - Browse repository at this point
Copy the full SHA 6849985View commit details -
Configuration menu - View commit details
-
Copy full SHA for a8075a4 - Browse repository at this point
Copy the full SHA a8075a4View commit details -
This removes another special case of Switch by replacing it with the more general SwitchInt. While this is more clunky currently, there’s no reason we can’t make it nice (and efficient) to use.
Configuration menu - View commit details
-
Copy full SHA for 1355a57 - Browse repository at this point
Copy the full SHA 1355a57View commit details -
Only SwitchInt over integers, not all consts
Also use a Cow to avoid full Vec for all SwitchInts
Configuration menu - View commit details
-
Copy full SHA for 94e587e - Browse repository at this point
Copy the full SHA 94e587eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3393584 - Browse repository at this point
Copy the full SHA 3393584View commit details -
Reimplement simplify_cfg for SwitchInt
First example of optimisation that applies to many more cases than originally.
Configuration menu - View commit details
-
Copy full SHA for 76bc6c3 - Browse repository at this point
Copy the full SHA 76bc6c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd41479 - Browse repository at this point
Copy the full SHA cd41479View commit details -
Fix SwitchInt building in ElaborateDrops pass
Previously it used to build a switch in a way that didn’t preserve the invariat of SwitchInt. Now it builds it in an optimal way too, where otherwise branch becomes all the branches which did not have partial variant drops.
Configuration menu - View commit details
-
Copy full SHA for ff167a6 - Browse repository at this point
Copy the full SHA ff167a6View commit details -
Prefer switching on false for boolean switches
This ends up not really mattering because we generate a plain conditional branch in LLVM either way.
Configuration menu - View commit details
-
Copy full SHA for 4e7770e - Browse repository at this point
Copy the full SHA 4e7770eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d3f704a - Browse repository at this point
Copy the full SHA d3f704aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e465d5 - Browse repository at this point
Copy the full SHA 5e465d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1fee722 - Browse repository at this point
Copy the full SHA 1fee722View commit details -
Add TerminatorKind::if_ convenience constructor
Constructs a TerminatorKind::SwitchInt for an equivalent conditional true-false branch.
Configuration menu - View commit details
-
Copy full SHA for 832d7e0 - Browse repository at this point
Copy the full SHA 832d7e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e29e81 - Browse repository at this point
Copy the full SHA 4e29e81View commit details -
Configuration menu - View commit details
-
Copy full SHA for cdd4aad - Browse repository at this point
Copy the full SHA cdd4aadView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e8c855 - Browse repository at this point
Copy the full SHA 1e8c855View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1246779 - Browse repository at this point
Copy the full SHA 1246779View commit details -
Configuration menu - View commit details
-
Copy full SHA for 380ba6d - Browse repository at this point
Copy the full SHA 380ba6dView commit details -
Extract collections benchmarks to libcollections/benches
And libcore/benches
Configuration menu - View commit details
-
Copy full SHA for 7c8c45e - Browse repository at this point
Copy the full SHA 7c8c45eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b975786 - Browse repository at this point
Copy the full SHA b975786View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78f542b - Browse repository at this point
Copy the full SHA 78f542bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fa0a728 - Browse repository at this point
Copy the full SHA fa0a728View commit details -
fix case where some edges can't be recreated by expanding the graph
cc rust-lang#39569 -- almost certainly a fix for that
Configuration menu - View commit details
-
Copy full SHA for 4f5fc4e - Browse repository at this point
Copy the full SHA 4f5fc4eView commit details -
This commit deletes the old build system located in the `mk` folder as it's now been obsoleted for two cycles and is replaced by rustbuild.
Configuration menu - View commit details
-
Copy full SHA for 9ab8090 - Browse repository at this point
Copy the full SHA 9ab8090View commit details -
Delete swaths of the configure script
This commit deletes swaths of the configure script related to the old build system which are now no longer needed when using rustbuild.
Configuration menu - View commit details
-
Copy full SHA for 9b0e6af - Browse repository at this point
Copy the full SHA 9b0e6afView commit details -
Delete Travis/AppVeyor makefile builders
We no longer need these builders as we're no longer testing the old build system.
Configuration menu - View commit details
-
Copy full SHA for ce4abc3 - Browse repository at this point
Copy the full SHA ce4abc3View commit details -
std: Remove cfg(cargobuild) annotations
These are all now no longer needed that we've only got rustbuild in tree.
Configuration menu - View commit details
-
Copy full SHA for 77c3bfa - Browse repository at this point
Copy the full SHA 77c3bfaView commit details -
Clean our src/etc of old files
Some of these have long since expired, some are no longer in use now that we've jettisoned the makefiles, but none of them should be needed any more.
Configuration menu - View commit details
-
Copy full SHA for ffd3070 - Browse repository at this point
Copy the full SHA ffd3070View commit details -
rustbuild: Fix a few locations with makefiles gone
* Add version info to channel.rs as main.mk is no longer available * Update `Makefile.in` used with bootstrap to not try to require `mk/util.mk` * Update the `dist` target to avoid the makefile pieces
Configuration menu - View commit details
-
Copy full SHA for 9ad13c8 - Browse repository at this point
Copy the full SHA 9ad13c8View commit details -
compiletest: Add caching of test results
Don't re-run tests in compiletest if all the inputs haven't changed, manage stamp files in the output directory.
Configuration menu - View commit details
-
Copy full SHA for c8e0d04 - Browse repository at this point
Copy the full SHA c8e0d04View commit details -
rustbuild: support setting verbosity in config.toml
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Configuration menu - View commit details
-
Copy full SHA for 7c2752a - Browse repository at this point
Copy the full SHA 7c2752aView commit details -
A few documentation improvements for
syntax::print::pp
* Moved algorithm explanation to module docs * Added ``` before and after the examples * Explanation of the `rbox`, `ibox` and `cbox` names * Added docs about the breaking types to `Breaks`
Configuration menu - View commit details
-
Copy full SHA for 1ee88e5 - Browse repository at this point
Copy the full SHA 1ee88e5View commit details -
rustbuild: add verbose to config.toml.example
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Configuration menu - View commit details
-
Copy full SHA for 4268872 - Browse repository at this point
Copy the full SHA 4268872View commit details -
Clarify and reorganize. Add the section for the bookshelf. More to come here in the near future! Part of rust-lang#39588
Configuration menu - View commit details
-
Copy full SHA for acd84c2 - Browse repository at this point
Copy the full SHA acd84c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0803d4 - Browse repository at this point
Copy the full SHA b0803d4View commit details -
Fix branch name Cargo's downloaded from
This landed on beta in rust-lang#39546 and this is bringing the patch back to master.
Configuration menu - View commit details
-
Copy full SHA for 19bbd85 - Browse repository at this point
Copy the full SHA 19bbd85View commit details -
Fix a manifest-generation bug on beta
Right now all Cargo release tarballs are 'nightly', they're not on the standard channels yet.
Configuration menu - View commit details
-
Copy full SHA for bf126d2 - Browse repository at this point
Copy the full SHA bf126d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for d92abb3 - Browse repository at this point
Copy the full SHA d92abb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 235741f - Browse repository at this point
Copy the full SHA 235741fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 550373b - Browse repository at this point
Copy the full SHA 550373bView commit details
Commits on Feb 7, 2017
-
Configuration menu - View commit details
-
Copy full SHA for ddb0a78 - Browse repository at this point
Copy the full SHA ddb0a78View commit details -
Configuration menu - View commit details
-
Copy full SHA for df73bc9 - Browse repository at this point
Copy the full SHA df73bc9View commit details -
make Child::try_wait return io::Result<Option<ExitStatus>>
This is much nicer for callers who want to short-circuit real I/O errors with `?`, because they can write this if let Some(status) = foo.try_wait()? { ... } else { ... } instead of this match foo.try_wait() { Ok(status) => { ... } Err(err) if err.kind() == io::ErrorKind::WouldBlock => { ... } Err(err) => return Err(err), } The original design of `try_wait` was patterned after the `Read` and `Write` traits, which support both blocking and non-blocking implementations in a single API. But since `try_wait` is never blocking, it makes sense to optimize for the non-blocking case. Tracking issue: rust-lang#38903
Configuration menu - View commit details
-
Copy full SHA for 2a345bb - Browse repository at this point
Copy the full SHA 2a345bbView commit details -
Change deprecation warning to indicate custom derive support was remo…
…ved from the current compiler version
Configuration menu - View commit details
-
Copy full SHA for b74e668 - Browse repository at this point
Copy the full SHA b74e668View commit details -
* Move to a separate float mod * Add more tests for f64 f32 lower exp upper exp * Use assert_eq for a clearer error message
Configuration menu - View commit details
-
Copy full SHA for 2ba0b65 - Browse repository at this point
Copy the full SHA 2ba0b65View commit details -
Configuration menu - View commit details
-
Copy full SHA for e5396e0 - Browse repository at this point
Copy the full SHA e5396e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for ffea076 - Browse repository at this point
Copy the full SHA ffea076View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78dd2ec - Browse repository at this point
Copy the full SHA 78dd2ecView commit details -
Add Emscripten-specific linker
It claims to accept most GNU linker options, but in fact most of them have no effect and instead it requires some special options which are easier to handle in a separate trait. Currently added: - `export_symbols`: works on executables as special Emscripten case since staticlibs/dylibs aren't compiled to JS, while exports are required to be accessible from JS. Fixes rust-lang#39171. - `optimize` - translates Rust's optimization level to Emscripten optimization level (whether passed via `-C opt-level=...` or `-O...`). Fixes rust-lang#36899. - `debuginfo` - translates debug info; Emscripten has 5 debug levels while Rust has 3, so chose to translate `-C debuginfo=1` to `-g3` (preserves whitespace, variable and function names for easy debugging). Fixes rust-lang#36901. - `no_default_libraries` - tells Emscripten to exlude `memcpy` and co.
Configuration menu - View commit details
-
Copy full SHA for 87b8c9e - Browse repository at this point
Copy the full SHA 87b8c9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d037808 - Browse repository at this point
Copy the full SHA d037808View commit details -
rustbuild: Clean build/dist on
make clean
Prevents stale artifacts from sticking around by accident!
Configuration menu - View commit details
-
Copy full SHA for 37887fc - Browse repository at this point
Copy the full SHA 37887fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7916e00 - Browse repository at this point
Copy the full SHA 7916e00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 620074d - Browse repository at this point
Copy the full SHA 620074dView commit details
Commits on Feb 8, 2017
-
Rollup merge of rust-lang#38764 - Aaronepower:master, r=aturon
Added Default impl to PathBuf
Configuration menu - View commit details
-
Copy full SHA for cc452f6 - Browse repository at this point
Copy the full SHA cc452f6View commit details -
Rollup merge of rust-lang#39361 - cengizIO:master, r=arielb1
Improve error message for uninferrable types rust-lang#38812 Hello, I tried to improve the error message for uninferrable types. The error code is `E0282`. ```rust error[E0282]: type annotations needed --> /home/cengizIO/issue38812.rs:2:11 | 2 | let x = vec![]; | - ^^^^^^ cannot infer type for `T` | | | consider giving `x` a type | = note: this error originates in a macro outside of the current crate ``` and ```rust error[E0282]: type annotations needed --> /home/cengizIO/issue38812.rs:2:15 | 2 | let (x,) = (vec![],); | ---- ^^^^^^ cannot infer type for `T` | | | consider giving a type to pattern | = note: this error originates in a macro outside of the current crate ``` Rust compiler now tries to find uninferred `local`s with type `_` and adds them into the error message. I'm probably wrong on wording that I used. Please feel free to suggest better alternatives. Thanks @nikomatsakis for mentoring 🍺 Any comments/feedback is more than welcome! Thank you
Configuration menu - View commit details
-
Copy full SHA for f144122 - Browse repository at this point
Copy the full SHA f144122View commit details -
Rollup merge of rust-lang#39372 - seanmonstar:more-addr-froms, r=alex…
…crichton A few ergonomic From impls for SocketAddr/IpAddr My main motivation is removing things like this: `"127.0.0.1:3000".parse().unwrap()`. Instead, this now works: `SocketAddr::from(([127, 0, 0, 1], 3000))` or even `([127, 0, 0, 1], 3000).into())` when passing to a function.
Configuration menu - View commit details
-
Copy full SHA for 3769fc8 - Browse repository at this point
Copy the full SHA 3769fc8View commit details -
Rollup merge of rust-lang#39374 - durka:patch-34, r=steveklabnik
reference: clarify #[cfg] section Closes rust-lang#39370, but maybe we (or clippy) should add a warning too.
Configuration menu - View commit details
-
Copy full SHA for 73bb2d1 - Browse repository at this point
Copy the full SHA 73bb2d1View commit details -
Rollup merge of rust-lang#39400 - alexcrichton:arm-cross-test, r=brson
Add support for test suites emulated in QEMU This commit adds support to the build system to execute test suites that cannot run natively but can instead run inside of a QEMU emulator. A proof-of-concept builder was added for the `arm-unknown-linux-gnueabihf` target to show off how this might work. In general the architecture is to have a server running inside of the emulator which a local client connects to. The protocol between the server/client supports compiling tests on the host and running them on the target inside the emulator. Closes rust-lang#33114
Configuration menu - View commit details
-
Copy full SHA for a6d3620 - Browse repository at this point
Copy the full SHA a6d3620View commit details -
Rollup merge of rust-lang#39426 - jakllsch:netbsd-c, r=alexcrichton
Add i686-unknown-netbsdelf target
Configuration menu - View commit details
-
Copy full SHA for 12a21c5 - Browse repository at this point
Copy the full SHA 12a21c5View commit details -
Rollup merge of rust-lang#39431 - alexcrichton:no-more-makefiles, r=b…
…rson Delete the makefile build system This PR deletes the makefile build system in favor of the rustbuild build system. The beta has now been branched so 1.16 will continue to be buildable from the makefiles, but going forward 1.17 will only be buildable with rustbuild. Rustbuild has been the default build system [since 1.15.0](rust-lang#37817) and the makefiles were [proposed for deletion](https://internals.rust-lang.org/t/proposal-for-promoting-rustbuild-to-official-status/4368) at this time back in November of last year. And now with the deletion of these makefiles we can start getting those sweet sweet improvements of using crates.io crates in the compiler!
Configuration menu - View commit details
-
Copy full SHA for caf3bc5 - Browse repository at this point
Copy the full SHA caf3bc5View commit details -
Rollup merge of rust-lang#39438 - clarcharr:box_from, r=alexcrichton
Conversions between slices and boxes This allows conversion for `Copy` slices, `str`, and `CStr` into their boxed counterparts. This also adds the method `CString::into_boxed_c_str`. I would like to add similar implementations for `OsStr` as well, but I have not figured out how.
Configuration menu - View commit details
-
Copy full SHA for 916e368 - Browse repository at this point
Copy the full SHA 916e368View commit details -
Rollup merge of rust-lang#39456 - nagisa:mir-switchint-everywhere, r=…
…nikomatsakis [MIR] SwitchInt Everywhere Something I’ve been meaning to do for a very long while. This PR essentially gets rid of 3 kinds of conditional branching and only keeps the most general one – `SwitchInt`. Primary benefits are such that dealing with MIR now does not involve dealing with 3 different ways to do conditional control flow. On the other hand, constructing a `SwitchInt` currently requires more code than what previously was necessary to build an equivalent `If` terminator. Something trivially “fixable” with some constructor methods somewhere (MIR needs stuff like that badly in general). Some timings (tl;dr: slightly faster¹ (unexpected), but also uses slightly more memory at peak (expected)): ¹: Not sure if the speed benefits are because of LLVM liking the generated code better or the compiler itself getting compiled better. Either way, its a net benefit. The CORE and SYNTAX timings done for compilation without optimisation. ``` AFTER: Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu) Finished release [optimized] target(s) in 31.50 secs Finished release [optimized] target(s) in 31.42 secs Building stage1 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu) Finished release [optimized] target(s) in 439.56 secs Finished release [optimized] target(s) in 435.15 secs CORE: 99% (24.81 real, 0.13 kernel, 24.57 user); 358536k resident CORE: 99% (24.56 real, 0.15 kernel, 24.36 user); 359168k resident SYNTAX: 99% (49.98 real, 0.48 kernel, 49.42 user); 653416k resident SYNTAX: 99% (50.07 real, 0.58 kernel, 49.43 user); 653604k resident BEFORE: Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu) Finished release [optimized] target(s) in 31.84 secs Building stage1 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu) Finished release [optimized] target(s) in 451.17 secs CORE: 99% (24.66 real, 0.20 kernel, 24.38 user); 351096k resident CORE: 99% (24.36 real, 0.17 kernel, 24.18 user); 352284k resident SYNTAX: 99% (52.24 real, 0.56 kernel, 51.66 user); 645544k resident SYNTAX: 99% (51.55 real, 0.48 kernel, 50.99 user); 646428k resident ``` cc @nikomatsakis @eddyb
Configuration menu - View commit details
-
Copy full SHA for e49ec1c - Browse repository at this point
Copy the full SHA e49ec1cView commit details -
Rollup merge of rust-lang#39459 - phungleson:fix-short-hand-struct-do…
…c, r=steveklabnik Fix short hand struct doc Don't want to discredit @HnGiang effort on this issue. I just want to lend a hand to fix this issue rust-lang#38830, it is a very nice feature and is seemingly completed. Fixes rust-lang#39096 r? @steveklabnik
Configuration menu - View commit details
-
Copy full SHA for 071f6de - Browse repository at this point
Copy the full SHA 071f6deView commit details -
Rollup merge of rust-lang#39462 - emilio:improper-ctypes, r=nikomatsakis
lint/ctypes: Don't warn on sized structs with PhantomData. Fixes rust-lang#34798
Configuration menu - View commit details
-
Copy full SHA for 67e8473 - Browse repository at this point
Copy the full SHA 67e8473View commit details -
Rollup merge of rust-lang#39482 - king6cong:master, r=frewsxcv
doc comment rewording
Configuration menu - View commit details
-
Copy full SHA for 493917e - Browse repository at this point
Copy the full SHA 493917eView commit details -
Rollup merge of rust-lang#39490 - RReverser:em-linker, r=alexcrichton
Add Emscripten-specific linker Emscripten claims to accept most GNU linker options, but in fact most of `-Wl,...` are useless for it and instead it requires some additional special options which are easier to handle in a separate trait. Currently added: - `export_symbols`: works on executables as special Emscripten case since staticlibs/dylibs aren't compiled to JS, while exports are required to be accessible from JS. Fixes rust-lang#39171. - `optimize` - translates Rust's optimization level to Emscripten optimization level (whether passed via `-C opt-level=...` or `-O...`). Fixes rust-lang#36899. - `debuginfo` - translates debug info; Emscripten has 5 debug levels while Rust has 3, so chose to translate `-C debuginfo=1` to `-g3` (preserves whitespace, variable and function names for easy debugging). Fixes rust-lang#36901. - `no_default_libraries` - tells Emscripten to exclude `memcpy` and co. TODO (in future PR): dynamic linking via `SIDE_MODULE` / `MAIN_MODULE` mechanism.
Configuration menu - View commit details
-
Copy full SHA for 48c220b - Browse repository at this point
Copy the full SHA 48c220bView commit details -
Rollup merge of rust-lang#39512 - oconnor663:try_wait, r=alexcrichton
make Child::try_wait return io::Result<Option<ExitStatus>> This is much nicer for callers who want to short-circuit real I/O errors with `?`, because they can write this if let Some(status) = foo.try_wait()? { ... } else { ... } instead of this match foo.try_wait() { Ok(status) => { ... } Err(err) if err.kind() == io::ErrorKind::WouldBlock => { ... } Err(err) => return Err(err), } The original design of `try_wait` was patterned after the `Read` and `Write` traits, which support both blocking and non-blocking implementations in a single API. But since `try_wait` is never blocking, it makes sense to optimize for the non-blocking case. Tracking issue: rust-lang#38903
Configuration menu - View commit details
-
Copy full SHA for 8a2f328 - Browse repository at this point
Copy the full SHA 8a2f328View commit details -
Rollup merge of rust-lang#39523 - alexcrichton:fpic, r=aturon
Pass -fPIC to native compiles on 32-bit This is apparently a regression from 1.14.0 to 1.15.0. Previously we passed `-fPIC` to C compilers on i686 targets, but the `gcc` crate apparently [explicitly] didn't do this. I don't recall why that was avoided but it was [previously passed by the makefiles][mk] and this seems to have [caused a regression][regression] in Firefox, so this commit reverts back to passing `-fPIC`. [explicitly]: rust-lang/cc-rs@362bdf20 [mk]: https://github.com/rust-lang/rust/blob/c781fc4a/mk/cfg/i686-unknown-linux-gnu.mk#L11 [regression]: https://bugzilla.mozilla.org/show_bug.cgi?id=1336155
Configuration menu - View commit details
-
Copy full SHA for 6cd834a - Browse repository at this point
Copy the full SHA 6cd834aView commit details -
Rollup merge of rust-lang#39545 - JordiPolo:fix/1_15_released, r=jsey…
…fried Change deprecation warning to indicate custom derive support was removed I'm very new to Rust and the message was confusing to me (using nightly and not really sure if I was > 1.15 or not).
Configuration menu - View commit details
-
Copy full SHA for 94e6011 - Browse repository at this point
Copy the full SHA 94e6011View commit details -
Rollup merge of rust-lang#39557 - bjorn3:pp-docs, r=jseyfried
A few documentation improvements for `syntax::print::pp` * Moved algorithm explanation to module docs * Added ``` before and after the examples * Explanation of the `rbox`, `ibox` and `cbox` names * Added docs about the breaking types to `Breaks`
Configuration menu - View commit details
-
Copy full SHA for 4215d3e - Browse repository at this point
Copy the full SHA 4215d3eView commit details -
Rollup merge of rust-lang#39561 - phungleson:libcollectionsbench, r=a…
…lexcrichton Extract collections benchmarks to libcollections/bench Good suggestion from @stjepang rust-lang#39484 (comment) r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for 8098c98 - Browse repository at this point
Copy the full SHA 8098c98View commit details -
Rollup merge of rust-lang#39582 - nikomatsakis:incr-comp-issue-39569,…
… r=michaelwoerister Handle the case where an intermediate node can't be recreated This solution grows the graph, but this is quite the corner case. r? @michaelwoerister
Configuration menu - View commit details
-
Copy full SHA for 3189ee3 - Browse repository at this point
Copy the full SHA 3189ee3View commit details -
Rollup merge of rust-lang#39583 - michaelwoerister:limit-llvm-threads…
…, r=nikomatsakis back: Limit the number of LLVM worker threads. This should fix issue rust-lang#39568. Also see rust-lang#39280. r? @nikomatsakis
Configuration menu - View commit details
-
Copy full SHA for 17679c7 - Browse repository at this point
Copy the full SHA 17679c7View commit details -
Rollup merge of rust-lang#39587 - Keruspe:master, r=alexcrichton
rustbuild: support setting verbosity in config.toml Most if not all the configuration is settable trhough config.toml but the verbosity isn't yet. This avoids having to pass -v to x.py on each command if you want verbosity to be always on.
Configuration menu - View commit details
-
Copy full SHA for cff9175 - Browse repository at this point
Copy the full SHA cff9175View commit details -
Rollup merge of rust-lang#39593 - steveklabnik:bookshelf-landing-page…
…, r=frewsxcv Re-write the doc index page Clarify and reorganize. Add the section for the bookshelf. More to come here in the near future! Part of rust-lang#39588
Configuration menu - View commit details
-
Copy full SHA for 8997a51 - Browse repository at this point
Copy the full SHA 8997a51View commit details -
Rollup merge of rust-lang#39597 - GuillaumeGomez:correct_rustdoc_test…
…_file, r=alexcrichton Display correct filename with --test option Fixes rust-lang#39592. With the current files: ```rust pub mod foo; /// This is a Foo; /// /// ``` /// println!("baaaaaar"); /// ``` pub struct Foo; /// This is a Bar; /// /// ``` /// println!("fooooo"); /// ``` pub struct Bar; ``` ```rust // note the whitespaces /// ``` /// println!("foo"); /// ``` pub fn foo() {} ``` It displays: ``` ./build/x86_64-apple-darwin/stage1/bin/rustdoc --test test.rs running 3 tests test test.rs - line 13 ... ok test test.rs - line 5 ... ok test foo.rs - line 2 ... ok test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured ``` ``` ` `` println!("lol"); ` `` asdjnfasd asd ``` It displays: ``` ./build/x86_64-apple-darwin/stage1/bin/rustdoc --test foo.md running 1 test test <input> - line 3 ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured ``` r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for 472494a - Browse repository at this point
Copy the full SHA 472494aView commit details -
Rollup merge of rust-lang#39598 - alexcrichton:cargo-branch, r=brson
Fix branch name Cargo's downloaded from This landed on beta in rust-lang#39546 and this is bringing the patch back to master.
Configuration menu - View commit details
-
Copy full SHA for 0dd60ae - Browse repository at this point
Copy the full SHA 0dd60aeView commit details -
Rollup merge of rust-lang#39599 - alexcrichton:cargo-tarball-name, r=…
…brson Fix a manifest-generation bug on beta Right now all Cargo release tarballs are 'nightly', they're not on the standard channels yet.
Configuration menu - View commit details
-
Copy full SHA for 5e08fa7 - Browse repository at this point
Copy the full SHA 5e08fa7View commit details -
Rollup merge of rust-lang#39601 - dumbbell:update-liblibc-to-include-…
…aarch64-unknown-freebsd, r=alexcrichton liblibc: Update to include `aarch64-unknown-freebsd` support
Configuration menu - View commit details
-
Copy full SHA for 4d2aa65 - Browse repository at this point
Copy the full SHA 4d2aa65View commit details -
Rollup merge of rust-lang#39602 - estebank:fix-39544, r=eddyb
Fix ICE when accessing mutably an immutable enum Fix rust-lang#39544.
Configuration menu - View commit details
-
Copy full SHA for 650b88d - Browse repository at this point
Copy the full SHA 650b88dView commit details -
Rollup merge of rust-lang#39604 - est31:i128_tests, r=alexcrichton
Unignore u128 test for stage 0,1 Even more SNAP cleanup. Follow-up of rust-lang#39519. Sorry, I didn't check twice.
Configuration menu - View commit details
-
Copy full SHA for ba808c3 - Browse repository at this point
Copy the full SHA ba808c3View commit details -
Rollup merge of rust-lang#39615 - phungleson:corefloat, r=alexcrichton
Improve format float * Move float into mod float like in test * Add more tests for f64 f32, lower exp, upper exp, which can come if handy in the future if we want refactor further * Use `assert_eq` for clearer error messages
Configuration menu - View commit details
-
Copy full SHA for 530aee8 - Browse repository at this point
Copy the full SHA 530aee8View commit details -
Rollup merge of rust-lang#39619 - michaelwoerister:rename-crate-metad…
…ata, r=alexcrichton Choose different name for metadata obj-file to avoid clashes with user-chosen names. Fixes rust-lang#39585 and probably rust-lang#39508. Incremental compilation assigns different names to obj-files than regular compilation. If a crate is called "metadata" this can lead to a clash between the root module's obj-file and the obj-file containing crate-metadata. This PR assigns a name to the metadata obj-file that cannot clash with other obj-file because it contains a `.` which is not allowed in a Rust module identifier. r? @alexcrichton cc @nikomatsakis
Configuration menu - View commit details
-
Copy full SHA for 9a9fe17 - Browse repository at this point
Copy the full SHA 9a9fe17View commit details -
Rollup merge of rust-lang#39620 - Gheoan:patch-1, r=steveklabnik
add missing comma
Configuration menu - View commit details
-
Copy full SHA for f6480ff - Browse repository at this point
Copy the full SHA f6480ffView commit details -
Rollup merge of rust-lang#39621 - GuillaumeGomez:current_dir_docs, r=…
…steveklabnik Add missing urls for current_dir r? @steveklabnik
Configuration menu - View commit details
-
Copy full SHA for 8499f52 - Browse repository at this point
Copy the full SHA 8499f52View commit details -
Rollup merge of rust-lang#39622 - alexcrichton:clean-dist, r=brson
rustbuild: Clean build/dist on `make clean` Prevents stale artifacts from sticking around by accident!
Configuration menu - View commit details
-
Copy full SHA for 51b436b - Browse repository at this point
Copy the full SHA 51b436bView commit details -
Rollup merge of rust-lang#39624 - brson:relnotes-master, r=alexcrichton
Bump stable release date cc rust-lang#39623
Configuration menu - View commit details
-
Copy full SHA for 48cab72 - Browse repository at this point
Copy the full SHA 48cab72View commit details