-
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 #70109
Rollup of 10 pull requests #70109
Commits on Feb 13, 2020
-
Configuration menu - View commit details
-
Copy full SHA for a113609 - Browse repository at this point
Copy the full SHA a113609View commit details
Commits on Mar 8, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 57f1bb1 - Browse repository at this point
Copy the full SHA 57f1bb1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64460a1 - Browse repository at this point
Copy the full SHA 64460a1View commit details
Commits on Mar 11, 2020
-
miri: categorize errors into "unsupported" and "UB"
Also slightly refactor pointer bounds checks to avoid creating unnecessary temporary Errors
Configuration menu - View commit details
-
Copy full SHA for f5efb68 - Browse repository at this point
Copy the full SHA f5efb68View commit details -
Configuration menu - View commit details
-
Copy full SHA for d02543a - Browse repository at this point
Copy the full SHA d02543aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a95b01 - Browse repository at this point
Copy the full SHA 9a95b01View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ebcd78 - Browse repository at this point
Copy the full SHA 3ebcd78View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2764d3d - Browse repository at this point
Copy the full SHA 2764d3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e61442 - Browse repository at this point
Copy the full SHA 3e61442View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8f8168 - Browse repository at this point
Copy the full SHA d8f8168View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9681422 - Browse repository at this point
Copy the full SHA 9681422View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93436d8 - Browse repository at this point
Copy the full SHA 93436d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for e219dd4 - Browse repository at this point
Copy the full SHA e219dd4View commit details
Commits on Mar 14, 2020
-
Configuration menu - View commit details
-
Copy full SHA for b2779d8 - Browse repository at this point
Copy the full SHA b2779d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4266807 - Browse repository at this point
Copy the full SHA 4266807View commit details -
Configuration menu - View commit details
-
Copy full SHA for 49aabd8 - Browse repository at this point
Copy the full SHA 49aabd8View commit details
Commits on Mar 17, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 5a9ccc9 - Browse repository at this point
Copy the full SHA 5a9ccc9View commit details -
Don't use
TypeckTables
in NiceRegionErrorRegions in TypeckTables will be erased, so are unusable for error reporting.
Configuration menu - View commit details
-
Copy full SHA for cefd030 - Browse repository at this point
Copy the full SHA cefd030View commit details -
Also skip duplicated region solving entirely with `-Zborrowck=mir`.
Configuration menu - View commit details
-
Copy full SHA for 0a7f16e - Browse repository at this point
Copy the full SHA 0a7f16eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ee5829 - Browse repository at this point
Copy the full SHA 1ee5829View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3314a34 - Browse repository at this point
Copy the full SHA 3314a34View commit details -
Configuration menu - View commit details
-
Copy full SHA for bdaf9e4 - Browse repository at this point
Copy the full SHA bdaf9e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa20d96 - Browse repository at this point
Copy the full SHA aa20d96View commit details -
Configuration menu - View commit details
-
Copy full SHA for 429b16e - Browse repository at this point
Copy the full SHA 429b16eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f5a284 - Browse repository at this point
Copy the full SHA 7f5a284View commit details -
Configuration menu - View commit details
-
Copy full SHA for cc4a577 - Browse repository at this point
Copy the full SHA cc4a577View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ac93ee - Browse repository at this point
Copy the full SHA 9ac93eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81172d8 - Browse repository at this point
Copy the full SHA 81172d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a017da - Browse repository at this point
Copy the full SHA 9a017daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 548b182 - Browse repository at this point
Copy the full SHA 548b182View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c25307 - Browse repository at this point
Copy the full SHA 6c25307View commit details -
Set the default stack size to 8MB
This was the value used before we originally started raising the stack size to infinity.
Configuration menu - View commit details
-
Copy full SHA for 410cdd7 - Browse repository at this point
Copy the full SHA 410cdd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb10e5c - Browse repository at this point
Copy the full SHA fb10e5cView commit details
Commits on Mar 18, 2020
-
Configuration menu - View commit details
-
Copy full SHA for bb9f14c - Browse repository at this point
Copy the full SHA bb9f14cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a57ccf7 - Browse repository at this point
Copy the full SHA a57ccf7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b8331b - Browse repository at this point
Copy the full SHA 1b8331bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c71f70 - Browse repository at this point
Copy the full SHA 3c71f70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76c5a4f - Browse repository at this point
Copy the full SHA 76c5a4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bea03d - Browse repository at this point
Copy the full SHA 4bea03dView commit details -
defatalize ProcMacroDerive::expand
Also remove ExtCtxt::struct_span_fatal.
Configuration menu - View commit details
-
Copy full SHA for a98ea5a - Browse repository at this point
Copy the full SHA a98ea5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 576c7c9 - Browse repository at this point
Copy the full SHA 576c7c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8dddaed - Browse repository at this point
Copy the full SHA 8dddaedView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad5304a - Browse repository at this point
Copy the full SHA ad5304aView commit details -
Configuration menu - View commit details
-
Copy full SHA for de6e144 - Browse repository at this point
Copy the full SHA de6e144View commit details -
Configuration menu - View commit details
-
Copy full SHA for c440890 - Browse repository at this point
Copy the full SHA c440890View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a42b65 - Browse repository at this point
Copy the full SHA 5a42b65View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83313e4 - Browse repository at this point
Copy the full SHA 83313e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d38b0f - Browse repository at this point
Copy the full SHA 7d38b0fView commit details -
Rollup merge of rust-lang#55617 - oli-obk:stacker, r=oli-obk,nagisa
Prevent compiler stack overflow for deeply recursive code I was unable to write a test that 1. runs in under 1s 2. overflows on my machine without this patch The following reproduces the issue, but I don't think it's sensible to include a test that takes 30s to compile. We can now easily squash newly appearing overflows by the strategic insertion of calls to `ensure_sufficient_stack`. ```rust // compile-pass #![recursion_limit="1000000"] macro_rules! chain { (EE $e:expr) => {$e.sin()}; (RECURSE $i:ident $e:expr) => {chain!($i chain!($i chain!($i chain!($i $e))))}; (Z $e:expr) => {chain!(RECURSE EE $e)}; (Y $e:expr) => {chain!(RECURSE Z $e)}; (X $e:expr) => {chain!(RECURSE Y $e)}; (A $e:expr) => {chain!(RECURSE X $e)}; (B $e:expr) => {chain!(RECURSE A $e)}; (C $e:expr) => {chain!(RECURSE B $e)}; // causes overflow on x86_64 linux // less than 1 second until overflow on test machine // after overflow has been fixed, takes 30s to compile :/ (D $e:expr) => {chain!(RECURSE C $e)}; (E $e:expr) => {chain!(RECURSE D $e)}; (F $e:expr) => {chain!(RECURSE E $e)}; // more than 10 seconds (G $e:expr) => {chain!(RECURSE F $e)}; (H $e:expr) => {chain!(RECURSE G $e)}; (I $e:expr) => {chain!(RECURSE H $e)}; (J $e:expr) => {chain!(RECURSE I $e)}; (K $e:expr) => {chain!(RECURSE J $e)}; (L $e:expr) => {chain!(RECURSE L $e)}; } fn main() { let x = chain!(D 42.0_f32); } ``` fixes rust-lang#55471 fixes rust-lang#41884 fixes rust-lang#40161 fixes rust-lang#34844 fixes rust-lang#32594 cc @alexcrichton @rust-lang/compiler I looked at all code that checks the recursion limit and inserted stack growth calls where appropriate.
Configuration menu - View commit details
-
Copy full SHA for d6e0e11 - Browse repository at this point
Copy the full SHA d6e0e11View commit details -
Rollup merge of rust-lang#67749 - gilescope:keyword-in, r=Dylan-DPC
keyword docs for else and inkeyword docs for else and in. First cut of else and in keyword docs. Comments and suggestions more than welcome.
Configuration menu - View commit details
-
Copy full SHA for 2b2dda1 - Browse repository at this point
Copy the full SHA 2b2dda1View commit details -
Rollup merge of rust-lang#69139 - GuillaumeGomez:cleanup-e0308, r=Dyl…
…an-DPC clean up E0308 explanation r? @Dylan-DPC
Configuration menu - View commit details
-
Copy full SHA for af6af30 - Browse repository at this point
Copy the full SHA af6af30View commit details -
Rollup merge of rust-lang#69189 - matthewjasper:erase-the-world, r=ni…
…komatsakis Erase regions in writeback Regions in `TypeckTables` (except canonicalized user annotations) are now erased. Further, we no longer do lexical region solving on item bodies with `-Zborrowck=mir`. cc rust-lang#68261 r? @nikomatsakis
Configuration menu - View commit details
-
Copy full SHA for 1dfc89b - Browse repository at this point
Copy the full SHA 1dfc89bView commit details -
Rollup merge of rust-lang#69497 - Zoxc:ast-fragment-error, r=petroche…
…nkov Don't unwind when hitting the macro expansion recursion limit This removes one use of `FatalError.raise()`. r? @petrochenkov
Configuration menu - View commit details
-
Copy full SHA for ee3336f - Browse repository at this point
Copy the full SHA ee3336fView commit details -
Rollup merge of rust-lang#69837 - jonas-schievink:gen-discr-opt, r=tm…
…andry Use smaller discriminants for generators Closes rust-lang#69815 I'm not yet sure about the runtime performance impact of this, so I'll try running this on some benchmarks (if I can find any). (Update: No impact on the benchmarks I've measured on) * [x] Add test with a generator that has exactly 256 total states * [x] Add test with a generator that has more than 256 states so that it needs to use a u16 discriminant * [x] Add tests for the size of `Option<[generator]>` * [x] Add tests for the `discriminant_value` intrinsic in all cases
Configuration menu - View commit details
-
Copy full SHA for 4e0bd1b - Browse repository at this point
Copy the full SHA 4e0bd1bView commit details -
Rollup merge of rust-lang#69839 - RalfJung:miri-error-cleanup, r=oli-obk
Miri error reform Some time ago we started moving Miri errors into a few distinct categories, but we never classified all the old errors. That's what this PR does. ~~This is on top of rust-lang#69762; [relative diff](RalfJung/rust@validity-errors...RalfJung:miri-error-cleanup).~~ r? @oli-obk Fixes rust-lang/const-eval#4
Configuration menu - View commit details
-
Copy full SHA for f1af774 - Browse repository at this point
Copy the full SHA f1af774View commit details -
Rollup merge of rust-lang#69899 - ecstatic-morse:const-idx-methods, r…
…=oli-obk Make methods declared by `newtype_index` macro `const` Crates that use the macro to define an `Idx` type need to enable `#![feature(const_if_match, const_panic)]`.
Configuration menu - View commit details
-
Copy full SHA for fc69654 - Browse repository at this point
Copy the full SHA fc69654View commit details -
Rollup merge of rust-lang#70074 - Centril:unpanictry, r=petrochenkov
Expand: nix all fatal errors Basically, we go after all `.span_fatal` / `FatalError.raise()` and similar things and remove them one by one until there are no fatal errors left. r? @petrochenkov
Configuration menu - View commit details
-
Copy full SHA for 9318ffa - Browse repository at this point
Copy the full SHA 9318ffaView commit details -
Rollup merge of rust-lang#70075 - GuillaumeGomez:fix-repr-display, r=…
…petrochenkov Fix repr pretty display Fixes rust-lang#70027. r? @varkor
Configuration menu - View commit details
-
Copy full SHA for 73f7c43 - Browse repository at this point
Copy the full SHA 73f7c43View commit details