-
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
Sync rustfmt subtree #98040
Sync rustfmt subtree #98040
Commits on Mar 30, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 8211d64 - Browse repository at this point
Copy the full SHA 8211d64View commit details
Commits on Apr 2, 2022
-
fix(rustfmt): fix struct field formatting with doc comments present (r…
…ust-lang#5217) * fix(rustfmt): fix struct field formatting with doc comments present Fixes rust-lang#5215 * fix review feedbacks * add unit test without doc comment * move tests to a seperate file * add additional test cases * reintroduce a newline at the of test/souce/structs.rs
Configuration menu - View commit details
-
Copy full SHA for 1dcdfb2 - Browse repository at this point
Copy the full SHA 1dcdfb2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c6ebec - Browse repository at this point
Copy the full SHA 6c6ebecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d6ca7c - Browse repository at this point
Copy the full SHA 7d6ca7cView commit details
Commits on Apr 5, 2022
-
`MultiSpan` contains labels, which are more complicated with the introduction of diagnostic translation and will use types from `rustc_errors` - however, `rustc_errors` depends on `rustc_span` so `rustc_span` cannot use types like `DiagnosticMessage` without dependency cycles. Introduce a new `rustc_error_messages` crate that can contain `DiagnosticMessage` and `MultiSpan`. Signed-off-by: David Wood <david.wood@huawei.com>
Configuration menu - View commit details
-
Copy full SHA for 11d0bae - Browse repository at this point
Copy the full SHA 11d0baeView commit details -
errors: implement fallback diagnostic translation
This commit updates the signatures of all diagnostic functions to accept types that can be converted into a `DiagnosticMessage`. This enables existing diagnostic calls to continue to work as before and Fluent identifiers to be provided. The `SessionDiagnostic` derive just generates normal diagnostic calls, so these APIs had to be modified to accept Fluent identifiers. In addition, loading of the "fallback" Fluent bundle, which contains the built-in English messages, has been implemented. Each diagnostic now has "arguments" which correspond to variables in the Fluent messages (necessary to render a Fluent message) but no API for adding arguments has been added yet. Therefore, diagnostics (that do not require interpolation) can be converted to use Fluent identifiers and will be output as before.
Configuration menu - View commit details
-
Copy full SHA for 6eea2a8 - Browse repository at this point
Copy the full SHA 6eea2a8View commit details -
errors: implement sysroot/testing bundle loading
Extend loading of Fluent bundles so that bundles can be loaded from the sysroot based on the language requested by the user, or using a nightly flag. Sysroot bundles are loaded from `$sysroot/share/locale/$locale/*.ftl`. Signed-off-by: David Wood <david.wood@huawei.com>
Configuration menu - View commit details
-
Copy full SHA for f8ad4b5 - Browse repository at this point
Copy the full SHA f8ad4b5View commit details -
session: opt for enabling directionality markers
Add an option for enabling and disabling Fluent's directionality isolation markers in output. Disabled by default as these can render in some terminals and applications. Signed-off-by: David Wood <david.wood@huawei.com>
Configuration menu - View commit details
-
Copy full SHA for b482bee - Browse repository at this point
Copy the full SHA b482beeView commit details
Commits on Apr 7, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 91995b6 - Browse repository at this point
Copy the full SHA 91995b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d9bc46 - Browse repository at this point
Copy the full SHA 2d9bc46View commit details
Commits on Apr 11, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4f3f87f - Browse repository at this point
Copy the full SHA 4f3f87fView commit details
Commits on Apr 13, 2022
-
errors: lazily load fallback fluent bundle
Loading the fallback bundle in compilation sessions that won't go on to emit any errors unnecessarily degrades compile time performance, so lazily create the Fluent bundle when it is first required. Signed-off-by: David Wood <david.wood@huawei.com>
Configuration menu - View commit details
-
Copy full SHA for 0cf62ae - Browse repository at this point
Copy the full SHA 0cf62aeView commit details
Commits on Apr 15, 2022
-
Rollup merge of rust-lang#94461 - jhpratt:2024-edition, r=pnkfelix
Create (unstable) 2024 edition [On Zulip](https://rust-lang.zulipchat.com/#narrow/stream/213817-t-lang/topic/Deprecating.20macro.20scoping.20shenanigans/near/272860652), there was a small aside regarding creating the 2024 edition now as opposed to later. There was a reasonable amount of support and no stated opposition. This change creates the 2024 edition in the compiler and creates a prelude for the 2024 edition. There is no current difference between the 2021 and 2024 editions. Cargo and other tools will need to be updated separately, as it's not in the same repository. This change permits the vast majority of work towards the next edition to proceed _now_ instead of waiting until 2024. For sanity purposes, I've merged the "hello" UI tests into a single file with multiple revisions. Otherwise we'd end up with a file per edition, despite them being essentially identical. ````@rustbot```` label +T-lang +S-waiting-on-review Not sure on the relevant team, to be honest.
Configuration menu - View commit details
-
Copy full SHA for a11c79b - Browse repository at this point
Copy the full SHA a11c79bView commit details
Commits on Apr 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 10954cf - Browse repository at this point
Copy the full SHA 10954cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba0351a - Browse repository at this point
Copy the full SHA ba0351aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b1b3d6 - Browse repository at this point
Copy the full SHA 9b1b3d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for acdab00 - Browse repository at this point
Copy the full SHA acdab00View commit details -
Configuration menu - View commit details
-
Copy full SHA for a37d3ab - Browse repository at this point
Copy the full SHA a37d3abView commit details
Commits on Apr 26, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e08df2d - Browse repository at this point
Copy the full SHA e08df2dView commit details
Commits on Apr 27, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f300792 - Browse repository at this point
Copy the full SHA f300792View commit details
Commits on Apr 28, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 70067e3 - Browse repository at this point
Copy the full SHA 70067e3View commit details
Commits on Apr 30, 2022
-
Update GitHub Actions actions/checkout@v2 to v3
The v2 implementation uses Node 12, which is end-of-life on April 30, 2022. See https://nodejs.org/en/about/releases/. Update to v3, which is based on Node 16 whose support lasts until April 30, 2024.
Configuration menu - View commit details
-
Copy full SHA for b26c86b - Browse repository at this point
Copy the full SHA b26c86bView commit details
Commits on May 1, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 050978b - Browse repository at this point
Copy the full SHA 050978bView commit details
Commits on May 7, 2022
-
Signed-off-by: cuishuang <imcusg@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c03e184 - Browse repository at this point
Copy the full SHA c03e184View commit details
Commits on May 8, 2022
-
It's unclear which PR resolved this issue, however the behavior of adding inline comments to the next line can't be reproduced. These test cases should serve to prevent a regression.
Configuration menu - View commit details
-
Copy full SHA for 3cc1f5e - Browse repository at this point
Copy the full SHA 3cc1f5eView commit details -
Fixes rust-lang#5260 by checking if it is part of a type '::'
Configuration menu - View commit details
-
Copy full SHA for c65ba14 - Browse repository at this point
Copy the full SHA c65ba14View commit details
Commits on May 9, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 84fd4cd - Browse repository at this point
Copy the full SHA 84fd4cdView commit details
Commits on May 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 17003ce - Browse repository at this point
Copy the full SHA 17003ceView commit details
Commits on May 11, 2022
-
Remove some unnecessary invisible delimiter checks.
These seem to have no useful effect... they don't seem useful from a code inspection point of view, and they affect anything in the test suite.
Configuration menu - View commit details
-
Copy full SHA for 77f0964 - Browse repository at this point
Copy the full SHA 77f0964View commit details -
Rollup merge of rust-lang#96543 - nnethercote:rm-make_token_stream-ha…
…cks, r=Aaron1011 Remove hacks in `make_token_stream`. `make_tokenstream` has three commented hacks, and a comment at the top referring to rust-lang#67062. These hacks have no observable effect, at least as judged by running the test suite. The hacks were added in rust-lang#82608, with an explanation [here](rust-lang#82608 (comment)). It appears that one of the following is true: (a) they never did anything useful, (b) they do something useful but we have no test coverage for them, or (c) something has changed in the meantime that means they are no longer necessary. This commit removes the hacks and the comments, in the hope that (b) is not true. r? `@Aaron1011`
Configuration menu - View commit details
-
Copy full SHA for 8fcf113 - Browse repository at this point
Copy the full SHA 8fcf113View commit details -
ast: Introduce some traits to get AST node properties generically
And use them to avoid constructing some artificial `Nonterminal` tokens during expansion
Configuration menu - View commit details
-
Copy full SHA for f77fd90 - Browse repository at this point
Copy the full SHA f77fd90View commit details
Commits on May 14, 2022
-
Use the traits added to the Rust 2021 Edition prelude
Follow up rust-lang#96861. This PR uses the traits added to the Rust 2021 Edition prelude. > The `TryInto`, `TryFrom` and `FromIterator` traits are now part of the prelude. https://doc.rust-lang.org/edition-guide/rust-2021/prelude.html
Configuration menu - View commit details
-
Copy full SHA for 8a4c058 - Browse repository at this point
Copy the full SHA 8a4c058View commit details
Commits on May 17, 2022
-
Closes 3937 It's unclear which change fixed the `format_code_in_doc_comments=true` issue brought up in this issue, however I'm unable to reproduce the error on the current master. The added test cases should serve to prevent a regression.
Configuration menu - View commit details
-
Copy full SHA for b08b2da - Browse repository at this point
Copy the full SHA b08b2daView commit details
Commits on May 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b507c60 - Browse repository at this point
Copy the full SHA b507c60View commit details
Commits on May 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9583783 - Browse repository at this point
Copy the full SHA 9583783View commit details
Commits on May 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 86940d2 - Browse repository at this point
Copy the full SHA 86940d2View commit details
Commits on May 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 241a6f6 - Browse repository at this point
Copy the full SHA 241a6f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d27f70 - Browse repository at this point
Copy the full SHA 0d27f70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b697d0 - Browse repository at this point
Copy the full SHA 9b697d0View commit details
Commits on May 23, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0b6659c - Browse repository at this point
Copy the full SHA 0b6659cView commit details -
Co-authored-by: Yacin Tmimi <yacintmimi@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 37b48ca - Browse repository at this point
Copy the full SHA 37b48caView commit details
Commits on May 27, 2022
-
Updated Unreleased CHANGELOG entries
from revision v1.4.38..2d9bc46
Configuration menu - View commit details
-
Copy full SHA for a5cfd4d - Browse repository at this point
Copy the full SHA a5cfd4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 73be264 - Browse repository at this point
Copy the full SHA 73be264View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e38399 - Browse repository at this point
Copy the full SHA 3e38399View commit details
Commits on May 30, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4c8db85 - Browse repository at this point
Copy the full SHA 4c8db85View commit details -
Configuration menu - View commit details
-
Copy full SHA for 825561d - Browse repository at this point
Copy the full SHA 825561dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e42967 - Browse repository at this point
Copy the full SHA 5e42967View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79515f1 - Browse repository at this point
Copy the full SHA 79515f1View commit details
Commits on Jun 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 64f1f57 - Browse repository at this point
Copy the full SHA 64f1f57View commit details
Commits on Jun 8, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1ac2ac0 - Browse repository at this point
Copy the full SHA 1ac2ac0View commit details -
Configuration menu - View commit details
-
Copy full SHA for aedb396 - Browse repository at this point
Copy the full SHA aedb396View commit details
Commits on Jun 9, 2022
-
Merge pull request rust-lang#5374 from calebcartwright/subtree-sync-2…
…022-06-07 Subtree sync
Configuration menu - View commit details
-
Copy full SHA for 75786fb - Browse repository at this point
Copy the full SHA 75786fbView commit details
Commits on Jun 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5fa2727 - Browse repository at this point
Copy the full SHA 5fa2727View commit details
Commits on Jun 12, 2022
-
Dedup
imports_granularity = "Item"
(rust-lang#4737)* Fix for issue 4725 - dedup Item imports_granularity (2nd version) * Use unique() instead of unique_by()
Configuration menu - View commit details
-
Copy full SHA for 7d34cfa - Browse repository at this point
Copy the full SHA 7d34cfaView commit details
Commits on Jun 13, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 7b73b60 - Browse repository at this point
Copy the full SHA 7b73b60View commit details -
Configuration menu - View commit details
-
Copy full SHA for ecddc26 - Browse repository at this point
Copy the full SHA ecddc26View commit details -
Configuration menu - View commit details
-
Copy full SHA for f367f4d - Browse repository at this point
Copy the full SHA f367f4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3733e45 - Browse repository at this point
Copy the full SHA 3733e45View commit details