-
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 12 pull requests #81394
Rollup of 12 pull requests #81394
Commits on Jan 10, 2021
-
Print failure message on all tests that should panic, but don't
This already happens with should_panic tests without an expected message. This commit fixes should_panic tests with an expected message to have the same behavior.
Configuration menu - View commit details
-
Copy full SHA for b43aa96 - Browse repository at this point
Copy the full SHA b43aa96View commit details -
Add
unwrap_unchecked()
methods forOption
andResult
In particular: - `unwrap_unchecked()` for `Option`. - `unwrap_unchecked()` and `unwrap_err_unchecked()` for `Result`. These complement other `*_unchecked()` methods in `core` etc. Currently there are a couple of places it may be used inside rustc (`LinkedList`, `BTree`). It is also easy to find other repositories with similar functionality. Fixes #48278. Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 679f6f3 - Browse repository at this point
Copy the full SHA 679f6f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76299b3 - Browse repository at this point
Copy the full SHA 76299b3View commit details
Commits on Jan 18, 2021
-
Reset LateContext enclosing body in nested items
Prevents LateContext::maybe_typeck_results() from returning data in a nested item without a body. Consequently, LateContext::qpath_res is less likely to ICE when called in a nested item. Would have prevented rust-lang/rust-clippy#4545, presumably.
Configuration menu - View commit details
-
Copy full SHA for 63a1eee - Browse repository at this point
Copy the full SHA 63a1eeeView commit details -
Query for TypeckResults in LateContext::qpath_res
Actually fulfills the documented guarantees.
Configuration menu - View commit details
-
Copy full SHA for 21fb586 - Browse repository at this point
Copy the full SHA 21fb586View commit details -
Configuration menu - View commit details
-
Copy full SHA for def0e9b - Browse repository at this point
Copy the full SHA def0e9bView commit details -
Move test to
src/test/ui/consts/
Apparently `tidy` has a hard limit of 2830 tests in the `src/test/ui/issues/` directory, and this test hit that limit. `src/test/ui/consts/` is probably a better location anyway.
Configuration menu - View commit details
-
Copy full SHA for a7b7a43 - Browse repository at this point
Copy the full SHA a7b7a43View commit details -
Configuration menu - View commit details
-
Copy full SHA for eaba3da - Browse repository at this point
Copy the full SHA eaba3daView commit details
Commits on Jan 22, 2021
-
Make more traits of the From/Into family diagnostic items
Following traits are now diagnostic items: - `From` (unchanged) - `Into` - `TryFrom` - `TryInto` This also adds symbols for those items: - `into_trait` - `try_from_trait` - `try_into_trait`
Configuration menu - View commit details
-
Copy full SHA for e25959b - Browse repository at this point
Copy the full SHA e25959bView commit details
Commits on Jan 24, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 48f9dbf - Browse repository at this point
Copy the full SHA 48f9dbfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d4e03a - Browse repository at this point
Copy the full SHA 6d4e03aView commit details
Commits on Jan 25, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 2be1993 - Browse repository at this point
Copy the full SHA 2be1993View commit details -
rustc_codegen_ssa: use wall time for codegen_to_LLVM_IR time-passes e…
…ntry Use elapsed wall time spent on codegen_to_LLVM_IR for all CGUs as a whole, rather than the sum for each CGU (the distinction matters for parallel builds, where some CGUs are processed in parallel).
Configuration menu - View commit details
-
Copy full SHA for 59195a2 - Browse repository at this point
Copy the full SHA 59195a2View commit details -
Point to span of upvar making closure FnMut
Add expected error Add comment Tweak comment wording Fix after rebase to updated master Fix after rebase to updated master Distinguish mutation in normal and move closures Tweak error message Fix error message for nested closures Refactor code showing mutated upvar in closure Remove debug assert B
Configuration menu - View commit details
-
Copy full SHA for 26b4baf - Browse repository at this point
Copy the full SHA 26b4bafView commit details -
Configuration menu - View commit details
-
Copy full SHA for 088c89d - Browse repository at this point
Copy the full SHA 088c89dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 042facb - Browse repository at this point
Copy the full SHA 042facbView commit details -
Link the reference about undefined behavior
Suggested-by: Mara Bos <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0140dac - Browse repository at this point
Copy the full SHA 0140dacView commit details -
Configuration menu - View commit details
-
Copy full SHA for 01250fc - Browse repository at this point
Copy the full SHA 01250fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c0a52d - Browse repository at this point
Copy the full SHA 1c0a52dView commit details -
Rollup merge of #80868 - johanngan:should-panic-msg-with-expected, r=…
…m-ou-se Print failure message on all tests that should panic, but don't Fixes #80861. Tests with the `#[should_panic]` attribute should always print a failure message if no panic occurs, regardless of whether or not an `expected` panic message is specified.
Configuration menu - View commit details
-
Copy full SHA for 6880d11 - Browse repository at this point
Copy the full SHA 6880d11View commit details -
Rollup merge of #80876 - ojeda:option-result-unwrap_unchecked, r=m-ou-se
Add `unwrap_unchecked()` methods for `Option` and `Result` In particular: - `unwrap_unchecked()` for `Option`. - `unwrap_unchecked()` and `unwrap_err_unchecked()` for `Result`. These complement other `*_unchecked()` methods in `core` etc. Currently there are a couple of places it may be used inside rustc (`LinkedList`, `BTree`). It is also easy to find other repositories with similar functionality. Fixes #48278.
Configuration menu - View commit details
-
Copy full SHA for 975c4bc - Browse repository at this point
Copy the full SHA 975c4bcView commit details -
Rollup merge of #80900 - camelid:readpointerasbytes-ice, r=oli-obk
Fix ICE with `ReadPointerAsBytes` validation error Fixes #79690. r? ````@oli-obk````
Configuration menu - View commit details
-
Copy full SHA for 34abe17 - Browse repository at this point
Copy the full SHA 34abe17View commit details -
Rollup merge of #81158 - 1000teslas:issue-80313-fix, r=Aaron1011
Point to span of upvar making closure FnMut For #80313.
Configuration menu - View commit details
-
Copy full SHA for 79ddb67 - Browse repository at this point
Copy the full SHA 79ddb67View commit details -
Rollup merge of #81176 - camsteffen:qpath-res, r=oli-obk
Improve safety of `LateContext::qpath_res` This is my first rustc code change, inspired by hacking on clippy! The first change is to clear cached `TypeckResults` from `LateContext` when visiting a nested item. I took a hint from [here](https://github.com/rust-lang/rust/blob/5e91c4ecc09312d8b63d250a432b0f3ef83f1df7/compiler/rustc_privacy/src/lib.rs#L1300). Clippy has a `qpath_res` util function to avoid a possible ICE in `LateContext::qpath_res`. But the docs of `LateContext::qpath_res` promise no ICE. So this updates the `LateContext` method to keep its promises, and removes the util function. Related: rust-lang/rust-clippy#4545 CC ```@eddyb``` since you've done related work CC ```@flip1995``` FYI
Configuration menu - View commit details
-
Copy full SHA for 3210a25 - Browse repository at this point
Copy the full SHA 3210a25View commit details -
Rollup merge of #81195 - estebank:suggest-bound-on-trait-with-params,…
… r=oli-obk Account for generics when suggesting bound Fix #81175.
Configuration menu - View commit details
-
Copy full SHA for c2b8cd7 - Browse repository at this point
Copy the full SHA c2b8cd7View commit details -
Rollup merge of #81277 - flip1995:from_diag_items, r=matthewjasper
Make more traits of the From/Into family diagnostic items Following traits are now diagnostic items: - `From` (unchanged) - `Into` - `TryFrom` - `TryInto` This also adds symbols for those items: - `into_trait` - `try_from_trait` - `try_into_trait` Related: rust-lang/rust-clippy#6620 (comment)
Configuration menu - View commit details
-
Copy full SHA for 1cbd775 - Browse repository at this point
Copy the full SHA 1cbd775View commit details -
Rollup merge of #81299 - GuillaumeGomez:fix-eslint-detected-bugs, r=N…
…emo157 Fix some bugs reported by eslint Simply went into `src/librustdoc/html/static/` and ran `eslint *.js` in case you want to reproduce. :) r? ````@Nemo157````
Configuration menu - View commit details
-
Copy full SHA for 457b3da - Browse repository at this point
Copy the full SHA 457b3daView commit details -
Rollup merge of #81327 - RalfJung:codegen-no-const-fail, r=oli-obk
codegen: assume constants cannot fail to evaluate #80579 landed, so we can finally remove this old hack from codegen and instead assume that consts never fail to evaluate. :) r? ````@oli-obk````
Configuration menu - View commit details
-
Copy full SHA for 06ef1bf - Browse repository at this point
Copy the full SHA 06ef1bfView commit details -
Rollup merge of #81333 - RalfJung:const-err-simplify, r=oli-obk
clean up some const error reporting around promoteds These are some error reporting simplifications enabled by #80579. Further simplifications are possible but could be blocked on making `const_err` a hard error. r? `@oli-obk`
Configuration menu - View commit details
-
Copy full SHA for 34ca9c5 - Browse repository at this point
Copy the full SHA 34ca9c5View commit details -
Rollup merge of #81369 - tgnottingham:codegen-to-llvm-ir-wall-time, r…
…=lcnr rustc_codegen_ssa: use wall time for codegen_to_LLVM_IR time-passes entry Use elapsed wall time spent on codegen_to_LLVM_IR for all CGUs as a whole, rather than the sum for each CGU (the distinction matters for parallel builds, where some CGUs are processed in parallel).
Configuration menu - View commit details
-
Copy full SHA for f308d77 - Browse repository at this point
Copy the full SHA f308d77View commit details -
Rollup merge of #81389 - ehuss:rustdoc-cmark-extensions, r=GuillaumeG…
…omez rustdoc: Document CommonMark extensions. This updates the rustdoc book to include some documentation on the CommonMark extensions that rustdoc supports.
Configuration menu - View commit details
-
Copy full SHA for ba8379b - Browse repository at this point
Copy the full SHA ba8379bView commit details