-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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 19 pull requests #82153
Rollup of 19 pull requests #82153
Commits on Feb 3, 2021
-
added a suggestion to create a
const
item if thefn
in the array ……repeat expression is a `const fn`
Configuration menu - View commit details
-
Copy full SHA for c2e849c - Browse repository at this point
Copy the full SHA c2e849cView commit details
Commits on Feb 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for bfd1ccf - Browse repository at this point
Copy the full SHA bfd1ccfView commit details
Commits on Feb 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 5fe8490 - Browse repository at this point
Copy the full SHA 5fe8490View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd9db23 - Browse repository at this point
Copy the full SHA dd9db23View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6dcb3d - Browse repository at this point
Copy the full SHA d6dcb3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a3e0795 - Browse repository at this point
Copy the full SHA a3e0795View commit details -
Fixed minor typo in catch_unwind docs
Changed 'a an exception' to 'an exception'
Victor Roest committedFeb 13, 2021 Configuration menu - View commit details
-
Copy full SHA for ee9709f - Browse repository at this point
Copy the full SHA ee9709fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 68405fd - Browse repository at this point
Copy the full SHA 68405fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for b6144e7 - Browse repository at this point
Copy the full SHA b6144e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a419e11 - Browse repository at this point
Copy the full SHA a419e11View commit details
Commits on Feb 14, 2021
-
Edit
rustc_arena::DropArena
docs- Add a "Safety" section, edit formatting for clarity - Add missing punctuation in code comments
Configuration menu - View commit details
-
Copy full SHA for 1c3841e - Browse repository at this point
Copy the full SHA 1c3841eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 64fe2c1 - Browse repository at this point
Copy the full SHA 64fe2c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bd7126 - Browse repository at this point
Copy the full SHA 7bd7126View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba72bc9 - Browse repository at this point
Copy the full SHA ba72bc9View commit details -
Remove unnecessary
Option
indefault_doc
Previously, there two different ways to encode the same info: `None` or `Some(&[])`. Now there is only one way, `&[]`.
Configuration menu - View commit details
-
Copy full SHA for c583860 - Browse repository at this point
Copy the full SHA c583860View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0038eae - Browse repository at this point
Copy the full SHA 0038eaeView commit details -
expand: Remove obsolete
ExpansionConfig::keep_macs
Maybe it was used before the introduction of placeholders, but now it has no effect.
Configuration menu - View commit details
-
Copy full SHA for 18c94b3 - Browse repository at this point
Copy the full SHA 18c94b3View commit details -
expand: Remove redundant calls to configure
Starting from #63468 cfg attributes on variants, fields, fn params etc. are processed together with other attributes (via `configure!`).
Configuration menu - View commit details
-
Copy full SHA for 6e11a8b - Browse repository at this point
Copy the full SHA 6e11a8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for dee5424 - Browse repository at this point
Copy the full SHA dee5424View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1aa9651 - Browse repository at this point
Copy the full SHA 1aa9651View commit details -
Update library/core/src/macros/mod.rs
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
Configuration menu - View commit details
-
Copy full SHA for 3d7fcff - Browse repository at this point
Copy the full SHA 3d7fcffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4613b37 - Browse repository at this point
Copy the full SHA 4613b37View commit details
Commits on Feb 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 63806cc - Browse repository at this point
Copy the full SHA 63806ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for ec77574 - Browse repository at this point
Copy the full SHA ec77574View commit details -
32-bit ARM: Emit
lr
instead ofr14
when specified as anasm!
ou……tput register. On 32-bit ARM platforms, the register `r14` has the alias `lr`. When used as an output register in `asm!`, rustc canonicalizes the name to `r14`. LLVM only knows the register by the name `lr`, and rejects it. This changes rustc's LLVM code generation to output `lr` instead.
Configuration menu - View commit details
-
Copy full SHA for fd21eb1 - Browse repository at this point
Copy the full SHA fd21eb1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6931027 - Browse repository at this point
Copy the full SHA 6931027View commit details -
Rollup merge of #81503 - henryboisdequin:fix-const-fn-arr-err-msg, r=…
…estebank Suggest to create a new `const` item if the `fn` in the array is a `const fn` Fixes #73734. If the `fn` in the array repeat expression is a `const fn`, suggest creating a new `const` item. On nightly, suggest creating an inline `const` block. This PR also removes the `suggest_const_in_array_repeat_expressions` as it is no longer necessary. Example: ```rust fn main() { // Should not compile but hint to create a new const item (stable) or an inline const block (nightly) let strings: [String; 5] = [String::new(); 5]; println!("{:?}", strings); } ``` Gives this error: ``` error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied --> $DIR/const-fn-in-vec.rs:3:32 | 2 | let strings: [String; 5] = [String::new(); 5]; | ^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `String` | = note: the `Copy` trait is required because the repeated element will be copied ``` With this change, this is the error message: ``` error[E0277]: the trait bound `String: Copy` is not satisfied --> $DIR/const-fn-in-vec.rs:3:32 | LL | let strings: [String; 5] = [String::new(); 5]; | ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `String` | = help: moving the function call to a new `const` item will resolve the error ```
Configuration menu - View commit details
-
Copy full SHA for f02f7b0 - Browse repository at this point
Copy the full SHA f02f7b0View commit details -
Rollup merge of #81897 - vandenheuvel:match_exhaustive_diagnostics_re…
…gression_test, r=Mark-Simulacrum Add match pattern diagnostics regression test Closes #72377 by adding a regression test. This test case fails on stable but now works on beta and nightly. It *should* have worked already for years, the crucial point whether it is mentioned that some uncovered patterns are not explicitly mentioned.
Configuration menu - View commit details
-
Copy full SHA for cd27820 - Browse repository at this point
Copy the full SHA cd27820View commit details -
Rollup merge of #81975 - Amanieu:seal2, r=m-ou-se
Seal the CommandExt, OsStrExt and OsStringExt traits A crater run (#81213 (comment)) has shown that this does not break any existing code. This also unblocks #77728. Based on #81213. r? ````@m-ou-se```` cc ````@lygstate````
Configuration menu - View commit details
-
Copy full SHA for bd0e8a5 - Browse repository at this point
Copy the full SHA bd0e8a5View commit details -
Rollup merge of #82009 - BoxyUwU:idontknooow, r=varkor
const_generics: Dont evaluate array length const when handling errors Fixes #79518 Fixes #78246 cc ````@lcnr```` This was ICE'ing because we dont pass in the correct ``ParamEnv`` which meant that there was no ``Self: Foo`` predicate to make ``Self::Assoc`` well formed which caused an ICE when trying to normalize ``Self::Assoc`` in the mir interpreter r? ````@varkor````
Configuration menu - View commit details
-
Copy full SHA for 6fde3c5 - Browse repository at this point
Copy the full SHA 6fde3c5View commit details -
Rollup merge of #82060 - taiki-e:typo, r=m-ou-se
Fix typos in BTreeSet::{first, last} docs map -> set
Configuration menu - View commit details
-
Copy full SHA for c7ebc59 - Browse repository at this point
Copy the full SHA c7ebc59View commit details -
Rollup merge of #82061 - RalfJung:ctfe-read-pointer-as-bytes, r=oli-obk
CTFE validation: catch ReadPointerAsBytes and better error r? ``@oli-obk`` Fixes #79690 Cc rust-lang/miri#1706
Configuration menu - View commit details
-
Copy full SHA for 5e8435a - Browse repository at this point
Copy the full SHA 5e8435aView commit details -
Rollup merge of #82063 - NULLx76:fix-minor-typo, r=jonas-schievink
Fixed minor typo in catch_unwind docs Changed "a an exception" to "an exception" inside of the `std::panic::catch_unwind` docs.
Configuration menu - View commit details
-
Copy full SHA for 7842b5d - Browse repository at this point
Copy the full SHA 7842b5dView commit details -
Rollup merge of #82067 - BoxyUwU:hahaicantthinkofabadpun, r=oli-obk
const_generics: Fix incorrect ty::ParamEnv::empty() usage Fixes #80561 Not sure if I should keep the `debug!(..)`s or not but its the second time I've needed them so they sure seem useful lol cc ``@lcnr`` r? ``@oli-obk``
Configuration menu - View commit details
-
Copy full SHA for 665bf9e - Browse repository at this point
Copy the full SHA 665bf9eView commit details -
Rollup merge of #82077 - pierwill:edit-droparena, r=lcnr
Edit `rustc_arena::DropArena` docs - Add a "Safety" section, edit formatting for clarity - Add missing punctuation in code comments
Configuration menu - View commit details
-
Copy full SHA for 493c6c9 - Browse repository at this point
Copy the full SHA 493c6c9View commit details -
Rollup merge of #82096 - TaKO8Ki:fix-typo, r=GuillaumeGomez
Fix a typo This pull request fixes a typo.
Configuration menu - View commit details
-
Copy full SHA for db5ae6a - Browse repository at this point
Copy the full SHA db5ae6aView commit details -
Rollup merge of #82106 - jyn514:cleanup-bootstrap, r=Mark-Simulacrum
Remove unnecessary `Option` in `default_doc` Previously, there were two different ways to encode the same info: `None` or `Some(&[])`. Now there is only one way, `&[]`.
Configuration menu - View commit details
-
Copy full SHA for 40d85a5 - Browse repository at this point
Copy the full SHA 40d85a5View commit details -
Rollup merge of #82107 - petrochenkov:minexpclean, r=Aaron1011
expand: Some cleanup See individual commits for details. r? ``@Aaron1011``
Configuration menu - View commit details
-
Copy full SHA for 285ea2f - Browse repository at this point
Copy the full SHA 285ea2fView commit details -
Rollup merge of #82118 - lukaslueg:env_decl, r=m-ou-se
Add missing env!-decl variant Resolves #82117
Configuration menu - View commit details
-
Copy full SHA for b0bd056 - Browse repository at this point
Copy the full SHA b0bd056View commit details -
Rollup merge of #82119 - m-ou-se:typo, r=dtolnay
Fix typo in link to CreateSymbolicLinkW documentation.
Configuration menu - View commit details
-
Copy full SHA for 2030a54 - Browse repository at this point
Copy the full SHA 2030a54View commit details -
Rollup merge of #82120 - sfackler:arguments-as-str, r=dtolnay
Stabilize Arguments::as_str Closes #74442
Configuration menu - View commit details
-
Copy full SHA for c87ef21 - Browse repository at this point
Copy the full SHA c87ef21View commit details -
Rollup merge of #82129 - est31:master, r=jyn514
Remove redundant bool_to_option feature gate
Configuration menu - View commit details
-
Copy full SHA for 1c75dfb - Browse repository at this point
Copy the full SHA 1c75dfbView commit details -
Rollup merge of #82133 - ehuss:extern-prelude-link, r=jyn514
Update link for extern prelude. There was some reorganization in the reference as part of rust-lang/reference#937.
Configuration menu - View commit details
-
Copy full SHA for 1ee4a7b - Browse repository at this point
Copy the full SHA 1ee4a7bView commit details -
Rollup merge of #82141 - jrvanwhy:issue-82052, r=sanxiyn
32-bit ARM: Emit `lr` instead of `r14` when specified as an `asm!` output register. On 32-bit ARM platforms, the register `r14` has the alias `lr`. When used as an output register in `asm!`, rustc canonicalizes the name to `r14`. LLVM only knows the register by the name `lr`, and rejects it. This changes rustc's LLVM code generation to output `lr` instead. closes #82052 r? ``@nagisa``
Configuration menu - View commit details
-
Copy full SHA for 1a2675f - Browse repository at this point
Copy the full SHA 1a2675fView commit details -
Rollup merge of #82147 - lnicola:rust-analyzer-2021-02-15, r=jonas-sc…
…hievink ⬆️ rust-analyzer
Configuration menu - View commit details
-
Copy full SHA for a105280 - Browse repository at this point
Copy the full SHA a105280View commit details