-
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 #76907
Rollup of 13 pull requests #76907
Commits on Aug 11, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 00d537d - Browse repository at this point
Copy the full SHA 00d537dView commit details
Commits on Aug 30, 2020
-
lint/ty: move fns to avoid abstraction violation
This commit moves `transparent_newtype_field` and `is_zst` to `LateContext` where they are used, rather than being on the `VariantDef` and `TyS` types. Signed-off-by: David Wood <david@davidtw.co>
Configuration menu - View commit details
-
Copy full SHA for 0f2bd56 - Browse repository at this point
Copy the full SHA 0f2bd56View commit details
Commits on Aug 31, 2020
-
Stabilize some Option methods as const
Stabilize the following methods of `Option` as const: - `is_some` - `is_none` - `as_ref` Possible because of stabilization of rust-lang#49146 (Allow if and match in constants).
CDirkx committedAug 31, 2020 Configuration menu - View commit details
-
Copy full SHA for db109c6 - Browse repository at this point
Copy the full SHA db109c6View commit details
Commits on Sep 3, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 04e4a39 - Browse repository at this point
Copy the full SHA 04e4a39View commit details
Commits on Sep 4, 2020
-
This is very similar to the existing `Box<[T; N]>: TryFrom<Box<[T]>>`, but allows avoiding the `shrink_to_fit` if you have a vector and not a boxed slice.
Configuration menu - View commit details
-
Copy full SHA for 6092828 - Browse repository at this point
Copy the full SHA 6092828View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cb6716 - Browse repository at this point
Copy the full SHA 6cb6716View commit details
Commits on Sep 5, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2c8a4c8 - Browse repository at this point
Copy the full SHA 2c8a4c8View commit details
Commits on Sep 6, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 685f042 - Browse repository at this point
Copy the full SHA 685f042View commit details
Commits on Sep 7, 2020
-
Thanks, Amanieu Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3d89ee9 - Browse repository at this point
Copy the full SHA 3d89ee9View commit details -
Configuration menu - View commit details
-
Copy full SHA for caeb554 - Browse repository at this point
Copy the full SHA caeb554View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b5cd54 - Browse repository at this point
Copy the full SHA 4b5cd54View commit details -
Co-authored-by: Ivan Tham <pickfire@riseup.net>
Configuration menu - View commit details
-
Copy full SHA for 47668ed - Browse repository at this point
Copy the full SHA 47668edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 284b169 - Browse repository at this point
Copy the full SHA 284b169View commit details
Commits on Sep 12, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 91f7d76 - Browse repository at this point
Copy the full SHA 91f7d76View commit details
Commits on Sep 15, 2020
-
Configuration menu - View commit details
-
Copy full SHA for f567287 - Browse repository at this point
Copy the full SHA f567287View commit details
Commits on Sep 16, 2020
-
library/panic_unwind: Add UNWIND_DATA_REG for RISC-V 32-bit
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Configuration menu - View commit details
-
Copy full SHA for de0d55c - Browse repository at this point
Copy the full SHA de0d55cView commit details -
library/std: linux: Add support for RISC-V 32-bit
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Configuration menu - View commit details
-
Copy full SHA for 84fe26c - Browse repository at this point
Copy the full SHA 84fe26cView commit details -
library/std: raw: Add support for RISC-V 32-bit
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Configuration menu - View commit details
-
Copy full SHA for cd066c9 - Browse repository at this point
Copy the full SHA cd066c9View commit details -
library/std: sys_common: Add support for RISC-V 32-bit
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Configuration menu - View commit details
-
Copy full SHA for cf07535 - Browse repository at this point
Copy the full SHA cf07535View commit details -
library/unwind: Add support for RISC-V 32-bit
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Configuration menu - View commit details
-
Copy full SHA for 0f3ccbd - Browse repository at this point
Copy the full SHA 0f3ccbdView commit details -
Configuration menu - View commit details
-
Copy full SHA for be37265 - Browse repository at this point
Copy the full SHA be37265View commit details -
tools/build-manifest: Add support for RISC-V 32-bit
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Configuration menu - View commit details
-
Copy full SHA for 3e94295 - Browse repository at this point
Copy the full SHA 3e94295View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d93048 - Browse repository at this point
Copy the full SHA 1d93048View commit details -
Configuration menu - View commit details
-
Copy full SHA for 230355f - Browse repository at this point
Copy the full SHA 230355fView commit details -
library/panic_unwind: Consolidate RV32 and RV64
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Configuration menu - View commit details
-
Copy full SHA for fd76268 - Browse repository at this point
Copy the full SHA fd76268View commit details -
library/unwind: Consolidate RV32 and RV64
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Configuration menu - View commit details
-
Copy full SHA for 57b2da8 - Browse repository at this point
Copy the full SHA 57b2da8View commit details -
don't lazily evaulate some trivial values for Option::None replacemen…
…ts (clippy::unnecessary_lazy_evaluations)
Configuration menu - View commit details
-
Copy full SHA for 0e34142 - Browse repository at this point
Copy the full SHA 0e34142View commit details
Commits on Sep 17, 2020
-
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Configuration menu - View commit details
-
Copy full SHA for 3d1b6d6 - Browse repository at this point
Copy the full SHA 3d1b6d6View commit details
Commits on Sep 19, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 3f68ae4 - Browse repository at this point
Copy the full SHA 3f68ae4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c30a16 - Browse repository at this point
Copy the full SHA 5c30a16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e2dba1 - Browse repository at this point
Copy the full SHA 1e2dba1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bfe5ef - Browse repository at this point
Copy the full SHA 1bfe5efView commit details -
Rollup merge of rust-lang#73963 - hellow554:unsafe_path, r=Mark-Simul…
…acrum deny(unsafe_op_in_unsafe_fn) in libstd/path.rs The libstd/path.rs part of rust-lang#73904 . Wraps the two calls to an unsafe fn Initializer::nop() in an unsafe block.
Configuration menu - View commit details
-
Copy full SHA for 651415a - Browse repository at this point
Copy the full SHA 651415aView commit details -
Rollup merge of rust-lang#75099 - davidtwco:is-zst-abstraction-violat…
…ion, r=eddyb lint/ty: move fns to avoid abstraction violation This PR moves `transparent_newtype_field` and `is_zst` to `LateContext` where they are used, rather than being on the `VariantDef` and `TyS` types, hopefully addressing @eddyb's concern [from this comment](rust-lang#74340 (comment)).
Configuration menu - View commit details
-
Copy full SHA for 6bae1cd - Browse repository at this point
Copy the full SHA 6bae1cdView commit details -
Rollup merge of rust-lang#75580 - JulianKnodt:or_pattern, r=wesleywiser
Add test for checking duplicated branch or-patterns This adds a regression test for checking `or-patterns` in MIR as shown in rust-lang#75439. This doesn't introduce a fix as I'm not sure where it would go(I suspect maybe here: src/librustc_mir_build/build/matches/mod.rs), and I'm not particularly able to fix it. cc: @lzutao
Configuration menu - View commit details
-
Copy full SHA for 47fc3ed - Browse repository at this point
Copy the full SHA 47fc3edView commit details -
Rollup merge of rust-lang#76135 - CDirkx:const-option, r=dtolnay
Stabilize some Option methods as const Stabilize the following methods of `Option` as const: - `is_some` - `is_none` - `as_ref` These methods are currently const under the unstable feature `const_option` (tracking issue: rust-lang#67441). I believe these methods to be eligible for stabilization because of the stabilization of rust-lang#49146 (Allow if and match in constants) and the trivial implementations, see also: [PR#75463](rust-lang#75463). Related: rust-lang#76225
Configuration menu - View commit details
-
Copy full SHA for af0594f - Browse repository at this point
Copy the full SHA af0594fView commit details -
Rollup merge of rust-lang#76310 - scottmcm:array-try_from-vec, r=dtolnay
Add `[T; N]: TryFrom<Vec<T>>` (insta-stable) This is very similar to the [existing](https://doc.rust-lang.org/nightly/std/convert/trait.TryFrom.html#impl-TryFrom%3CBox%3C%5BT%5D%3E%3E) `Box<[T; N]>: TryFrom<Box<[T]>>`, but allows avoiding the `shrink_to_fit` if you have a vector and not a boxed slice. Like the slice equivalents of this, it fails if the length of the vector is not exactly `N`. This uses `Vec<T>` as the `Error` type to return the input, like how the `Rc<[T]> -> Rc<[T; N]>` (and Arc) ones also reflect the input directly in the error type. ```rust #[stable(feature = "array_try_from_vec", since = "1.47.0")] impl<T, const N: usize> TryFrom<Vec<T>> for [T; N] { type Error = Vec<T>; fn try_from(mut vec: Vec<T>) -> Result<[T; N], Vec<T>>; } ``` Inspired by this zulip thread: https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/APIs.20for.20getting.20stuff.20from.20a.20Vec.20by.20owned/near/209048103
Configuration menu - View commit details
-
Copy full SHA for f3a476d - Browse repository at this point
Copy the full SHA f3a476dView commit details -
Rollup merge of rust-lang#76400 - pickfire:patch-5, r=dtolnay
Clean up vec benches bench_in_place style
Configuration menu - View commit details
-
Copy full SHA for 0d80a97 - Browse repository at this point
Copy the full SHA 0d80a97View commit details -
Rollup merge of rust-lang#76434 - RalfJung:black-box, r=Mark-Simulacrum
do not inline black_box when building for Miri We cannot do the assembly trick in Miri, but let's at least make sure MIR inlining does not circumvent the black_box. Also use black_box instead of local optimization barriers in a few const tests.
Configuration menu - View commit details
-
Copy full SHA for d46d8f1 - Browse repository at this point
Copy the full SHA d46d8f1View commit details -
Rollup merge of rust-lang#76492 - fusion-engineering-forks:int-bits, …
…r=dtolnay Add associated constant `BITS` to all integer types Recently I've regularly come across this snippet (in a few different crates, including `core` and `std`): ```rust std::mem::size_of<usize>() * 8 ``` I think it's time for a `usize::BITS`.
Configuration menu - View commit details
-
Copy full SHA for e00725a - Browse repository at this point
Copy the full SHA e00725aView commit details -
Rollup merge of rust-lang#76636 - RalfJung:miri-size-assert, r=oli-obk
assert ScalarMaybeUninit size I noticed most low-level Miri types have such an assert but `ScalarMaybeUninit` does not, so let's add that. Good t see that the `Option`-like optimization kicks in and this is no bigger than `Scalar`. :) r? @oli-obk
Configuration menu - View commit details
-
Copy full SHA for d8892b4 - Browse repository at this point
Copy the full SHA d8892b4View commit details -
Rollup merge of rust-lang#76749 - guswynn:hir_ranges, r=estebank
give *even better* suggestion when matching a const range notice that the err already has "constant defined here" so this is now *exceedingly clear* extension to rust-lang#76222 r? @estebank
Configuration menu - View commit details
-
Copy full SHA for 30e8ec6 - Browse repository at this point
Copy the full SHA 30e8ec6View commit details -
Rollup merge of rust-lang#76757 - matthiaskrgr:clippy_try_into, r=lcnr
don't convert types to the same type with try_into (clippy::useless_conversion)
Configuration menu - View commit details
-
Copy full SHA for 141ba48 - Browse repository at this point
Copy the full SHA 141ba48View commit details -
Rollup merge of rust-lang#76796 - jyn514:wrong-stage, r=shepmaster
Give a better error message when x.py uses the wrong stage for CI r? @shepmaster
Configuration menu - View commit details
-
Copy full SHA for 10c1ddb - Browse repository at this point
Copy the full SHA 10c1ddbView commit details -
Rollup merge of rust-lang#76798 - alistair23:alistair/rv32-linux, r=j…
…yn514 Build fixes for RISC-V 32-bit Linux support This fixes build issues with the 32-bit RISC-V port.
Configuration menu - View commit details
-
Copy full SHA for 72ff47c - Browse repository at this point
Copy the full SHA 72ff47cView commit details