-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 2 pull requests #57513
Closed
Closed
Rollup of 2 pull requests #57513
Commits on Dec 31, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 7e7c337 - Browse repository at this point
Copy the full SHA 7e7c337View commit details -
Configuration menu - View commit details
-
Copy full SHA for e258489 - Browse repository at this point
Copy the full SHA e258489View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb0597a - Browse repository at this point
Copy the full SHA eb0597aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d85ec4a - Browse repository at this point
Copy the full SHA d85ec4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 35d77fc - Browse repository at this point
Copy the full SHA 35d77fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for e4c47f9 - Browse repository at this point
Copy the full SHA e4c47f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for fedfb61 - Browse repository at this point
Copy the full SHA fedfb61View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50152d2 - Browse repository at this point
Copy the full SHA 50152d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2760f87 - Browse repository at this point
Copy the full SHA 2760f87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14be8a7 - Browse repository at this point
Copy the full SHA 14be8a7View commit details
Commits on Jan 9, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 4b4fc63 - Browse repository at this point
Copy the full SHA 4b4fc63View commit details -
Configuration menu - View commit details
-
Copy full SHA for a49acea - Browse repository at this point
Copy the full SHA a49aceaView commit details -
Configuration menu - View commit details
-
Copy full SHA for aef6288 - Browse repository at this point
Copy the full SHA aef6288View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80262e6 - Browse repository at this point
Copy the full SHA 80262e6View commit details
Commits on Jan 11, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 16a4e47 - Browse repository at this point
Copy the full SHA 16a4e47View commit details -
Rollup merge of rust-lang#57175 - oli-obk:const_let_stabilization, r=…
…nikomatsakis Stabilize `let` bindings and destructuring in constants and const fn r? @Centril This PR stabilizes the following features in constants and `const` functions: * irrefutable destructuring patterns (e.g. `const fn foo((x, y): (u8, u8)) { ... }`) * `let` bindings (e.g. `let x = 1;`) * mutable `let` bindings (e.g. `let mut x = 1;`) * assignment (e.g. `x = y`) and assignment operator (e.g. `x += y`) expressions, even where the assignment target is a projection (e.g. a struct field or index operation like `x[3] = 42`) * expression statements (e.g. `3;`) This PR does explicitly *not* stabilize: * mutable references (i.e. `&mut T`) * dereferencing mutable references * refutable patterns (e.g. `Some(x)`) * operations on `UnsafeCell` types (as that would need raw pointers and mutable references and such, not because it is explicitly forbidden. We can't explicitly forbid it as such values are OK as long as they aren't mutated.) * We are not stabilizing `let` bindings in constants that use `&&` and `||` short circuiting operations. These are treated as `&` and `|` inside `const` and `static` items right now. If we stopped treating them as `&` and `|` after stabilizing `let` bindings, we'd break code like `let mut x = false; false && { x = true; false };`. So to use `let` bindings in constants you need to change `&&` and `||` to `&` and `|` respectively.
Configuration menu - View commit details
-
Copy full SHA for 8f2c998 - Browse repository at this point
Copy the full SHA 8f2c998View commit details -
Rollup merge of rust-lang#57234 - Centril:const-stabilizations-2, r=o…
…li-obk Const-stabilize `const_int_ops` + `const_ip` r? @oli-obk I've added T-lang since this affects intrinsics and the operational semantics of Rust's `const fn` fragment. This PR depends on rust-lang#57105 but the FCP intent does not. ## Stable APIs proposed for constification + `const_int_ops`: + `count_ones` + `count_zeros` + `leading_zeros` + `trailing_zeros` + `swap_bytes` + `from_be` + `from_le` + `to_be` + `to_le` + `const_ip` + `Ipv4Addr::new` ## Unstable APIs constified + `const_int_conversion`: + `reverse_bits`
Configuration menu - View commit details
-
Copy full SHA for 713551c - Browse repository at this point
Copy the full SHA 713551cView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.