-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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 11 pull requests #49675
Rollup of 11 pull requests #49675
Commits on Mar 28, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 9942012 - Browse repository at this point
Copy the full SHA 9942012View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2b9a77 - Browse repository at this point
Copy the full SHA d2b9a77View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97e0dc3 - Browse repository at this point
Copy the full SHA 97e0dc3View commit details
Commits on Mar 29, 2018
-
Take the original extra-filename passed to a crate into account when
resolving it as a dependency. Fixes rust-lang#46816
Configuration menu - View commit details
-
Copy full SHA for bd81547 - Browse repository at this point
Copy the full SHA bd81547View commit details -
Flush executables to disk after linkage
A problem caused by not doing so in Chrome has been reported here: https://randomascii.wordpress.com/2018/02/25/compiler-bug-linker-bug-windows-kernel-bug/amp/ File::sync_all() calls FlushFileBuffers() down the line, causing potentially unflushed buffers on high I/O-load systems to flush and prevent nasty non-reproducible bugs. The force-flush is only done on Windows and if the linker exited successfully Closes rust-lang#48545
Configuration menu - View commit details
-
Copy full SHA for cd09c2b - Browse repository at this point
Copy the full SHA cd09c2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3787106 - Browse repository at this point
Copy the full SHA 3787106View commit details
Commits on Mar 31, 2018
-
Open the file as write before trying to flush it
This should be enough and shouldn't require append(true) since we're not explicitly writing anything so we're not flushing it so we've no risk of overwriting it
Configuration menu - View commit details
-
Copy full SHA for e1d3c47 - Browse repository at this point
Copy the full SHA e1d3c47View commit details
Commits on Apr 1, 2018
-
add a dist-thumb builder to build rust-std for the THUMB targets
the rust-std component only contains the core and compiler-builtins (+c +mem) crates cc rust-lang#49382
Configuration menu - View commit details
-
Copy full SHA for 68b54a5 - Browse repository at this point
Copy the full SHA 68b54a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a99c02 - Browse repository at this point
Copy the full SHA 2a99c02View commit details
Commits on Apr 2, 2018
-
Add vec![ptr::null{,_mut}(); n] optimization, like vec![0; n]
vec![0; n], via implementations of SpecFromElem, has an optimization that uses with_capacity_zeroed instead of with_capacity, which will use calloc instead of malloc, and avoid an extra memset. This adds the same optimization for vec![ptr::null(); n] and vec![ptr::null_mut(); n], assuming their bit value is 0 (which is true on all currently supported platforms). This does so by adding an intermediate trait IsZero, which looks very much like nonzero::Zeroable, but that one is on the way out, and doesn't apply to pointers anyways. Adding such a trait allows to avoid repeating the logic using with_capacity_zeroed or with_capacity, or making the macro more complex to support generics.
Configuration menu - View commit details
-
Copy full SHA for cc939ac - Browse repository at this point
Copy the full SHA cc939acView commit details -
Add vec!['\0'; n] optimization, like vec![0; n]
Similarly to vec![ptr::null{,_mut}(); n] in previous change, this adds the optimization for vec!['\0'; n].
Configuration menu - View commit details
-
Copy full SHA for 0df837f - Browse repository at this point
Copy the full SHA 0df837fView commit details -
std: Minimize size of panicking on wasm
This commit applies a few code size optimizations for the wasm target to the standard library, namely around panics. We notably know that in most configurations it's impossible for us to print anything in wasm32-unknown-unknown so we can skip larger portions of panicking that are otherwise simply informative. This allows us to get quite a nice size reduction. Finally we can also tweak where the allocation happens for the `Box<Any>` that we panic with. By only allocating once unwinding starts we can reduce the size of a panicking wasm module from 44k to 350 bytes.
Configuration menu - View commit details
-
Copy full SHA for f886518 - Browse repository at this point
Copy the full SHA f886518View commit details -
Configuration menu - View commit details
-
Copy full SHA for 138472b - Browse repository at this point
Copy the full SHA 138472bView commit details
Commits on Apr 3, 2018
-
Configuration menu - View commit details
-
Copy full SHA for d069354 - Browse repository at this point
Copy the full SHA d069354View commit details -
Configuration menu - View commit details
-
Copy full SHA for 862c839 - Browse repository at this point
Copy the full SHA 862c839View commit details -
Refactor inner function into closure.
So we can cut some params by using stuff from the environment.
Configuration menu - View commit details
-
Copy full SHA for 21641d6 - Browse repository at this point
Copy the full SHA 21641d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba5a5cf - Browse repository at this point
Copy the full SHA ba5a5cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a3eb5c - Browse repository at this point
Copy the full SHA 0a3eb5cView commit details
Commits on Apr 4, 2018
-
the goal is to build, in a single Cargo invocation, several no-std crates that we want to put in the rust-std component of no-std targets. The nostd crate builds these crates: - core - compiler-builtin (with the "c" and "mem" features enabled) - alloc - std_unicode
Configuration menu - View commit details
-
Copy full SHA for 14768f9 - Browse repository at this point
Copy the full SHA 14768f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for bca569f - Browse repository at this point
Copy the full SHA bca569fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b1015f5 - Browse repository at this point
Copy the full SHA b1015f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b1df3e - Browse repository at this point
Copy the full SHA 1b1df3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cde9ad - Browse repository at this point
Copy the full SHA 8cde9adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e622b1 - Browse repository at this point
Copy the full SHA 2e622b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f4c139 - Browse repository at this point
Copy the full SHA 1f4c139View commit details -
Configuration menu - View commit details
-
Copy full SHA for 179c9f1 - Browse repository at this point
Copy the full SHA 179c9f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2dcafc4 - Browse repository at this point
Copy the full SHA 2dcafc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c8eb34 - Browse repository at this point
Copy the full SHA 2c8eb34View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2bb74f6 - Browse repository at this point
Copy the full SHA 2bb74f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a82a76 - Browse repository at this point
Copy the full SHA 8a82a76View commit details -
Configuration menu - View commit details
-
Copy full SHA for eba1218 - Browse repository at this point
Copy the full SHA eba1218View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a2a234 - Browse repository at this point
Copy the full SHA 1a2a234View commit details
Commits on Apr 5, 2018
-
Rollup merge of rust-lang#48709 - tinaun:issue48703, r=nikomatsakis
remove erroneous error message when checking impl trait params fixes rust-lang#48703
Configuration menu - View commit details
-
Copy full SHA for 81e4ea1 - Browse repository at this point
Copy the full SHA 81e4ea1View commit details -
Rollup merge of rust-lang#48851 - petrochenkov:genparattr, r=nikomats…
…akis Stabilize attributes on generic parameters Closes rust-lang#48848
Configuration menu - View commit details
-
Copy full SHA for c887c22 - Browse repository at this point
Copy the full SHA c887c22View commit details -
Rollup merge of rust-lang#49154 - petrochenkov:spident, r=eddyb
AST: Give spans to all identifiers Change representation of `ast::Ident` from `{ name: Symbol, ctxt: SyntaxContext }` to `{ name: Symbol, span: Span }`. Syntax contexts still can be extracted from spans (`span.ctxt()`). Why this should not require more memory: - `Span` is `u32` just like `SyntaxContext`. - Despite keeping more spans in AST we don't actually *create* more spans, so the number of "outlined" spans kept in span interner shouldn't become larger. Why this may be slightly slower: - When we need to extract ctxt from an identifier instead of just field read we need to do bit field extraction possibly followed by and access by index into span interner's vector. Both operations should be fast (unless the span interner is under some synchronization) and we already do ctxt extraction from spans all the time during macro expansion, so the difference should be lost in noise. cc rust-lang#48842 (comment)
Configuration menu - View commit details
-
Copy full SHA for 0afb655 - Browse repository at this point
Copy the full SHA 0afb655View commit details -
Rollup merge of rust-lang#49253 - chmanchester:probing_fix, r=alexcri…
…chton Take the original extra-filename passed to a crate into account when resolving it as a dependency resolving it as a dependency. Fixes rust-lang#46816
Configuration menu - View commit details
-
Copy full SHA for ab7bb51 - Browse repository at this point
Copy the full SHA ab7bb51View commit details -
Rollup merge of rust-lang#49345 - davidtwco:issue-44109, r=nikomatsakis
RFC 2008: Finishing Touches Part of rust-lang#44109. r? @nikomatsakis (not sure who was best for this PR).
Configuration menu - View commit details
-
Copy full SHA for 07e06ad - Browse repository at this point
Copy the full SHA 07e06adView commit details -
Rollup merge of rust-lang#49419 - leodasvacas:small-typeck-refactorin…
…gs, r=nikomatsakis Small typeck refactorings Some code improvements I noticed while reading the code.
Configuration menu - View commit details
-
Copy full SHA for 2d9e754 - Browse repository at this point
Copy the full SHA 2d9e754View commit details -
Rollup merge of rust-lang#49432 - nabijaczleweli:master, r=michaelwoe…
…rister Flush executables to disk after linkage A problem caused by not doing so in Chrome has been reported [here](https://randomascii.wordpress.com/2018/02/25/compiler-bug-linker-bug-windows-kernel-bug/amp/). `File::sync_all()` calls `FlushFileBuffers()` down the line, causing potentially unflushed buffers on high I/O-load systems to flush and preventing nasty non-reproducible bugs. Closes rust-lang#48545
Configuration menu - View commit details
-
Copy full SHA for 59053aa - Browse repository at this point
Copy the full SHA 59053aaView commit details -
Rollup merge of rust-lang#49488 - alexcrichton:small-wasm-panic, r=sf…
…ackler std: Minimize size of panicking on wasm This commit applies a few code size optimizations for the wasm target to the standard library, namely around panics. We notably know that in most configurations it's impossible for us to print anything in wasm32-unknown-unknown so we can skip larger portions of panicking that are otherwise simply informative. This allows us to get quite a nice size reduction. Finally we can also tweak where the allocation happens for the `Box<Any>` that we panic with. By only allocating once unwinding starts we can reduce the size of a panicking wasm module from 44k to 350 bytes.
Configuration menu - View commit details
-
Copy full SHA for 7432273 - Browse repository at this point
Copy the full SHA 7432273View commit details -
Rollup merge of rust-lang#49496 - glandium:master, r=sfackler
Add more vec![... ; n] optimizations vec![0; n], via implementations of SpecFromElem, has an optimization that uses with_capacity_zeroed instead of with_capacity, which will use calloc instead of malloc, and avoid an extra memset. This PR adds the same optimization for ptr::null, ptr::null_mut, and None, when their in-memory representation is zeroes.
Configuration menu - View commit details
-
Copy full SHA for 1191bb1 - Browse repository at this point
Copy the full SHA 1191bb1View commit details -
Rollup merge of rust-lang#49563 - japaric:std-thumb, r=alexcrichton
add a dist builder to build rust-std components for the THUMB targets the rust-std component only contains the core and compiler-builtins (+c +mem) crates cc rust-lang#49382 - I'm not entirely sure if this PR alone will produce rust-std components installable by rustup or if something else needs to be changed - I could have done the THUMB builds in an existing builder / image; I wasn't sure if that was a good idea so I added a new image - I could build other crates like alloc into the rust-std component but, AFAICT, that would require calling Cargo a second time (one for alloc and one for compiler-builtins), or have alloc depend on compiler-builtins (rust-lang#49503 will perform that change) *and* have alloc resurface the "c" and "mem" Cargo features. r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for f8e3584 - Browse repository at this point
Copy the full SHA f8e3584View commit details