-
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 10 pull requests #82263
Rollup of 10 pull requests #82263
Commits on Feb 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for dfa581f - Browse repository at this point
Copy the full SHA dfa581fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bbd3e0 - Browse repository at this point
Copy the full SHA 9bbd3e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0bf1d73 - Browse repository at this point
Copy the full SHA 0bf1d73View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9526c0c - Browse repository at this point
Copy the full SHA 9526c0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 79f6f11 - Browse repository at this point
Copy the full SHA 79f6f11View commit details -
Make ProjectionTy::trait_ref truncate substs again
Also make sure that type arguments of associated types are printed in some error messages.
Configuration menu - View commit details
-
Copy full SHA for dfee89f - Browse repository at this point
Copy the full SHA dfee89fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d785c8c - Browse repository at this point
Copy the full SHA d785c8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for eeb82e4 - Browse repository at this point
Copy the full SHA eeb82e4View commit details
Commits on Feb 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 7e368e5 - Browse repository at this point
Copy the full SHA 7e368e5View commit details
Commits on Feb 17, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 0f04875 - Browse repository at this point
Copy the full SHA 0f04875View commit details -
[libtest] Run the test synchronously when hitting thread limit
hyd-dev committedFeb 17, 2021 Configuration menu - View commit details
-
Copy full SHA for 43aed74 - Browse repository at this point
Copy the full SHA 43aed74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a66685 - Browse repository at this point
Copy the full SHA 2a66685View commit details -
In some limited cases, suggest
where
bounds for non-type paramsPartially address rust-lang#81971.
Configuration menu - View commit details
-
Copy full SHA for 32c97da - Browse repository at this point
Copy the full SHA 32c97daView commit details -
Configuration menu - View commit details
-
Copy full SHA for ec50a20 - Browse repository at this point
Copy the full SHA ec50a20View commit details
Commits on Feb 18, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 5ae392f - Browse repository at this point
Copy the full SHA 5ae392fView commit details -
Update compiler/rustc_error_codes/src/error_codes/E0549.md
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5112cf0 - Browse repository at this point
Copy the full SHA 5112cf0View commit details -
Update compiler/rustc_error_codes/src/error_codes/E0549.md
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0e01c41 - Browse repository at this point
Copy the full SHA 0e01c41View commit details -
Update compiler/rustc_error_codes/src/error_codes/E0549.md
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3c4fe1e - Browse repository at this point
Copy the full SHA 3c4fe1eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6165d1c - Browse repository at this point
Copy the full SHA 6165d1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a5c568 - Browse repository at this point
Copy the full SHA 8a5c568View commit details -
Rollup merge of rust-lang#81546 - hyd-dev:libtest-run-out-of-threads,…
… r=Mark-Simulacrum [libtest] Run the test synchronously when hitting thread limit libtest currently panics if it hits the thread limit. This often results in spurious test failures (<code>thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }'</code> ... `error: test failed, to rerun pass '--lib'`). This PR makes it continue to run the test synchronously if it runs out of threads. Closes rust-lang#78165. ``@rustbot`` label: A-libtest T-libs
Configuration menu - View commit details
-
Copy full SHA for 55ab2e3 - Browse repository at this point
Copy the full SHA 55ab2e3View commit details -
Rollup merge of rust-lang#82066 - matthewjasper:trait-ref-fix, r=jack…
…h726 Ensure valid TraitRefs are created for GATs This fixes `ProjectionTy::trait_ref` to use the correct substs. Places that need all of the substs have been updated to not use `trait_ref`. r? ````@jackh726````
Configuration menu - View commit details
-
Copy full SHA for 66211f6 - Browse repository at this point
Copy the full SHA 66211f6View commit details -
Rollup merge of rust-lang#82112 - BoxyUwU:tumbleweed, r=varkor
const_generics: Dont evaluate array length const when handling yet another error Same ICE as rust-lang#82009 except triggered by a different error. cc ``@lcnr`` r? ``@varkor``
Configuration menu - View commit details
-
Copy full SHA for 928819a - Browse repository at this point
Copy the full SHA 928819aView commit details -
Rollup merge of rust-lang#82194 - estebank:arbitrary-bounds-suggestio…
…n, r=petrochenkov In some limited cases, suggest `where` bounds for non-type params Partially address rust-lang#81971.
Configuration menu - View commit details
-
Copy full SHA for f01b339 - Browse repository at this point
Copy the full SHA f01b339View commit details -
Rollup merge of rust-lang#82215 - TaKO8Ki:replace-if-let-while-let, r…
…=varkor Replace if-let and while-let with `if let` and `while let` This pull request replaces if-let and while-let with `if let` and `while let`. closes rust-lang#82205
Configuration menu - View commit details
-
Copy full SHA for b3d3251 - Browse repository at this point
Copy the full SHA b3d3251View commit details -
Rollup merge of rust-lang#82218 - rylev:copy-pdbs, r=Mark-Simulacrum
Make sure pdbs are copied along with exe and dlls when bootstrapping This makes it easier to find the pdbs when wanting to debug the compiler on Windows.
Configuration menu - View commit details
-
Copy full SHA for 01104b5 - Browse repository at this point
Copy the full SHA 01104b5View commit details -
Rollup merge of rust-lang#82236 - matthiaskrgr:useless_conv, r=jyn514
avoid converting types into themselves (clippy::useless_conversion)
Configuration menu - View commit details
-
Copy full SHA for 04df75a - Browse repository at this point
Copy the full SHA 04df75aView commit details -
Rollup merge of rust-lang#82246 - jesusprubio:add-long-explanation-e0…
…549, r=GuillaumeGomez Add long explanation for E0549 Helps with rust-lang#61137
Configuration menu - View commit details
-
Copy full SHA for 5ca94cd - Browse repository at this point
Copy the full SHA 5ca94cdView commit details -
Rollup merge of rust-lang#82248 - nhwn:optimize-counting-digits, r=va…
…rkor Optimize counting digits in line numbers during error reporting Replaces `.to_string().len()` with simple loop and integer division, which avoids an unnecessary allocation. Although I couldn't figure out how to directly profile `rustc`'s error reporting, I ran a microbenchmark on my machine (2.9 GHz Dual-Core Intel Core i5) on the two strategies for `0..100_000`, and the results seem promising: ``` test to_string_len ... bench: 12,124,792 ns/iter (+/- 700,652) test while_loop ... bench: 30,333 ns/iter (+/- 562) ``` The x86_64 disassembly reduces integer division to a multiplication + shift, so I don't think there's any problems with using integer division. For more (micro)optimization, it would be nice if we could avoid the initial check to see if the line number is nonzero, but I don't think `self.get_max_line_num(span, children)` _guarantees_ a nonzero line number.
Configuration menu - View commit details
-
Copy full SHA for 555db2d - Browse repository at this point
Copy the full SHA 555db2dView commit details -
Rollup merge of rust-lang#82256 - eddyb:time-passes-stderr, r=varkor
Print -Ztime-passes (and misc stats/logs) on stderr, not stdout. I've tried not to change anything that looked similar to `rustc --print`, where people might use automation, and/or any "bulk" prints, such as dumping an entire Graphviz (`dot`) graph on stdout. The reason I want `-Ztime-passes` to be on stderr like debug logging is I can get a complete (and correctly interleaved) view just by looking at stderr, which is merely a convenience when running `rustc`/Cargo directly, but even more important when it's nested in a build script, as Cargo will split the build script output into stdout (named `output`) and `stderr`.
Configuration menu - View commit details
-
Copy full SHA for efdcb43 - Browse repository at this point
Copy the full SHA efdcb43View commit details