est31
60e82aef64
rustc_expand: remove huge error imports
2023-02-05 03:47:22 +01:00
Maria José Solano
3674502a98
Unify language config markers with server
2023-02-04 17:46:11 -08:00
Markus Everling
1e114a88bd
Add slice_ranges safety comment
2023-02-05 02:16:43 +01:00
Scott McMurray
bb77860d9c
Add another autovectorization codegen test using array zip-map
2023-02-04 16:44:53 -08:00
Scott McMurray
5bc328fdef
Allow canonicalizing the array::map loop in trusted cases
2023-02-04 16:44:51 -08:00
Scott McMurray
52df0558ea
Stop forcing array::map through an unnecessary Result
2023-02-04 16:41:35 -08:00
Scott McMurray
5a7342c3dd
Stop using into_iter in array::map
2023-02-04 16:41:35 -08:00
Camille GILLOT
5c1cb5bbc6
Turn projections into copies in CopyProp.
2023-02-04 23:33:33 +00:00
Lenko Donchev
d9f60052d2
Recover from default value for a lifetime in generic parameters.
2023-02-04 17:04:09 -06:00
Lukas Markeffsky
0d6fdefce0
update ICU4X to 1.1.0
2023-02-04 22:28:59 +01:00
bors
50d3ba5bcb
Auto merge of #107672 - matthiaskrgr:rollup-7e6dbuk, r=matthiaskrgr
...
Rollup of 3 pull requests
Successful merges:
- #107116 (consolidate bootstrap docs)
- #107646 (Provide structured suggestion for binding needing type on E0594)
- #107661 (Remove Esteban from review queues for a while)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2023-02-04 21:07:10 +00:00
Kartavya Vashishtha
63a57ee1c3
retain applicability
2023-02-05 01:50:44 +05:30
Kartavya Vashishtha
46edafe8c1
blessed stderr output
2023-02-05 01:18:29 +05:30
Kartavya Vashishtha
1fb42daf11
use span_suggestions to suggest both intents
2023-02-05 01:05:31 +05:30
Matthias Krüger
47fc625a92
Rollup merge of #107661 - oli-obk:breathing_room, r=oli-obk
...
Remove Esteban from review queues for a while
r? `@estebank`
2023-02-04 20:29:07 +01:00
Matthias Krüger
d381eca5dc
Rollup merge of #107646 - estebank:specific-span, r=compiler-errors
...
Provide structured suggestion for binding needing type on E0594
Partially address #45405 .
2023-02-04 20:29:06 +01:00
Matthias Krüger
3666fa0800
Rollup merge of #107116 - ozkanonur:consolidate-bootstrap-docs, r=jyn514
...
consolidate bootstrap docs
With this diff, I tried to consolidate bootstrap documentations and remove the duplicated informations.
Coupled with https://github.com/rust-lang/rustc-dev-guide/pull/1563
Resolves #90686
Signed-off-by: ozkanonur <work@onurozkan.dev >
2023-02-04 20:29:06 +01:00
Alex Macleod
5546c82051
Negate suggestions when needed in bool_assert_comparison
2023-02-04 19:28:11 +00:00
xFrednet
c642cfe3bf
Make [clippy::dump] support trait items
2023-02-04 19:34:31 +01:00
bors
3de7d7fb22
Auto merge of #107549 - Zoxc:rustc-shared, r=jyn514
...
Move code in `rustc_driver` out to a new `rustc_driver_impl` crate to allow pipelining
That adds a `rustc_shared` library which contains all the rustc library crates in a single dylib. It takes over this role from `rustc_driver`. This is done so that `rustc_driver` can be compiled in parallel with other crates. `rustc_shared` is intentionally left empty so it only does linking.
An alternative could be to move the code currently in `rustc_driver` into a new crate to avoid changing the name of the distributed library.
2023-02-04 18:11:02 +00:00
Roland Strasser
71a147df1f
rustdoc: trait bound formatting
...
rustdoc: fix item-spacer
rustdoc: use proper comment style
rustdoc: change formatting where clauses for traits
rustdoc: remove semicolon from provided methods
update provided methods formatting
2023-02-04 19:10:04 +01:00
CastilloDel
cf0279991d
Fix suggestions rendering when the span is multiline
2023-02-04 19:04:04 +01:00
ozkanonur
6558326e7b
consolidate bootstrap docs
...
Signed-off-by: ozkanonur <work@onurozkan.dev >
2023-02-04 20:16:57 +03:00
Michael Howell
b1c4911b2a
rustdoc: combine duplicate rules in ayu CSS
2023-02-04 10:14:51 -07:00
Camille GILLOT
635ff8e2a8
Support parallel compiler.
2023-02-04 15:56:50 +00:00
Camille GILLOT
128f2224af
Remove OnHit callback from query caches.
...
This is not useful now that query results are `Copy`.
2023-02-04 15:21:21 +00:00
bors
9dee4e4c42
Auto merge of #107267 - cjgillot:keep-aggregate, r=oli-obk
...
Do not deaggregate MIR
This turns out to simplify a lot of things.
I haven't checked the consequences for miri yet.
cc `@JakobDegen`
r? `@oli-obk`
2023-02-04 15:17:32 +00:00
bors
6c8d4073a4
Auto merge of #2776 - rust-lang:dependabot/cargo/test_dependencies/tokio-1.24.2, r=RalfJung
...
Bump tokio from 1.23.1 to 1.24.2 in /test_dependencies
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.23.1 to 1.24.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/tokio-rs/tokio/releases ">tokio's releases</a>.</em></p>
<blockquote>
<h2>Tokio v1.24.1</h2>
<p>This release fixes a compilation failure on targets without <code>AtomicU64</code> when using rustc older than 1.63. (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/5356 ">#5356</a>)</p>
<p><a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/5356 ">#5356</a>: <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/pull/5356 ">tokio-rs/tokio#5356</a></p>
<h2>Tokio v1.24.0</h2>
<p>The highlight of this release is the reduction of lock contention for all I/O operations (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/5300 ">#5300</a>). We have received reports of up to a 20% improvement in CPU utilization and increased throughput for real-world I/O heavy applications.</p>
<h3>Fixed</h3>
<ul>
<li>rt: improve native <code>AtomicU64</code> support detection (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/5284 ">#5284</a>)</li>
</ul>
<h3>Added</h3>
<ul>
<li>rt: add configuration option for max number of I/O events polled from the OS
per tick (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/5186 ">#5186</a>)</li>
<li>rt: add an environment variable for configuring the default number of worker
threads per runtime instance (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/4250 ">#4250</a>)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>sync: reduce MPSC channel stack usage (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/5294 ">#5294</a>)</li>
<li>io: reduce lock contention in I/O operations (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/5300 ">#5300</a>)</li>
<li>fs: speed up <code>read_dir()</code> by chunking operations (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/5309 ">#5309</a>)</li>
<li>rt: use internal <code>ThreadId</code> implementation (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/5329 ">#5329</a>)</li>
<li>test: don't auto-advance time when a <code>spawn_blocking</code> task is running (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/5115 ">#5115</a>)</li>
</ul>
<p><a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/5186 ">#5186</a>: <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/pull/5186 ">tokio-rs/tokio#5186</a>
<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/5294 ">#5294</a>: <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/pull/5294 ">tokio-rs/tokio#5294</a>
<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/5284 ">#5284</a>: <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/pull/5284 ">tokio-rs/tokio#5284</a>
<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/4250 ">#4250</a>: <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/pull/4250 ">tokio-rs/tokio#4250</a>
<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/5300 ">#5300</a>: <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/pull/5300 ">tokio-rs/tokio#5300</a>
<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/5329 ">#5329</a>: <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/pull/5329 ">tokio-rs/tokio#5329</a>
<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/5115 ">#5115</a>: <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/pull/5115 ">tokio-rs/tokio#5115</a>
<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/5309 ">#5309</a>: <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/pull/5309 ">tokio-rs/tokio#5309</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/tokio-rs/tokio/commits ">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` use these labels` will set the current labels as the default for future PRs for this repo and language
- ``@dependabot` use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- ``@dependabot` use these assignees` will set the current assignees as the default for future PRs for this repo and language
- ``@dependabot` use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/rust-lang/miri/network/alerts ).
</details>
2023-02-04 14:54:29 +00:00
Matthias Krüger
ed58c01959
don't point at nonexisting code beyond EOF when warning about unused delims
...
Previously we would show this:
```
warning: unnecessary braces around block return value
--> /tmp/bad.rs:1:8
|
1 | fn a(){{{
| ^ ^
|
= note: `#[warn(unused_braces)]` on by default
help: remove these braces
|
1 - fn a(){{{
1 + fn a(){{
|
```
which is now hidden in this case.
We would create a span spanning between the pair of redundant {}s but there is only EOF instead of the `}` so we would previously point at nothing.
This would cause the debug assertion ice to trigger.
I would have loved to just only point at the second delim and say "you can remove that" but I'm not sure how to do that without refactoring the entire diagnostic which seems tricky. :(
But given that this does not seem to regress any other tests we have, I think this edge-casey enough be acceptable.
Fixes https://github.com/rust-lang/rust/issues/107423
r? @compiler-errors
2023-02-04 13:36:14 +01:00
Oli Scherer
d78fb1a015
Remove Esteban from review queues for a while
2023-02-04 11:48:50 +00:00
bjorn3
761a91ade8
Build CI dist artifacts without debug assertions
...
This significantly improves performance. For example for the
simple-raytracer benchmark it goes from a 13% improvement over LLVM to
39% improvement over LLVM.
2023-02-04 11:31:17 +00:00
bors
4aa6afa7f8
Auto merge of #107618 - chriswailes:linker-arg, r=albertlarsan68
...
Add a linker argument back to boostrap.py
In https://github.com/rust-lang/rust/pull/101783 I accidentally removed a load-bearing linker argument. This PR adds it back in.
r? jyn514
2023-02-04 11:22:31 +00:00
bors
91eb6f9acf
Auto merge of #107591 - krasimirgg:llvm-17-pgoopts, r=cuviper
...
llvm-wrapper: adapt for LLVM API changes
Adapts the wrapper for 516e301752 , where the constructor of PGOOptions gained a new FileSystem argument. Adapted to use the real file system, similarly to the changes inside of LLVM:
516e301752 (diff-f409934ba27ad86494f3012324e9a3995b56e0743609ded7a387ba62bbf5edb0R236)
Found via our experimental Rust + LLVM at HEAD bot: https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/16853#01860e2e-5eba-4f07-8359-0325913ff410/219-517
2023-02-04 03:41:57 +00:00
Michael Howell
fa6c3a2d2a
docs: update fragment for Result impls
2023-02-03 19:03:17 -07:00
Jon Gjengset
50e2509a6c
Bump rust-installer
...
Makes generation of `manifest.in` deterministic:
https://github.com/rust-lang/rust-installer/pull/120
2023-02-03 17:59:49 -08:00
Michael Howell
5f98a7f00e
rustdoc: use the same URL escape rules for fragments as for examples
2023-02-03 17:58:26 -07:00
dependabot[bot]
a0dcb9d482
Bump tokio from 1.23.1 to 1.24.2 in /test_dependencies
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.23.1 to 1.24.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/commits )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-04 00:55:01 +00:00
Peter Jaszkowiak
d1052349af
reword descriptions of the deprecated int modules
2023-02-03 16:50:49 -07:00
Esteban Küber
e6c56cda09
review comments
2023-02-03 23:41:39 +00:00
bors
886b2c3e00
Auto merge of #107650 - compiler-errors:rollup-4pntchf, r=compiler-errors
...
Rollup of 8 pull requests
Successful merges:
- #106887 (Make const/fn return params more suggestable)
- #107519 (Add type alias for raw OS errors)
- #107551 ( Replace `ConstFnMutClosure` with const closures )
- #107595 (Retry opening proc-macro DLLs a few times on Windows.)
- #107615 (Replace nbsp in all rustdoc code blocks)
- #107621 (Intern external constraints in new solver)
- #107631 (loudly tell people when they change `Cargo.lock`)
- #107632 (Clarifying that .map() returns None if None.)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2023-02-03 22:37:53 +00:00
Michael Goulet
13bd75f425
Rollup merge of #107632 - ameknite:issue-107622-fix, r=jyn514
...
Clarifying that .map() returns None if None.
Fix #107622
2023-02-03 14:15:24 -08:00
Michael Goulet
ef520bd82a
Rollup merge of #107631 - BoxyUwU:triagebot_cargo_lock, r=compiler-errors
...
loudly tell people when they change `Cargo.lock`
It keeps happening that people accidentally commit changes to `Cargo.lock` and then have to be told by a reviewer to undo this. I've also seen cases where PRs are merged that accidentally changed `Cargo.lock` during a rebase.. I figure that purposeful changes to `Cargo.lock` are likely rarer than these accidental ones?
2023-02-03 14:15:24 -08:00
Michael Goulet
72599c69b5
Rollup merge of #107621 - compiler-errors:intern-external-constraints, r=lcnr
...
Intern external constraints in new solver
Makes the query response `Copy`, fixing a few FIXMEs.
2023-02-03 14:15:23 -08:00
Michael Goulet
f7210b3bed
Rollup merge of #107615 - notriddle:notriddle/nbsp, r=GuillaumeGomez
...
Replace nbsp in all rustdoc code blocks
Based on #106125 by `@dtolnay` — this PR fixes the line wrapping bug.
Fixes #106098 . This makes code copyable from rustdoc rendered documentation into a Rust source file.
2023-02-03 14:15:23 -08:00
Michael Goulet
1594b58ce7
Rollup merge of #107595 - michaelwoerister:retry_proc_macro_loading, r=petrochenkov
...
Retry opening proc-macro DLLs a few times on Windows.
On Windows, the compiler [sometimes](https://users.rust-lang.org/t/error-loadlibraryexw-failed/77603 ) fails with the message `error: LoadLibraryExW failed` when trying to load a proc-macro crate. The error seems to occur intermittently, similar to https://github.com/rust-lang/rust/issues/86929 , however, it seems to be almost impossible to reproduce outside of CI environments and thus very hard to debug. The fact that the error only occurs intermittently makes me think that this is a timing related issue.
This PR is an attempt to mitigate the issue by letting the compiler retry a few times when encountering this specific error (which resolved the issue described in https://github.com/rust-lang/rust/issues/86929 ).
2023-02-03 14:15:22 -08:00
Michael Goulet
e99e05d135
Rollup merge of #107551 - fee1-dead-contrib:rm_const_fnmut_helper, r=oli-obk
...
Replace `ConstFnMutClosure` with const closures
Also fixes a parser bug. cc `@oli-obk` for compiler changes
2023-02-03 14:15:22 -08:00
Michael Goulet
beb5cc9cf7
Rollup merge of #107519 - joboet:raw_os_error_ty, r=Amanieu
...
Add type alias for raw OS errors
Implement rust-lang/libs-team#173 .
`@rustbot` label +S-waiting-on-ACP +T-libs-api
2023-02-03 14:15:21 -08:00
Michael Goulet
e7e8b91b74
Rollup merge of #106887 - compiler-errors:suggest-types-more, r=oli-obk
...
Make const/fn return params more suggestable
Bumps const item type suggestions to MachineApplicable (fixes #106843 ), also replaces FnDef with FnPtr items in return type suggestions to make more things suggestable.
r? diagnostics
2023-02-03 14:15:21 -08:00
Michael Goulet
0b5941aa11
Make const/fn return params more suggestable
2023-02-03 21:37:41 +00:00
Michael Goulet
41883fd19a
intern external constraints
2023-02-03 21:36:59 +00:00