-
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 10 pull requests #81068
Rollup of 10 pull requests #81068
Commits on Jan 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 5ccef56 - Browse repository at this point
Copy the full SHA 5ccef56View commit details -
Configuration menu - View commit details
-
Copy full SHA for 12f1795 - Browse repository at this point
Copy the full SHA 12f1795View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b9c8ff - Browse repository at this point
Copy the full SHA 2b9c8ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e345a5 - Browse repository at this point
Copy the full SHA 9e345a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 757bd23 - Browse repository at this point
Copy the full SHA 757bd23View commit details
Commits on Jan 11, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 04b6036 - Browse repository at this point
Copy the full SHA 04b6036View commit details
Commits on Jan 12, 2021
-
Update src/test/ui/async-await/issues/issue-78938-async-block.stderr
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 3ee3071 - Browse repository at this point
Copy the full SHA 3ee3071View commit details
Commits on Jan 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for b2f5048 - Browse repository at this point
Copy the full SHA b2f5048View commit details -
Put all feature gate tests under
feature-gates/
There was one directory that had only a single test and there was also a test in the top-level directory. This moves both of them to `feature-gates/`.
Configuration menu - View commit details
-
Copy full SHA for c200036 - Browse repository at this point
Copy the full SHA c200036View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f41465 - Browse repository at this point
Copy the full SHA 7f41465View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5c4287 - Browse repository at this point
Copy the full SHA f5c4287View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9ead34 - Browse repository at this point
Copy the full SHA a9ead34View commit details
Commits on Jan 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 174135f - Browse repository at this point
Copy the full SHA 174135fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 63deae5 - Browse repository at this point
Copy the full SHA 63deae5View commit details
Commits on Jan 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 5468d98 - Browse repository at this point
Copy the full SHA 5468d98View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0660b8b - Browse repository at this point
Copy the full SHA 0660b8bView commit details -
Update compiler/rustc_mir/src/borrow_check/diagnostics/conflict_error…
…s.rs Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 3e9c95b - Browse repository at this point
Copy the full SHA 3e9c95bView commit details -
Use Result and rename to filter_map
The use of Result allows for making use of a reconstructed original value on failed projections.
Configuration menu - View commit details
-
Copy full SHA for e8757af - Browse repository at this point
Copy the full SHA e8757afView commit details -
Configuration menu - View commit details
-
Copy full SHA for e3274fd - Browse repository at this point
Copy the full SHA e3274fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a0c9e2 - Browse repository at this point
Copy the full SHA 2a0c9e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for e42c1b9 - Browse repository at this point
Copy the full SHA e42c1b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31b17f5 - Browse repository at this point
Copy the full SHA 31b17f5View commit details -
Change rebuild heuristic in BinaryHeap::append
See rust-lang#77433 for why the new heuristic was chosen. Fixes rust-lang#77433
Configuration menu - View commit details
-
Copy full SHA for 32a20f4 - Browse repository at this point
Copy the full SHA 32a20f4View commit details
Commits on Jan 16, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c625b97 - Browse repository at this point
Copy the full SHA c625b97View commit details -
doctest: Reset errors before dropping the parse session
The first parse is to collect whether the code contains macros, has `main`, and uses other crates. In that pass we ignore errors as those will be reported when the test file is actually built. For that we need to reset errors in the `Diagnostic` otherwise when dropping it unhandled errors will be reported as compiler bugs. Fixes rust-lang#80992
Configuration menu - View commit details
-
Copy full SHA for eef383f - Browse repository at this point
Copy the full SHA eef383fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ef5557 - Browse repository at this point
Copy the full SHA 0ef5557View commit details -
Configuration menu - View commit details
-
Copy full SHA for b681631 - Browse repository at this point
Copy the full SHA b681631View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8797986 - Browse repository at this point
Copy the full SHA 8797986View commit details -
Rollup merge of rust-lang#77435 - hanmertens:binary_heap_append, r=sc…
…ottmcm Always use extend in BinaryHeap::append This is faster, see rust-lang#77433. Fixes rust-lang#77433
Configuration menu - View commit details
-
Copy full SHA for d0f8553 - Browse repository at this point
Copy the full SHA d0f8553View commit details -
Rollup merge of rust-lang#78455 - udoprog:refcell-opt-map, r=KodrAus
Introduce {Ref, RefMut}::try_map for optional projections in RefCell This fills a usability gap of `RefCell` I've personally encountered to perform optional projections, mostly into collections such as `RefCell<Vec<T>>` or `RefCell<HashMap<U, T>>`: > This kind of API was briefly featured under Open questions in rust-lang#10514 back in 2013 (!) ```rust let values = RefCell::new(vec![1, 2, 3, 4]); let b = Ref::opt_map(values.borrow(), |vec| vec.get(2)); ``` It primarily avoids this alternative approach to accomplish the same kind of projection which is both rather noisy and panicky: ```rust let values = RefCell::new(vec![1, 2, 3, 4]); let b = if values.get(2).is_some() { Some(Ref::map(values.borrow(), |vec| vec.get(2).unwrap())) } else { None }; ``` ### Open questions The naming `opt_map` is preliminary. I'm not aware of prior art in std to lean on here, but this name should probably be improved if this functionality is desirable. Since `opt_map` consumes the guard, and alternative syntax might be more appropriate which instead *tries* to perform the projection, allowing the original borrow to be recovered in case it fails: ```rust pub fn try_map<U: ?Sized, F>(orig: Ref<'b, T>, f: F) -> Result<Ref<'b, U>, Self> where F: FnOnce(&T) -> Option<&U>; ``` This would be more in line with the `try_map` method [provided by parking lot](https://docs.rs/lock_api/0/lock_api/struct.RwLockWriteGuard.html#method.try_map).
Configuration menu - View commit details
-
Copy full SHA for 0e5dcaf - Browse repository at this point
Copy the full SHA 0e5dcafView commit details -
Rollup merge of rust-lang#80614 - 1000teslas:issue-78938-fix, r=tmandry
Explain why borrows can't be held across yield point in async blocks For rust-lang#78938.
Configuration menu - View commit details
-
Copy full SHA for 0d901f2 - Browse repository at this point
Copy the full SHA 0d901f2View commit details -
Rollup merge of rust-lang#80901 - jyn514:better-colors, r=Mark-Simula…
…crum Make `x.py --color always` apply to logging too Follow-up to rust-lang#78548, rust-lang#79004. r? `@Mark-Simulacrum`
Configuration menu - View commit details
-
Copy full SHA for 046da7a - Browse repository at this point
Copy the full SHA 046da7aView commit details -
Rollup merge of rust-lang#80902 - JohnTitor:issue-76281, r=Mark-Simul…
…acrum Add a regression test for rust-lang#76281 This has been fixed between 1.47.0-nightly (663d2f5 2020-08-22) and 1.47.0-nightly (5180f3d 2020-08-23). Maybe fixed by rust-lang#73526? Created `wasm` dir, it currently has only one test but I'll move some wasm-related tests there as a follow-up. Closes rust-lang#76281
Configuration menu - View commit details
-
Copy full SHA for e9a6063 - Browse repository at this point
Copy the full SHA e9a6063View commit details -
Rollup merge of rust-lang#80968 - KodrAus:stabilize/poll_map, r=Mark-…
…Simulacrum Stabilize the poll_map feature Stabilizes the `poll_map` feature as tracked by rust-lang#63514 (with a completed FCP).
Configuration menu - View commit details
-
Copy full SHA for 605557f - Browse repository at this point
Copy the full SHA 605557fView commit details -
Rollup merge of rust-lang#80971 - camelid:feature-gate-testsuite-orga…
…nization, r=Mark-Simulacrum Put all feature gate tests under `feature-gates/` There was one directory that had only a single test and there was also a test in the top-level directory. This moves both of them to `feature-gates/`.
Configuration menu - View commit details
-
Copy full SHA for 32e9c33 - Browse repository at this point
Copy the full SHA 32e9c33View commit details -
Rollup merge of rust-lang#81021 - CraftSpider:rustdoc-remove-import, …
…r=jyn514 Remove doctree::Import Per the title. Part of cleaning up doctree
Configuration menu - View commit details
-
Copy full SHA for 58c1b90 - Browse repository at this point
Copy the full SHA 58c1b90View commit details -
Rollup merge of rust-lang#81040 - osa1:fix_80992, r=jyn514
doctest: Reset errors before dropping the parse session The first parse is to collect whether the code contains macros, has `main`, and uses other crates. In that pass we ignore errors as those will be reported when the test file is actually built. For that we need to reset errors in the `Diagnostic` otherwise when dropping it unhandled errors will be reported as compiler bugs. Fixes rust-lang#80992
Configuration menu - View commit details
-
Copy full SHA for 6a131cb - Browse repository at this point
Copy the full SHA 6a131cbView commit details -
Rollup merge of rust-lang#81065 - osa1:cranelift_semicolon_warning, r…
…=jyn514 codegen_cranelift: Fix redundant semicolon warn
Configuration menu - View commit details
-
Copy full SHA for c8bca90 - Browse repository at this point
Copy the full SHA c8bca90View commit details