Skip to content
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

Merged
merged 58 commits into from
Jun 14, 2022
Merged

Sync rustfmt subtree #98040

merged 58 commits into from
Jun 14, 2022

Commits on Mar 30, 2022

  1. Configuration menu
    Copy the full SHA
    8211d64 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2022

  1. 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
    tharun208 authored Apr 2, 2022
    Configuration menu
    Copy the full SHA
    1dcdfb2 View commit details
    Browse the repository at this point in the history
  2. Create 2024 edition

    jhpratt committed Apr 2, 2022
    Configuration menu
    Copy the full SHA
    6c6ebec View commit details
    Browse the repository at this point in the history
  3. Bump deps (rust-lang#5237)

    * bump deps
    
    * sort the deps
    light4 authored Apr 2, 2022
    Configuration menu
    Copy the full SHA
    7d6ca7c View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2022

  1. span: move MultiSpan

    `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>
    davidtwco committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    11d0bae View commit details
    Browse the repository at this point in the history
  2. 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.
    davidtwco committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    6eea2a8 View commit details
    Browse the repository at this point in the history
  3. 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>
    davidtwco committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    f8ad4b5 View commit details
    Browse the repository at this point in the history
  4. 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>
    davidtwco committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    b482bee View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2022

  1. Configuration menu
    Copy the full SHA
    91995b6 View commit details
    Browse the repository at this point in the history
  2. Backport 4326

    refactor: rename some private whitelist names
    calebcartwright committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    2d9bc46 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2022

  1. Configuration menu
    Copy the full SHA
    4f3f87f View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2022

  1. 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>
    davidtwco committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    0cf62ae View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2022

  1. 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.
    Dylan-DPC authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    a11c79b View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2022

  1. Configuration menu
    Copy the full SHA
    10954cf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ba0351a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9b1b3d6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    acdab00 View commit details
    Browse the repository at this point in the history
  5. Memoize format_expr

    HKalbasi authored and calebcartwright committed Apr 17, 2022
    Configuration menu
    Copy the full SHA
    a37d3ab View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2022

  1. Configuration menu
    Copy the full SHA
    e08df2d View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2022

  1. Configuration menu
    Copy the full SHA
    f300792 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2022

  1. Configuration menu
    Copy the full SHA
    70067e3 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2022

  1. 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.
    dtolnay authored and ytmimi committed Apr 30, 2022
    Configuration menu
    Copy the full SHA
    b26c86b View commit details
    Browse the repository at this point in the history

Commits on May 1, 2022

  1. Fix the rustfmt build

    scottmcm committed May 1, 2022
    Configuration menu
    Copy the full SHA
    050978b View commit details
    Browse the repository at this point in the history

Commits on May 7, 2022

  1. fix some typos

    Signed-off-by: cuishuang <imcusg@gmail.com>
    cuishuang authored and calebcartwright committed May 7, 2022
    Configuration menu
    Copy the full SHA
    c03e184 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2022

  1. Add tests for issue 4573

    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.
    ytmimi authored and calebcartwright committed May 8, 2022
    Configuration menu
    Copy the full SHA
    3cc1f5e View commit details
    Browse the repository at this point in the history
  2. Fixes rust-lang#5260

    Fixes rust-lang#5260 by checking if it is part of a type '::'
    PSeitz authored and calebcartwright committed May 8, 2022
    Configuration menu
    Copy the full SHA
    c65ba14 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2022

  1. Update CHANGELOG.md

    PSeitz authored and ytmimi committed May 9, 2022
    Configuration menu
    Copy the full SHA
    84fd4cd View commit details
    Browse the repository at this point in the history

Commits on May 10, 2022

  1. Configuration menu
    Copy the full SHA
    17003ce View commit details
    Browse the repository at this point in the history

Commits on May 11, 2022

  1. 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.
    nnethercote committed May 11, 2022
    Configuration menu
    Copy the full SHA
    77f0964 View commit details
    Browse the repository at this point in the history
  2. 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`
    JohnTitor authored May 11, 2022
    Configuration menu
    Copy the full SHA
    8fcf113 View commit details
    Browse the repository at this point in the history
  3. ast: Introduce some traits to get AST node properties generically

    And use them to avoid constructing some artificial `Nonterminal` tokens during expansion
    petrochenkov committed May 11, 2022
    Configuration menu
    Copy the full SHA
    f77fd90 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2022

  1. 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
    koic authored and calebcartwright committed May 14, 2022
    Configuration menu
    Copy the full SHA
    8a4c058 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2022

  1. Add test for issue 3937

    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.
    ytmimi authored and calebcartwright committed May 17, 2022
    Configuration menu
    Copy the full SHA
    b08b2da View commit details
    Browse the repository at this point in the history

Commits on May 18, 2022

  1. fix rustfmt

    klensy committed May 18, 2022
    Configuration menu
    Copy the full SHA
    b507c60 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2022

  1. Configuration menu
    Copy the full SHA
    9583783 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2022

  1. Fix typo

    This PR is fixes typo "avaiable" to "available".
    ydah committed May 20, 2022
    Configuration menu
    Copy the full SHA
    86940d2 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2022

  1. Configuration menu
    Copy the full SHA
    241a6f6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0d27f70 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9b697d0 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2022

  1. Update Configurations.md

    pozdneev authored and ytmimi committed May 23, 2022
    Configuration menu
    Copy the full SHA
    0b6659c View commit details
    Browse the repository at this point in the history
  2. Update Configurations.md

    Co-authored-by: Yacin Tmimi <yacintmimi@gmail.com>
    pozdneev and ytmimi committed May 23, 2022
    Configuration menu
    Copy the full SHA
    37b48ca View commit details
    Browse the repository at this point in the history

Commits on May 27, 2022

  1. Updated Unreleased CHANGELOG entries

    from revision  v1.4.38..2d9bc46
    ytmimi authored and calebcartwright committed May 27, 2022
    Configuration menu
    Copy the full SHA
    a5cfd4d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    73be264 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3e38399 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2022

  1. Configuration menu
    Copy the full SHA
    4c8db85 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    825561d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5e42967 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    79515f1 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2022

  1. Configuration menu
    Copy the full SHA
    64f1f57 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2022

  1. Configuration menu
    Copy the full SHA
    1ac2ac0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aedb396 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2022

  1. Configuration menu
    Copy the full SHA
    75786fb View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2022

  1. Configuration menu
    Copy the full SHA
    5fa2727 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2022

  1. Dedup imports_granularity = "Item" (rust-lang#4737)

    * Fix for issue 4725 - dedup Item imports_granularity (2nd version)
    
    * Use unique() instead of unique_by()
    davidBar-On authored and calebcartwright committed Jun 12, 2022
    Configuration menu
    Copy the full SHA
    7d34cfa View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2022

  1. Configuration menu
    Copy the full SHA
    7b73b60 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ecddc26 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f367f4d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3733e45 View commit details
    Browse the repository at this point in the history