-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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 13 pull requests #77039
Rollup of 13 pull requests #77039
Commits on Aug 22, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c5975e9 - Browse repository at this point
Copy the full SHA c5975e9View commit details
Commits on Sep 3, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 28db521 - Browse repository at this point
Copy the full SHA 28db521View commit details
Commits on Sep 11, 2020
-
Configuration menu - View commit details
-
Copy full SHA for ec7f9b9 - Browse repository at this point
Copy the full SHA ec7f9b9View commit details
Commits on Sep 12, 2020
-
Make some methods of
Pin
unstable constMake the following methods unstable const under the `const_pin` feature: - `new` - `new_unchecked` - `into_inner` - `into_inner_unchecked` - `get_ref` - `into_ref` Also adds tests for these methods in a const context. Tracking issue: rust-lang#76654
Configuration menu - View commit details
-
Copy full SHA for 8f27e3c - Browse repository at this point
Copy the full SHA 8f27e3cView commit details
Commits on Sep 16, 2020
-
Configuration menu - View commit details
-
Copy full SHA for eede953 - Browse repository at this point
Copy the full SHA eede953View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed6c7ef - Browse repository at this point
Copy the full SHA ed6c7efView commit details -
Configuration menu - View commit details
-
Copy full SHA for c3607bd - Browse repository at this point
Copy the full SHA c3607bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for e4edc16 - Browse repository at this point
Copy the full SHA e4edc16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81b3b66 - Browse repository at this point
Copy the full SHA 81b3b66View commit details -
`const_mut_refs` doesn't actually work in a `const` or `static`
Configuration menu - View commit details
-
Copy full SHA for 1e1257b - Browse repository at this point
Copy the full SHA 1e1257bView commit details -
Configuration menu - View commit details
-
Copy full SHA for abc7167 - Browse repository at this point
Copy the full SHA abc7167View commit details
Commits on Sep 18, 2020
-
Make some methods of
Pin<&mut T>
unstable constMake the following methods unstable const under the `const_pin` feature: - `into_ref` - `get_mut` - `get_unchecked_mut`
Configuration menu - View commit details
-
Copy full SHA for e3c6e46 - Browse repository at this point
Copy the full SHA e3c6e46View commit details
Commits on Sep 19, 2020
-
Configuration menu - View commit details
-
Copy full SHA for f7d5080 - Browse repository at this point
Copy the full SHA f7d5080View commit details -
Configuration menu - View commit details
-
Copy full SHA for a219ad6 - Browse repository at this point
Copy the full SHA a219ad6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67f319c - Browse repository at this point
Copy the full SHA 67f319cView commit details
Commits on Sep 20, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2a00dda - Browse repository at this point
Copy the full SHA 2a00ddaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6734230 - Browse repository at this point
Copy the full SHA 6734230View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65b3419 - Browse repository at this point
Copy the full SHA 65b3419View commit details -
use if let instead of single match arm expressions to compact code an…
…d reduce nesting (clippy::single_match)
Configuration menu - View commit details
-
Copy full SHA for c690c82 - Browse repository at this point
Copy the full SHA c690c82View commit details
Commits on Sep 21, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 88a29e6 - Browse repository at this point
Copy the full SHA 88a29e6View commit details -
Update library/std/src/process.rs
Co-authored-by: David Tolnay <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0acb0ed - Browse repository at this point
Copy the full SHA 0acb0edView commit details -
Don't recommend ManuallyDrop to customize drop order
See https://internals.rust-lang.org/t/need-for-controlling-drop-order-of-fields/12914/21 for the discussion. TL;DR: ManuallyDrop is unsafe and footguny, but you can just ask the compiler to do all the work for you by re-ordering declarations.
Configuration menu - View commit details
-
Copy full SHA for 60b102d - Browse repository at this point
Copy the full SHA 60b102dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4b4a2f - Browse repository at this point
Copy the full SHA b4b4a2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8fc782a - Browse repository at this point
Copy the full SHA 8fc782aView commit details -
Remove cast to usize for BytePos and CharPos
The case shouldn't be necessary and implicitly truncating BytePos is not desirable.
Configuration menu - View commit details
-
Copy full SHA for 9a1f177 - Browse repository at this point
Copy the full SHA 9a1f177View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63195ec - Browse repository at this point
Copy the full SHA 63195ecView commit details -
Don't use
zip
to compare iterators during pretty-print hackIf the right-hand iterator has exactly one more element than the left-hand iterator, then both iterators will be fully consumed, but the extra element will never be compared.
Configuration menu - View commit details
-
Copy full SHA for f5d71a9 - Browse repository at this point
Copy the full SHA f5d71a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d452744 - Browse repository at this point
Copy the full SHA d452744View commit details
Commits on Sep 22, 2020
-
Rollup merge of rust-lang#72734 - pickfire:liballoc, r=KodrAus
Reduce duplicate in liballoc reserve error handling Not sure if it affects compilation time.
Configuration menu - View commit details
-
Copy full SHA for 11f7bfa - Browse repository at this point
Copy the full SHA 11f7bfaView commit details -
Rollup merge of rust-lang#76131 - Aaron1011:fix/pretty-print-zip, r=lcnr
Don't use `zip` to compare iterators during pretty-print hack If the right-hand iterator has exactly one more element than the left-hand iterator, then both iterators will be fully consumed, but the extra element will never be compared. Split out from rust-lang#76130
Configuration menu - View commit details
-
Copy full SHA for dc42aa8 - Browse repository at this point
Copy the full SHA dc42aa8View commit details -
Rollup merge of rust-lang#76150 - matklad:droporder, r=withoutboats
Don't recommend ManuallyDrop to customize drop order See https://internals.rust-lang.org/t/need-for-controlling-drop-order-of-fields/12914/21 for the discussion. TL;DR: ManuallyDrop is unsafe and footguny, but you can just ask the compiler to do all the work for you by re-ordering declarations. Specifically, the original example from the docs is much better written as ```rust struct Peach; struct Banana; struct Melon; struct FruitBox { melon: Melon, // XXX: mind the relative drop order of the fields below peach: Peach, banana: Banana, } ```
Configuration menu - View commit details
-
Copy full SHA for 4f3697b - Browse repository at this point
Copy the full SHA 4f3697bView commit details -
Rollup merge of rust-lang#76275 - FedericoPonzi:immutable-write-impl-…
…73836, r=dtolnay Implementation of Write for some immutable ref structs Fixes rust-lang#73836
Configuration menu - View commit details
-
Copy full SHA for 65bdf79 - Browse repository at this point
Copy the full SHA 65bdf79View commit details -
Rollup merge of rust-lang#76489 - GuillaumeGomez:add-explanation-e075…
…6, r=jyn514 Add explanation for E0756 r? @pickfire
Configuration menu - View commit details
-
Copy full SHA for ef6c3a7 - Browse repository at this point
Copy the full SHA ef6c3a7View commit details -
Rollup merge of rust-lang#76581 - lcnr:bound-too-generic, r=eddyb
do not ICE on bound variables, return `TooGeneric` instead fixes rust-lang#73260, fixes rust-lang#74634, fixes rust-lang#76595 r? @nikomatsakis
Configuration menu - View commit details
-
Copy full SHA for 30f1bab - Browse repository at this point
Copy the full SHA 30f1babView commit details -
Rollup merge of rust-lang#76655 - CDirkx:const-pin, r=ecstatic-morse
Make some methods of `Pin` unstable const Make the following methods unstable const under the `const_pin` feature: - `new` - `new_unchecked` - `into_inner` - `into_inner_unchecked` - `get_ref` - `into_ref` - `get_mut` - `get_unchecked_mut` Of these, `into_inner` and `into_inner_unchecked` require the unstable `const_precise_live_drops`. Also adds tests for these methods in a const context. Tracking issue: rust-lang#76654 r? @ecstatic-morse
Configuration menu - View commit details
-
Copy full SHA for 537ede4 - Browse repository at this point
Copy the full SHA 537ede4View commit details -
Rollup merge of rust-lang#76783 - lzutao:rd_impl_kind, r=GuillaumeGomez
Only get ImplKind::Impl once With this, the code panics in one place instead of two.
Configuration menu - View commit details
-
Copy full SHA for b3433c7 - Browse repository at this point
Copy the full SHA b3433c7View commit details -
Rollup merge of rust-lang#76807 - ecstatic-morse:const-checking-stage…
…d-api, r=oli-obk Use const-checking to forbid use of unstable features in const-stable functions First step towards rust-lang#76618. Currently this code isn't ever hit because `qualify_min_const_fn` runs first and catches pretty much everything. One exception is `const_precise_live_drops`, which does not use the newly added code since it runs as part of a separate pass. Also contains some unrelated refactoring, which is split into separate commits. r? @oli-obk
Configuration menu - View commit details
-
Copy full SHA for 60b9901 - Browse repository at this point
Copy the full SHA 60b9901View commit details -
Rollup merge of rust-lang#76888 - matthiaskrgr:clippy_single_match_2,…
… r=Dylan-DPC use if let instead of single match arm expressions use if let instead of single match arm expressions to compact code and reduce nesting (clippy::single_match)
Configuration menu - View commit details
-
Copy full SHA for dcf4d1f - Browse repository at this point
Copy the full SHA dcf4d1fView commit details -
Rollup merge of rust-lang#76914 - lcnr:path-no-more, r=ecstatic-morse
extend `Ty` and `TyCtxt` lints to self types blocked on rust-lang#76891 r? @ecstatic-morse cc @Aaron1011
Configuration menu - View commit details
-
Copy full SHA for 50d4aeb - Browse repository at this point
Copy the full SHA 50d4aebView commit details -
Rollup merge of rust-lang#77022 - Juici:master, r=lcnr
Reduce boilerplate for BytePos and CharPos Reduces boilerplate code for BytePos and CharPos by using a macro to implement shared traits.
Configuration menu - View commit details
-
Copy full SHA for 359615b - Browse repository at this point
Copy the full SHA 359615bView commit details -
Rollup merge of rust-lang#77032 - lcnr:visit-all-the-item-likes, r=da…
…vidtwco lint missing docs for extern items fixes rust-lang#76991
Configuration menu - View commit details
-
Copy full SHA for 0863f9a - Browse repository at this point
Copy the full SHA 0863f9aView commit details