-
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 14 pull requests #81417
Rollup of 14 pull requests #81417
Commits on Jan 10, 2021
-
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 rust-lang#48278. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
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
-
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
Commits on Jan 19, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 495f7cc - Browse repository at this point
Copy the full SHA 495f7ccView commit details
Commits on Jan 24, 2021
-
Fix spelling in documentation for error E0207
I have trouble parsing the the wording "type parameter parameter".
Configuration menu - View commit details
-
Copy full SHA for 1d03648 - Browse repository at this point
Copy the full SHA 1d03648View 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 -
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 <m-ou.se@m-ou.se> Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
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 -
The cargo check was checking that every dependency had an `extern crate`. The compiler has not used `extern crate` in a long time (edition 2018). The test was broken (the call to `!super::filter_dirs(path)` was backwards). This just removes it since it is no longer valid.
Configuration menu - View commit details
-
Copy full SHA for 3eebf9b - Browse repository at this point
Copy the full SHA 3eebf9bView commit details -
tidy: Remove edition filter exceptions.
These exceptions are no longer necessary.
Configuration menu - View commit details
-
Copy full SHA for d980715 - Browse repository at this point
Copy the full SHA d980715View commit details -
tidy: Remove unnecessary trailing semicolon.
This will cause a failure due to the warning after the next beta branch as rust-lang#79812 will hit beta.
Configuration menu - View commit details
-
Copy full SHA for 6f22f51 - Browse repository at this point
Copy the full SHA 6f22f51View commit details -
Configuration menu - View commit details
-
Copy full SHA for fdd592a - Browse repository at this point
Copy the full SHA fdd592aView commit details
Commits on Jan 26, 2021
-
typeck: Don't suggest converting LHS exprs
Converting LHS of an assignment does not work, so avoid suggesting that. Fixes rust-lang#81293
Configuration menu - View commit details
-
Copy full SHA for d035be8 - Browse repository at this point
Copy the full SHA d035be8View commit details -
Refine "remove semicolon" suggestion in trait selection
Don't suggest it if the last statement doesn't have a semicolon Fixes rust-lang#81098 See also rust-lang#54771 for why this suggestion was added
Configuration menu - View commit details
-
Copy full SHA for 8ddc1c8 - Browse repository at this point
Copy the full SHA 8ddc1c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 39e24f7 - Browse repository at this point
Copy the full SHA 39e24f7View commit details -
Fix assertion in
MaybeUninit::array_assume_init()
for zero-length a……rrays
hyd-dev committedJan 26, 2021 Configuration menu - View commit details
-
Copy full SHA for f520667 - Browse repository at this point
Copy the full SHA f520667View commit details -
Rollup merge of rust-lang#80812 - rust-lang:relnotes-1.50.0, r=Mark-S…
…imulacrum Update RELEASES.md for 1.50.0 ### [Rendered](https://github.com/rust-lang/rust/blob/relnotes-1.50.0/RELEASES.md) r? `@Mark-Simulacrum` cc `@rust-lang/release`
Configuration menu - View commit details
-
Copy full SHA for f85fd81 - Browse repository at this point
Copy the full SHA f85fd81View commit details -
Rollup merge of rust-lang#80876 - ojeda:option-result-unwrap_unchecke…
…d, 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 rust-lang#48278.
Configuration menu - View commit details
-
Copy full SHA for fe6b3a9 - Browse repository at this point
Copy the full SHA fe6b3a9View commit details -
Rollup merge of rust-lang#80900 - camelid:readpointerasbytes-ice, r=o…
…li-obk Fix ICE with `ReadPointerAsBytes` validation error Fixes rust-lang#79690. r? ``````@oli-obk``````
Configuration menu - View commit details
-
Copy full SHA for c2c90bf - Browse repository at this point
Copy the full SHA c2c90bfView commit details -
Rollup merge of rust-lang#81191 - ssomers:btree_more_order_chaos, r=M…
…ark-Simulacrum BTreeMap: test all borrowing interfaces and test more chaotic order behavior Inspired by rust-lang#81169, test what happens if you mess up order of the type with which you search (as opposed to the key type). r? `@Mark-Simulacrum`
Configuration menu - View commit details
-
Copy full SHA for 8299105 - Browse repository at this point
Copy the full SHA 8299105View commit details -
Rollup merge of rust-lang#81195 - estebank:suggest-bound-on-trait-wit…
…h-params, r=oli-obk Account for generics when suggesting bound Fix rust-lang#81175.
Configuration menu - View commit details
-
Copy full SHA for 644df2f - Browse repository at this point
Copy the full SHA 644df2fView commit details -
Rollup merge of rust-lang#81299 - GuillaumeGomez:fix-eslint-detected-…
…bugs, r=Nemo157 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 1308c14 - Browse repository at this point
Copy the full SHA 1308c14View commit details -
Rollup merge of rust-lang#81325 - osa1:issue81293, r=estebank
typeck: Don't suggest converting LHS exprs Converting LHS of an assignment does not work, so avoid suggesting that. Fixes rust-lang#81293
Configuration menu - View commit details
-
Copy full SHA for 71f13fb - Browse repository at this point
Copy the full SHA 71f13fbView commit details -
Rollup merge of rust-lang#81353 - jockbert:spelling_in_e0207, r=petro…
…chenkov Fix spelling in documentation for error E0207 I have trouble parsing the the wording "type parameter parameter".
Configuration menu - View commit details
-
Copy full SHA for 3741844 - Browse repository at this point
Copy the full SHA 3741844View commit details -
Rollup merge of rust-lang#81369 - tgnottingham:codegen-to-llvm-ir-wal…
…l-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 acbd101 - Browse repository at this point
Copy the full SHA acbd101View commit details -
Rollup merge of rust-lang#81389 - ehuss:rustdoc-cmark-extensions, r=G…
…uillaumeGomez 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 ebe28f7 - Browse repository at this point
Copy the full SHA ebe28f7View commit details -
Rollup merge of rust-lang#81399 - ehuss:update-books, r=ehuss
Update books ## nomicon 7 commits in a8584998eacdea7106a1dfafcbf6c1c06fcdf925..bbf06ad39d1f45654047e9596b750cc6e6d1b693 2021-01-06 12:49:49 -0500 to 2021-01-22 07:07:31 -0800 - Fix alloc link in exotic-sizes for local docs (rust-lang/nomicon#255) - Remove TODO - Fix small punctuation error - Arc revisions (Clone atomic explanation) (pt2/3(+?)) - Fix Arc Clone - Arc revisions (pt1/2(+?)) - Simple Arc implementation (without Weak refs) ## reference 5 commits in 50af691f838937c300b47812d0507c6d88c14f97..f02b09eb6e8af340ad1256a54adb7aae2ff3163e 2021-01-12 21:19:20 -0800 to 2021-01-22 01:53:02 -0800 - Fix missing space (rust-lang/reference#941) - Start documenting name resolution. (rust-lang/reference#937) - Fix plural and delete spurious words in comparison ops (rust-lang/reference#932) - Document execution order (rust-lang/reference#888) - Compound operator expressions (rust-lang/reference#915) ## book 3 commits in ac57a0ddd23d173b26731ccf939f3ba729753275..e724bd826580ff95df48a8533af7dec1080693d4 2021-01-09 14:18:45 -0500 to 2021-01-20 08:19:49 -0600 - Fixes rust-lang/book#2417. Get the index from user input instead of a const. (rust-lang/book#2566) - Turn off the playground in a bunch more lib.rs inclusions (rust-lang/book#2569) - Merge pull request rust-lang/book#2567 from rust-lang/rust-1.49 ## rust-by-example 1 commits in 03e23af01f0b4f83a3a513da280e1ca92587f2ec..f633769acef68574427a6fae6c06f13bc2199573 2021-01-09 10:20:28 -0300 to 2021-01-13 20:58:25 -0300 - Fixed styling on closure example (rust-lang/rust-by-example#1405)
Configuration menu - View commit details
-
Copy full SHA for 9da3608 - Browse repository at this point
Copy the full SHA 9da3608View commit details -
Rollup merge of rust-lang#81401 - ehuss:tidy-cleanup, r=Mark-Simulacrum
tidy: Some code cleanup. This is just some cleanup that shouldn't have any change in behavior. (See commit messages for more details.) * Remove cargo check. This test wasn't working, and is no longer valid. * Remove edition filter exceptions. They are no longer necessary. * Remove unnecessary trailing semicolon. Otherwise the warning will prevent tidy from building after the beta branch.
Configuration menu - View commit details
-
Copy full SHA for 24a1081 - Browse repository at this point
Copy the full SHA 24a1081View commit details -
Rollup merge of rust-lang#81407 - osa1:issue81098, r=estebank
Refine "remove semicolon" suggestion in trait selection Don't suggest it if the last statement doesn't have a semicolon Fixes rust-lang#81098 See also rust-lang#54771 for why this suggestion was added
Configuration menu - View commit details
-
Copy full SHA for d68570c - Browse repository at this point
Copy the full SHA d68570cView commit details -
Rollup merge of rust-lang#81412 - hyd-dev:array-assume-init-wrong-ass…
…ertion, r=m-ou-se Fix assertion in `MaybeUninit::array_assume_init()` for zero-length arrays That assertion has a false positive ([playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=63922b8c897b04112adcdf346deb1d0e)): ```rust #![feature(maybe_uninit_array_assume_init)] use std::mem::MaybeUninit; enum Uninhabited {} fn main() { unsafe { // thread 'main' panicked at 'attempted to instantiate uninhabited type `Uninhabited`' MaybeUninit::<Uninhabited>::array_assume_init([]); } } ``` *Previously reported in rust-lang#80600 (comment) This PR makes it ignore zero-length arrays. cc rust-lang#80908
Configuration menu - View commit details
-
Copy full SHA for b2f6c2a - Browse repository at this point
Copy the full SHA b2f6c2aView commit details