-
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 10 pull requests #69909
Rollup of 10 pull requests #69909
Commits on Feb 22, 2020
-
Stabilize const for integer {to,from}_{be,le,ne}_bytes methods
All of these functions can be implemented simply and naturally as const functions, e.g. u32::from_le_bytes can be implemented as (bytes[0] as u32) | (bytes[1] as u32) << 8 | (bytes[2] as u32) << 16 | (bytes[3] as u32) << 24 So stabilizing the constness will not expose that internally they are implemented using transmute which is not const in stable.
Configuration menu - View commit details
-
Copy full SHA for d15a98b - Browse repository at this point
Copy the full SHA d15a98bView commit details
Commits on Feb 26, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 87f0dc6 - Browse repository at this point
Copy the full SHA 87f0dc6View commit details
Commits on Feb 29, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 503026b - Browse repository at this point
Copy the full SHA 503026bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fd909b - Browse repository at this point
Copy the full SHA 6fd909bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d78c4aa - Browse repository at this point
Copy the full SHA d78c4aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for df6a3a0 - Browse repository at this point
Copy the full SHA df6a3a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b133d67 - Browse repository at this point
Copy the full SHA b133d67View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e66f58 - Browse repository at this point
Copy the full SHA 6e66f58View commit details -
we cannot short-circuit just becuase the Abi seems harmless
also add tests for ScalarPair enums
Configuration menu - View commit details
-
Copy full SHA for 729f4cd - Browse repository at this point
Copy the full SHA 729f4cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for bfe593e - Browse repository at this point
Copy the full SHA bfe593eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c84e45 - Browse repository at this point
Copy the full SHA 7c84e45View commit details -
Configuration menu - View commit details
-
Copy full SHA for a09c33e - Browse repository at this point
Copy the full SHA a09c33eView commit details -
Configuration menu - View commit details
-
Copy full SHA for cbf5f7d - Browse repository at this point
Copy the full SHA cbf5f7dView commit details
Commits on Mar 2, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 011fa91 - Browse repository at this point
Copy the full SHA 011fa91View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f4af54 - Browse repository at this point
Copy the full SHA 5f4af54View commit details -
Configuration menu - View commit details
-
Copy full SHA for a674e1c - Browse repository at this point
Copy the full SHA a674e1cView commit details
Commits on Mar 8, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 6d03bbd - Browse repository at this point
Copy the full SHA 6d03bbdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 22f2385 - Browse repository at this point
Copy the full SHA 22f2385View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bbb9b8 - Browse repository at this point
Copy the full SHA 6bbb9b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b724e8 - Browse repository at this point
Copy the full SHA 4b724e8View commit details
Commits on Mar 9, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 314da73 - Browse repository at this point
Copy the full SHA 314da73View commit details
Commits on Mar 10, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 906bb8d - Browse repository at this point
Copy the full SHA 906bb8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a0c850 - Browse repository at this point
Copy the full SHA 0a0c850View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9263cbb - Browse repository at this point
Copy the full SHA 9263cbbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b3e3ff - Browse repository at this point
Copy the full SHA 7b3e3ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d16c21 - Browse repository at this point
Copy the full SHA 4d16c21View commit details -
Make Point
Copy
in arithmetic documentationSmall composite types like `Point { x: i32, y: i32}` are plain old data and we should encourage users to derive `Copy` on them. This changes the semantics of the edited examples slightly: instead of consuming the operands during addition, it will copy them. This is desired behaviour. Co-Authored-By: Jake Goulding <shepmaster@mac.com>
Configuration menu - View commit details
-
Copy full SHA for 69aaed8 - Browse repository at this point
Copy the full SHA 69aaed8View commit details -
parse: Tweak the function parameter edition check
Move anon-params tests to ui/anon-params.
Configuration menu - View commit details
-
Copy full SHA for 6b27e8d - Browse repository at this point
Copy the full SHA 6b27e8dView commit details
Commits on Mar 11, 2020
-
Rollup merge of rust-lang#66059 - RalfJung:panic-on-non-zero, r=eddyb
mem::zeroed/uninit: panic on types that do not permit zero-initialization r? @eddyb @oli-obk Cc rust-lang#62825 Also see [this summary comment](rust-lang#66059 (comment))
Configuration menu - View commit details
-
Copy full SHA for c6a6a66 - Browse repository at this point
Copy the full SHA c6a6a66View commit details -
Rollup merge of rust-lang#69373 - tspiteri:const_int_conversion, r=ol…
…i-obk Stabilize const for integer {to,from}_{be,le,ne}_bytes methods All of these functions can be implemented simply and naturally as const functions, e.g. `u32::from_le_bytes` can be implemented as ```rust (bytes[0] as u32) | (bytes[1] as u32) << 8 | (bytes[2] as u32) << 16 | (bytes[3] as u32) << 24 ``` So stabilizing the constness will not expose that internally they are implemented using transmute which is not const in stable.
Configuration menu - View commit details
-
Copy full SHA for 7ef49a3 - Browse repository at this point
Copy the full SHA 7ef49a3View commit details -
Rollup merge of rust-lang#69591 - matthewjasper:query-response-relate…
…, r=nikomatsakis Use TypeRelating for instantiating query responses `eq` can add constraints to `RegionConstraintData`, which isn't allowed during borrow checking outside of a `CustomTypeOp`. Use `TypeRelating` instead to always push constraints to the obligations list. closes rust-lang#69490
Configuration menu - View commit details
-
Copy full SHA for bf1f7c9 - Browse repository at this point
Copy the full SHA bf1f7c9View commit details -
Rollup merge of rust-lang#69645 - DutchGhost:const-forget-tests, r=Dy…
…lan-DPC const forget tests Adds tests for rust-lang#69617
Configuration menu - View commit details
-
Copy full SHA for 597d30c - Browse repository at this point
Copy the full SHA 597d30cView commit details -
Rollup merge of rust-lang#69766 - skade:make-point-copy-in-add-docume…
…ntation, r=shepmaster Make Point `Copy` in arithmetic documentation Small composite types like `Point { x: i32, y: i32}` are plain old data and we should encourage users to derive `Copy` on them. This changes the semantics of the edited examples slightly: instead of consuming the operands during addition, it will copy them. This is desired behaviour.
Configuration menu - View commit details
-
Copy full SHA for deb6efc - Browse repository at this point
Copy the full SHA deb6efcView commit details -
Rollup merge of rust-lang#69825 - lcnr:discriminant, r=oli-obk
make `mem::discriminant` const implements rust-lang#69821, which could be used as a tracking issue for `const_discriminant`. Should this be added to the meta tracking issue rust-lang#57563? @Lokathor
Configuration menu - View commit details
-
Copy full SHA for 07dd9fc - Browse repository at this point
Copy the full SHA 07dd9fcView commit details -
Rollup merge of rust-lang#69859 - contrun:fix-62456, r=matthewjasper
fix rust-lang#62456 closes rust-lang#62456
Configuration menu - View commit details
-
Copy full SHA for b024bbc - Browse repository at this point
Copy the full SHA b024bbcView commit details -
Rollup merge of rust-lang#69881 - Centril:fix-69485, r=oli-obk
VariantSizeDifferences: bail on SizeOverflow Fixes rust-lang#69485. r? @oli-obk
Configuration menu - View commit details
-
Copy full SHA for 8e011e8 - Browse repository at this point
Copy the full SHA 8e011e8View commit details -
Rollup merge of rust-lang#69891 - Centril:fix-69875, r=varkor
Exhaustiveness checking, `Matrix::push`: recursively expand or-patterns > There's an implicit invariant that there should be no or-patterns directly in the first column of the matrix, but this invariant is broken exactly when an or-pattern has a child that is itself an or-pattern. Here we preserve this broken invariant by recursively expanding `PatKind::Or`s in `Matrix::push`. Fixes rust-lang#69875. r? @varkor cc @Nadrieril cc rust-lang#54883
Configuration menu - View commit details
-
Copy full SHA for 63464c2 - Browse repository at this point
Copy the full SHA 63464c2View commit details -
Rollup merge of rust-lang#69896 - petrochenkov:reqname2, r=Centril
parse: Tweak the function parameter edition check Follow-up to rust-lang#69801. Edition of a code fragment is inferred from "the place where the code is written". For individual tokens like edition-specific keywords it may be the span of the token itself ("uninterpolated" span), but for larger code fragments it's probably not, in the test example the trait method is obviously written in "2015 edition code". r? @Centril
Configuration menu - View commit details
-
Copy full SHA for 4e34e15 - Browse repository at this point
Copy the full SHA 4e34e15View commit details