-
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 12 pull requests #78334
Rollup of 12 pull requests #78334
Commits on Oct 11, 2020
-
revise Hermit's mutex interface to support the behaviour of StaticMutex
#77147 simplifies things by splitting this Mutex type into two types matching the two use cases: StaticMutex and MovableMutex. To support the behavior of StaticMutex, we move part of the mutex implementation into libstd.
Configuration menu - View commit details
-
Copy full SHA for 16d65d0 - Browse repository at this point
Copy the full SHA 16d65d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 98fcc3f - Browse repository at this point
Copy the full SHA 98fcc3fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d560b50 - Browse repository at this point
Copy the full SHA d560b50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 986c1fc - Browse repository at this point
Copy the full SHA 986c1fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for d6e955f - Browse repository at this point
Copy the full SHA d6e955fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 530f575 - Browse repository at this point
Copy the full SHA 530f575View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d8a290 - Browse repository at this point
Copy the full SHA 8d8a290View commit details
Commits on Oct 12, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 33fd08b - Browse repository at this point
Copy the full SHA 33fd08bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 30c3dad - Browse repository at this point
Copy the full SHA 30c3dadView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1741e5b - Browse repository at this point
Copy the full SHA 1741e5bView commit details
Commits on Oct 13, 2020
-
Configuration menu - View commit details
-
Copy full SHA for bc6b2ac - Browse repository at this point
Copy the full SHA bc6b2acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 77d9831 - Browse repository at this point
Copy the full SHA 77d9831View commit details -
box mutex to get a movable mutex
the commit avoid an alignement issue in Mutex implementation
Configuration menu - View commit details
-
Copy full SHA for bf268fe - Browse repository at this point
Copy the full SHA bf268feView commit details
Commits on Oct 18, 2020
-
#[deny(unsafe_op_in_unsafe_fn)]
in sys/cloudabichansuke committedOct 18, 2020 Configuration menu - View commit details
-
Copy full SHA for d3467fe - Browse repository at this point
Copy the full SHA d3467feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b37d94 - Browse repository at this point
Copy the full SHA 3b37d94View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb81110 - Browse repository at this point
Copy the full SHA bb81110View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3d0445 - Browse repository at this point
Copy the full SHA c3d0445View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99852e0 - Browse repository at this point
Copy the full SHA 99852e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3708c86 - Browse repository at this point
Copy the full SHA 3708c86View commit details -
Configuration menu - View commit details
-
Copy full SHA for f504e9a - Browse repository at this point
Copy the full SHA f504e9aView commit details -
Handle ranges of float consistently
This deconfuses the comparison of floats, that currently mixed ranges and non-ranges.
Configuration menu - View commit details
-
Copy full SHA for aa41720 - Browse repository at this point
Copy the full SHA aa41720View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1a784e - Browse repository at this point
Copy the full SHA d1a784eView commit details -
Configuration menu - View commit details
-
Copy full SHA for da0ba2f - Browse repository at this point
Copy the full SHA da0ba2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c4ae6c2 - Browse repository at this point
Copy the full SHA c4ae6c2View commit details
Commits on Oct 19, 2020
-
Throw core::panic!("message") as &str instead of String.
This makes it consistent with std::panic!("message"), which also throws a &str, not a String.
Configuration menu - View commit details
-
Copy full SHA for 2780e35 - Browse repository at this point
Copy the full SHA 2780e35View commit details -
Fix ui test for updated core::panic behaviour.
It now throws a &str instead of a String.
Configuration menu - View commit details
-
Copy full SHA for 9890217 - Browse repository at this point
Copy the full SHA 9890217View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bfd3e7 - Browse repository at this point
Copy the full SHA 5bfd3e7View commit details
Commits on Oct 21, 2020
-
Introduce a temporary for discriminant value in MatchBranchSimplifica…
…tion The optimization introduces additional uses of the discriminant operand, but does not ensure that it is still valid to evaluate it or that it still evaluates to the same value. Evaluate it once at original position, and store the result in a new temporary.
Configuration menu - View commit details
-
Copy full SHA for a4dc92b - Browse repository at this point
Copy the full SHA a4dc92bView commit details -
This issue was accidentally fixed recently, probably by #70743
Configuration menu - View commit details
-
Copy full SHA for 3519411 - Browse repository at this point
Copy the full SHA 3519411View commit details -
Configuration menu - View commit details
-
Copy full SHA for faf8710 - Browse repository at this point
Copy the full SHA faf8710View commit details
Commits on Oct 22, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 4f7ffbf - Browse repository at this point
Copy the full SHA 4f7ffbfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7130127 - Browse repository at this point
Copy the full SHA 7130127View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a4d948 - Browse repository at this point
Copy the full SHA 0a4d948View commit details -
Configuration menu - View commit details
-
Copy full SHA for de76370 - Browse repository at this point
Copy the full SHA de76370View commit details -
Configuration menu - View commit details
-
Copy full SHA for de7da7f - Browse repository at this point
Copy the full SHA de7da7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e853cc0 - Browse repository at this point
Copy the full SHA e853cc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57ba8ed - Browse repository at this point
Copy the full SHA 57ba8edView commit details
Commits on Oct 23, 2020
-
change the order of type arguments on ControlFlow
This allows ControlFlow<BreakType> which is much more ergonomic for common iterator combinator use cases.
Configuration menu - View commit details
-
Copy full SHA for 84daccc - Browse repository at this point
Copy the full SHA 84dacccView commit details -
Configuration menu - View commit details
-
Copy full SHA for bc23179 - Browse repository at this point
Copy the full SHA bc23179View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ad140c - Browse repository at this point
Copy the full SHA 6ad140cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 47cb871 - Browse repository at this point
Copy the full SHA 47cb871View commit details -
Configuration menu - View commit details
-
Copy full SHA for b334eef - Browse repository at this point
Copy the full SHA b334eefView commit details -
Configuration menu - View commit details
-
Copy full SHA for f71e9ed - Browse repository at this point
Copy the full SHA f71e9edView commit details
Commits on Oct 24, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 6533d01 - Browse repository at this point
Copy the full SHA 6533d01View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef09ed2 - Browse repository at this point
Copy the full SHA ef09ed2View commit details -
Rollup merge of #75115 - chansuke:sys-cloudabi-unsafe, r=KodrAus
`#[deny(unsafe_op_in_unsafe_fn)]` in sys/cloudabi Partial fix of #73904. This encloses unsafe operations in unsafe fn in sys/cloudabi.
Configuration menu - View commit details
-
Copy full SHA for 01a38f0 - Browse repository at this point
Copy the full SHA 01a38f0View commit details -
Rollup merge of #76614 - NoraCodes:nora/control_flow_enum, r=scottmcm
change the order of type arguments on ControlFlow This allows ControlFlow<BreakType> which is much more ergonomic for common iterator combinator use cases. Addresses one component of #75744
Configuration menu - View commit details
-
Copy full SHA for a547055 - Browse repository at this point
Copy the full SHA a547055View commit details -
Rollup merge of #77610 - hermitcore:dtors, r=m-ou-se
revise Hermit's mutex interface to support the behaviour of StaticMutex #77147 simplifies things by splitting this Mutex type into two types matching the two use cases: StaticMutex and MovableMutex. To support the new behavior of StaticMutex, we move part of the mutex implementation into libstd. The interface to the OS changed. Consequently, I removed a few functions, which aren't longer needed.
Configuration menu - View commit details
-
Copy full SHA for e34263d - Browse repository at this point
Copy the full SHA e34263dView commit details -
Rollup merge of #77830 - cjgillot:remacro, r=oli-obk
Simplify query proc-macros The query code generation is split between proc-macros and regular macros in `rustc_middle::ty::query`. This PR removes unused capabilities of the proc-macros, and tend to use regular macros for the logic.
Configuration menu - View commit details
-
Copy full SHA for 4d72939 - Browse repository at this point
Copy the full SHA 4d72939View commit details -
Rollup merge of #77930 - estebank:ice-77919, r=eddyb
Do not ICE with TraitPredicates containing [type error] Fix #77919.
Configuration menu - View commit details
-
Copy full SHA for 7428de1 - Browse repository at this point
Copy the full SHA 7428de1View commit details -
Rollup merge of #78069 - fusion-engineering-forks:core-const-panic-st…
…r, r=RalfJung Fix const core::panic!(non_literal_str). Invocations of `core::panic!(x)` where `x` is not a string literal expand to `panic!("{}", x)`, which is not understood by the const panic logic right now. This adds `panic_str` as a lang item, and modifies the const eval implementation to hook into this item as well. This fixes the issue mentioned here: #51999 (comment) r? `@RalfJung` `@rustbot` modify labels: +A-const-eval
Configuration menu - View commit details
-
Copy full SHA for 0a06d73 - Browse repository at this point
Copy the full SHA 0a06d73View commit details -
Rollup merge of #78072 - Nadrieril:cleanup-constant-matching, r=varkor
Cleanup constant matching in exhaustiveness checking This supercedes #77390. I made the `Opaque` constructor work. I have opened two issues #78071 and #78057 from the discussion we had on the previous PR. They are not regressions nor directly related to the current PR so I thought we'd deal with them separately. I left a FIXME somewhere because I didn't know how to compare string constants for equality. There might even be some unicode things that need to happen there. In the meantime I preserved previous behavior. EDIT: I accidentally fixed #78071
Configuration menu - View commit details
-
Copy full SHA for e12e972 - Browse repository at this point
Copy the full SHA e12e972View commit details -
Rollup merge of #78119 - fusion-engineering-forks:panic-use-as-str, r…
…=Amanieu Throw core::panic!("message") as &str instead of String. This makes `core::panic!("message")` consistent with `std::panic!("message")`, which throws a `&str` and not a `String`. This also makes any other panics from `core::panicking::panic` result in a `&str` rather than a `String`, which includes compiler-generated panics such as the panics generated for `mem::zeroed()`. --- Demonstration: ```rust use std::panic; use std::any::Any; fn main() { panic::set_hook(Box::new(|panic_info| check(panic_info.payload()))); check(&*panic::catch_unwind(|| core::panic!("core")).unwrap_err()); check(&*panic::catch_unwind(|| std::panic!("std")).unwrap_err()); } fn check(msg: &(dyn Any + Send)) { if let Some(s) = msg.downcast_ref::<String>() { println!("Got a String: {:?}", s); } else if let Some(s) = msg.downcast_ref::<&str>() { println!("Got a &str: {:?}", s); } } ``` Before: ``` Got a String: "core" Got a String: "core" Got a &str: "std" Got a &str: "std" ``` After: ``` Got a &str: "core" Got a &str: "core" Got a &str: "std" Got a &str: "std" ```
Configuration menu - View commit details
-
Copy full SHA for e3808ed - Browse repository at this point
Copy the full SHA e3808edView commit details -
Rollup merge of #78191 - tmiasko:temp-match-branch-simplification, r=…
…oli-obk Introduce a temporary for discriminant value in MatchBranchSimplification The optimization introduces additional uses of the discriminant operand, but does not ensure that it is still valid to evaluate it or that it still evaluates to the same value. Evaluate it once at original position, and store the result in a new temporary. Follow up on #78151. The optimization remains disabled by default. Closes #78239.
Configuration menu - View commit details
-
Copy full SHA for 597b4c5 - Browse repository at this point
Copy the full SHA 597b4c5View commit details -
Rollup merge of #78272 - lcnr:abstract-const-unused-node, r=oli-obk
const_evaluatable_checked: deal with unused nodes + div r? @oli-obk
Configuration menu - View commit details
-
Copy full SHA for 5ed8ac4 - Browse repository at this point
Copy the full SHA 5ed8ac4View commit details -
Rollup merge of #78318 - bugadani:tyctx-impl, r=petrochenkov
TyCtxt: generate single impl block with `slice_interners` macro Reduces the work needed to check overlapping impls a bit.
Configuration menu - View commit details
-
Copy full SHA for a8ff5a4 - Browse repository at this point
Copy the full SHA a8ff5a4View commit details -
Rollup merge of #78327 - petrochenkov:inconsist, r=Aaron1011
resolve: Relax macro resolution consistency check to account for any errors The check was previously omitted only when ambiguity errors or `Res::Err` were encountered, but the "macro-expanded `extern crate` items cannot shadow..." error (at least) can cause same inconsistencies as well. Fixes #78325
Configuration menu - View commit details
-
Copy full SHA for 58ae889 - Browse repository at this point
Copy the full SHA 58ae889View commit details