-
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 #82460
Rollup of 14 pull requests #82460
Commits on Feb 19, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 3ed189e - Browse repository at this point
Copy the full SHA 3ed189eView commit details -
Configuration menu - View commit details
-
Copy full SHA for dd3772e - Browse repository at this point
Copy the full SHA dd3772eView commit details
Commits on Feb 20, 2021
-
Replace normalize.css 3.0.0 with unminified version.
This is in preparation to upgrade to 8.0.1, so the next commit can contain more meaningful diffs.
Configuration menu - View commit details
-
Copy full SHA for 7ad4b7a - Browse repository at this point
Copy the full SHA 7ad4b7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bbd482 - Browse repository at this point
Copy the full SHA 9bbd482View commit details -
This bypasses tidy's complaints about tab indent. Also, this lets us remove comments while keeping the MIT license comment.
Configuration menu - View commit details
-
Copy full SHA for 7acb105 - Browse repository at this point
Copy the full SHA 7acb105View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10f2342 - Browse repository at this point
Copy the full SHA 10f2342View commit details
Commits on Feb 21, 2021
-
Configuration menu - View commit details
-
Copy full SHA for fece59b - Browse repository at this point
Copy the full SHA fece59bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 17176cc - Browse repository at this point
Copy the full SHA 17176ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce1a521 - Browse repository at this point
Copy the full SHA ce1a521View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9449a3 - Browse repository at this point
Copy the full SHA b9449a3View commit details -
Use optional values for inlining thresholds
Turn inlining threshold into optional values to make it possible to configure different defaults depending on the current mir-opt-level.
Configuration menu - View commit details
-
Copy full SHA for 5c546be - Browse repository at this point
Copy the full SHA 5c546beView commit details
Commits on Feb 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 5f7d663 - Browse repository at this point
Copy the full SHA 5f7d663View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75d1e30 - Browse repository at this point
Copy the full SHA 75d1e30View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24c23f5 - Browse repository at this point
Copy the full SHA 24c23f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c02d210 - Browse repository at this point
Copy the full SHA c02d210View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc9d578 - Browse repository at this point
Copy the full SHA fc9d578View commit details -
Add a
size()
function to WASI'sMetadataExt
.WASI's `filestat` type includes a size field, so expose it in `MetadataExt` via a `size()` function, similar to the corresponding Unix function.
Configuration menu - View commit details
-
Copy full SHA for e8dcc02 - Browse repository at this point
Copy the full SHA e8dcc02View commit details
Commits on Feb 23, 2021
-
Improve error msgs when found type is deref of expected
This improves help messages in two cases: - When expected type is `T` and found type is `&T`, we now look through blocks and suggest dereferencing the expression of the block, rather than the whole block. - In the above case, if the expression is an `&`, we not suggest removing the `&` instead of adding `*`. Both of these are demonstrated in the regression test. Before this patch the first error in the test would be: error[E0308]: `if` and `else` have incompatible types --> test.rs:8:9 | 5 | / if true { 6 | | a | | - expected because of this 7 | | } else { 8 | | b | | ^ expected `usize`, found `&usize` 9 | | }; | |_____- `if` and `else` have incompatible types | help: consider dereferencing the borrow | 7 | } else *{ 8 | b 9 | }; | Now: error[E0308]: `if` and `else` have incompatible types --> test.rs:8:9 | 5 | / if true { 6 | | a | | - expected because of this 7 | | } else { 8 | | b | | ^ | | | | | expected `usize`, found `&usize` | | help: consider dereferencing the borrow: `*b` 9 | | }; | |_____- `if` and `else` have incompatible types The second error: error[E0308]: `if` and `else` have incompatible types --> test.rs:14:9 | 11 | / if true { 12 | | 1 | | - expected because of this 13 | | } else { 14 | | &1 | | ^^ expected integer, found `&{integer}` 15 | | }; | |_____- `if` and `else` have incompatible types | help: consider dereferencing the borrow | 13 | } else *{ 14 | &1 15 | }; | now: error[E0308]: `if` and `else` have incompatible types --> test.rs:14:9 | 11 | / if true { 12 | | 1 | | - expected because of this 13 | | } else { 14 | | &1 | | ^- | | || | | |help: consider removing the `&`: `1` | | expected integer, found `&{integer}` 15 | | }; | |_____- `if` and `else` have incompatible types Fixes rust-lang#82361
Configuration menu - View commit details
-
Copy full SHA for fa74d48 - Browse repository at this point
Copy the full SHA fa74d48View commit details -
Enable API documentation for
std::os::wasi
.This adds API documentation support for `std::os::wasi` modeled after how `std::os::unix` works, so that WASI can be documented [here] along with the other platforms. [here]: https://doc.rust-lang.org/stable/std/os/index.html Two changes of particular interest: - This changes the `AsRawFd` for `io::Stdin` for WASI to return `libc::STDIN_FILENO` instead of `sys::stdio::Stdin.as_raw_fd()` (and similar for `Stdout` and `Stderr`), which matches how the `unix` version works. `STDIN_FILENO` etc. may not always be explicitly reserved at the WASI level, but as long as we have Rust's `std` and `libc`, I think it's reasonable to guarantee that we'll always use `libc::STDIN_FILENO` for stdin. - This duplicates the `osstr2str` utility function, rather than trying to share it across all the configurations that need it.
Configuration menu - View commit details
-
Copy full SHA for 132ec26 - Browse repository at this point
Copy the full SHA 132ec26View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6eb836 - Browse repository at this point
Copy the full SHA a6eb836View commit details -
Configuration menu - View commit details
-
Copy full SHA for de6f1b8 - Browse repository at this point
Copy the full SHA de6f1b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for df78eea - Browse repository at this point
Copy the full SHA df78eeaView commit details
Commits on Feb 24, 2021
-
Rollup merge of rust-lang#80534 - LeSeulArtichaut:doc-include, r=jyn514
Use #[doc = include_str!()] in std cc rust-lang#78835 (comment) r? ``@jyn514``
Configuration menu - View commit details
-
Copy full SHA for 408ccd7 - Browse repository at this point
Copy the full SHA 408ccd7View commit details -
Rollup merge of rust-lang#82090 - notriddle:consider-using-a-semicolo…
…n-here, r=estebank Do not consider using a semicolon inside of a different-crate macro Fixes rust-lang#81943
Configuration menu - View commit details
-
Copy full SHA for d3e3d58 - Browse repository at this point
Copy the full SHA d3e3d58View commit details -
Rollup merge of rust-lang#82269 - LeSeulArtichaut:cleanup-ppmode, r=s…
…pastorino Cleanup `PpMode` and friends This PR: - Separates `PpSourceMode` and `PpHirMode` to remove invalid states - Renames the variant to remove the redundant `Ppm` prefix - Adds basic documentation for the different pretty-print modes - Cleanups some code to make it more idiomatic Not sure if this is actually useful, but it looks cleaner to me.
Configuration menu - View commit details
-
Copy full SHA for 1975088 - Browse repository at this point
Copy the full SHA 1975088View commit details -
Rollup merge of rust-lang#82313 - jsha:update-normalize-css, r=Guilla…
…umeGomez Update normalize.css to 8.0.1 From From https://github.com/necolas/normalize.css/releases/tag/8.0.1. The old version was 3.0.0, from 2014. The new version is from 2018. I noticed when looking at frontend performance for rustdoc that this file was out of date. The URL in the 3.0.0 license header now resolves to an incorrect destination. And generally it seems good to be up-to-date. Before-and-after images, plus diff, under details. TL;DR: Nothing changes except a slight adjustment to line height. <details> ![with-normalize-8 0 1](https://user-images.githubusercontent.com/220205/108581849-bd5c8800-72e4-11eb-9150-78c8d67ca37a.png) ![with-normalize-3 0 0](https://user-images.githubusercontent.com/220205/108581848-bcc3f180-72e4-11eb-8b45-0cd1415a51e5.png) ![diff](https://user-images.githubusercontent.com/220205/108581890-dfeea100-72e4-11eb-93c5-6284492f54a9.png) </details>
Configuration menu - View commit details
-
Copy full SHA for b98f608 - Browse repository at this point
Copy the full SHA b98f608View commit details -
Rollup merge of rust-lang#82321 - bugadani:ast3, r=varkor
AST: Remove some unnecessary boxes
Configuration menu - View commit details
-
Copy full SHA for 2ffc621 - Browse repository at this point
Copy the full SHA 2ffc621View commit details -
Rollup merge of rust-lang#82364 - osa1:issue82361, r=estebank
Improve error msgs when found type is deref of expected This improves help messages in two cases: - When expected type is `T` and found type is `&T`, we now look through blocks and suggest dereferencing the expression of the block, rather than the whole block. - In the above case, if the expression is an `&`, we not suggest removing the `&` instead of adding `*`. Both of these are demonstrated in the regression test. Before this patch the first error in the test would be: error[E0308]: `if` and `else` have incompatible types --> test.rs:8:9 | 5 | / if true { 6 | | a | | - expected because of this 7 | | } else { 8 | | b | | ^ expected `usize`, found `&usize` 9 | | }; | |_____- `if` and `else` have incompatible types | help: consider dereferencing the borrow | 7 | } else *{ 8 | b 9 | }; | Now: error[E0308]: `if` and `else` have incompatible types --> test.rs:8:9 | 5 | / if true { 6 | | a | | - expected because of this 7 | | } else { 8 | | b | | ^ | | | | | expected `usize`, found `&usize` | | help: consider dereferencing the borrow: `*b` 9 | | }; | |_____- `if` and `else` have incompatible types The second error: error[E0308]: `if` and `else` have incompatible types --> test.rs:14:9 | 11 | / if true { 12 | | 1 | | - expected because of this 13 | | } else { 14 | | &1 | | ^^ expected integer, found `&{integer}` 15 | | }; | |_____- `if` and `else` have incompatible types | help: consider dereferencing the borrow | 13 | } else *{ 14 | &1 15 | }; | now: error[E0308]: `if` and `else` have incompatible types --> test.rs:14:9 | 11 | / if true { 12 | | 1 | | - expected because of this 13 | | } else { 14 | | &1 | | ^- | | || | | |help: consider removing the `&`: `1` | | expected integer, found `&{integer}` 15 | | }; | |_____- `if` and `else` have incompatible types Fixes rust-lang#82361 --- r? ``@estebank``
Configuration menu - View commit details
-
Copy full SHA for b0458bc - Browse repository at this point
Copy the full SHA b0458bcView commit details -
Rollup merge of rust-lang#82370 - 0yoyoyo:update-issue-81650-point-an…
…onymous-lifetime, r=estebank Improve anonymous lifetime note to indicate the target span Improvement for rust-lang#81650 Cc rust-lang#81995 Message after this improvement: (Improve note in the middle) ``` error[E0311]: the parameter type `T` may not live long enough --> src/main.rs:25:11 | 24 | fn play_with<T: Animal + Send>(scope: &Scope, animal: T) { | -- help: consider adding an explicit lifetime bound...: `T: 'a +` 25 | scope.spawn(move |_| { | ^^^^^ | note: the parameter type `T` must be valid for the anonymous lifetime defined on the function body at 24:40... --> src/main.rs:24:40 | 24 | fn play_with<T: Animal + Send>(scope: &Scope, animal: T) { | ^^^^^ note: ...so that the type `[closure@src/main.rs:25:17: 27:6]` will meet its required lifetime bounds --> src/main.rs:25:11 | 25 | scope.spawn(move |_| { | ^^^^^ ``` r? ``@estebank``
Configuration menu - View commit details
-
Copy full SHA for 5fdfc09 - Browse repository at this point
Copy the full SHA 5fdfc09View commit details -
Rollup merge of rust-lang#82376 - tmiasko:inline-options, r=oli-obk
Add option to enable MIR inlining independently of mir-opt-level Add `-Zinline-mir` option that enables MIR inlining independently of the current MIR opt level. The primary use-case is enabling MIR inlining on the default MIR opt level. Turn inlining thresholds into optional values to make it possible to configure different defaults depending on the current mir-opt-level (although thresholds are yet to be used in such a manner).
Configuration menu - View commit details
-
Copy full SHA for 936a488 - Browse repository at this point
Copy the full SHA 936a488View commit details -
Rollup merge of rust-lang#82394 - lnicola:rust-analyzer-2021-02-22, r…
…=jonas-schievink ⬆️ rust-analyzer
Configuration menu - View commit details
-
Copy full SHA for 5878913 - Browse repository at this point
Copy the full SHA 5878913View commit details -
Rollup merge of rust-lang#82399 - petrochenkov:modin2, r=Aaron1011
expand: Resolve and expand inner attributes on out-of-line modules Fixes rust-lang#81661 r? ``@Aaron1011``
Configuration menu - View commit details
-
Copy full SHA for cc0c8f1 - Browse repository at this point
Copy the full SHA cc0c8f1View commit details -
Rollup merge of rust-lang#82404 - nagisa:nagisa/hexagon-enums-llvm-co…
…mps, r=petrochenkov Test hexagon-enum only when llvm target is present See rust-lang#82379 (comment) r? ``@petrochenkov`` ``@bors`` rollup
Configuration menu - View commit details
-
Copy full SHA for fb19700 - Browse repository at this point
Copy the full SHA fb19700View commit details -
Rollup merge of rust-lang#82419 - petrochenkov:inertord, r=Aaron1011
expand: Preserve order of inert attributes during expansion Fixes rust-lang#67839 Fixes rust-lang#81871 r? ``@Aaron1011``
Configuration menu - View commit details
-
Copy full SHA for 4f3203f - Browse repository at this point
Copy the full SHA 4f3203fView commit details -
Rollup merge of rust-lang#82420 - sunfishcode:wasi-docs, r=alexcrichton
Enable API documentation for `std::os::wasi`. This adds API documentation support for `std::os::wasi` modeled after how `std::os::unix` works, so that WASI can be documented [here] along with the other platforms. [here]: https://doc.rust-lang.org/stable/std/os/index.html Two changes of particular interest: - This changes the `AsRawFd` for `io::Stdin` for WASI to return `libc::STDIN_FILENO` instead of `sys::stdio::Stdin.as_raw_fd()` (and similar for `Stdout` and `Stderr`), which matches how the `unix` version works. `STDIN_FILENO` etc. may not always be explicitly reserved at the WASI level, but as long as we have Rust's `std` and `libc`, I think it's reasonable to guarantee that we'll always use `libc::STDIN_FILENO` for stdin. - This duplicates the `osstr2str` utility function, rather than trying to share it across all the configurations that need it. r? ``@alexcrichton``
Configuration menu - View commit details
-
Copy full SHA for 2d80e0b - Browse repository at this point
Copy the full SHA 2d80e0bView commit details -
Rollup merge of rust-lang#82421 - sunfishcode:wasi-metadata-size, r=a…
…lexcrichton Add a `size()` function to WASI's `MetadataExt`. WASI's `filestat` type includes a size field, so expose it in `MetadataExt` via a `size()` function, similar to the corresponding Unix function. r? ``@alexcrichton``
Configuration menu - View commit details
-
Copy full SHA for ec0e4c2 - Browse repository at this point
Copy the full SHA ec0e4c2View commit details