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

Convert rustfmt from a submodule to a subtree #82208

Merged
merged 4,926 commits into from
May 15, 2021
Merged
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Oct 4, 2019

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

Commits on Oct 5, 2019

  1. Configuration menu
    Copy the full SHA
    383306e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ed697c9 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2019

  1. Merge pull request rust-lang#3838 from calebcartwright/static-raw-ide…

    …nt-prefix
    
    add static support for raw prefix identifiers
    scampi committed Oct 6, 2019
    Configuration menu
    Copy the full SHA
    61f972b View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2019

  1. Configuration menu
    Copy the full SHA
    ba4bf03 View commit details
    Browse the repository at this point in the history
  2. Cargo update

    topecongiro committed Oct 7, 2019
    Configuration menu
    Copy the full SHA
    e53e0f8 View commit details
    Browse the repository at this point in the history
  3. Update CHANGELOG.md

    topecongiro committed Oct 7, 2019
    Configuration menu
    Copy the full SHA
    2934ec5 View commit details
    Browse the repository at this point in the history
  4. Release v1.4.9

    topecongiro committed Oct 7, 2019
    Configuration menu
    Copy the full SHA
    33e3667 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    160c3aa View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8073244 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2019

  1. Configuration menu
    Copy the full SHA
    6dcbc5d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    207a58f View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2019

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

Commits on Oct 11, 2019

  1. Configuration menu
    Copy the full SHA
    8210cc1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a15e97f View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2019

  1. Configuration menu
    Copy the full SHA
    28be779 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fd6e960 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2019

  1. Configuration menu
    Copy the full SHA
    0497a7d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a5d16df View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5327c36 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3a073f1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    69c7dbc View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2019

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

Commits on Oct 25, 2019

  1. Configuration menu
    Copy the full SHA
    69cf483 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    99f9f57 View commit details
    Browse the repository at this point in the history
  3. Cargo update

    topecongiro committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    d5b1832 View commit details
    Browse the repository at this point in the history
  4. Release v1.4.10

    topecongiro committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    e47aae7 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2019

  1. Configuration menu
    Copy the full SHA
    731f155 View commit details
    Browse the repository at this point in the history
  2. Release v1.4.11

    topecongiro committed Dec 2, 2019
    Configuration menu
    Copy the full SHA
    1838235 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2020

  1. Configuration menu
    Copy the full SHA
    c60416e View commit details
    Browse the repository at this point in the history
  2. fix: backport parse bug fix

    Backport the fix for the parser bug where the messages from
    fatal/non-recoverable parser errors were being silently eaten by
    rustfmt.
    calebcartwright committed Feb 9, 2020
    Configuration menu
    Copy the full SHA
    e72f307 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    760bb29 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2020

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

Commits on Mar 26, 2020

  1. Configuration menu
    Copy the full SHA
    7a76ec0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9699c96 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2020

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

Commits on Mar 28, 2020

  1. Configuration menu
    Copy the full SHA
    9b0ed57 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bea7209 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    537d746 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c1a66e1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b173b42 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2020

  1. Configuration menu
    Copy the full SHA
    ac2d5b8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9714a14 View commit details
    Browse the repository at this point in the history
  3. Merge pull request rust-lang#4100 from calebcartwright/rustfmt1x-rust…

    …c-v650
    
    bump rustfmt 1x to rustc-ap v651
    Manishearth committed Mar 30, 2020
    Configuration menu
    Copy the full SHA
    5ca3d02 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2020

  1. backport new syntax to rustfmt 1.x (rust-lang#4105)

    * feat: support raw reference operator
    
    * feat: support const opt-out syntax
    
    * feat: support half open range syntax
    calebcartwright committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    00e199c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c126730 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2020

  1. Configuration menu
    Copy the full SHA
    ca4eba5 View commit details
    Browse the repository at this point in the history
  2. Release v1.4.14

    topecongiro committed Apr 14, 2020
    Configuration menu
    Copy the full SHA
    a5cb5d2 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2020

  1. Configuration menu
    Copy the full SHA
    577ef81 View commit details
    Browse the repository at this point in the history
  2. Cargo update

    topecongiro committed May 19, 2020
    Configuration menu
    Copy the full SHA
    770ad7b View commit details
    Browse the repository at this point in the history
  3. Release v1.4.15

    topecongiro committed May 19, 2020
    Configuration menu
    Copy the full SHA
    aedff61 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2020

  1. Configuration menu
    Copy the full SHA
    08776ef View commit details
    Browse the repository at this point in the history
  2. Bump parking_lot

    topecongiro committed Jun 8, 2020
    Configuration menu
    Copy the full SHA
    ef1bb58 View commit details
    Browse the repository at this point in the history
  3. Release v1.4.17

    topecongiro committed Jun 8, 2020
    Configuration menu
    Copy the full SHA
    de8238c View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2020

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

Commits on Jun 12, 2020

  1. Configuration menu
    Copy the full SHA
    bc9a0b2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dead3a8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ce1a3ef View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0767a09 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5db7152 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    796d6ea View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2020

  1. Merge pull request rust-lang#4253 from calebcartwright/rustfmt-1.4.18

    bump rustfmt 1.x rustc-ap* crates to v644
    topecongiro committed Jun 13, 2020
    Configuration menu
    Copy the full SHA
    4d36560 View commit details
    Browse the repository at this point in the history
  2. Release v1.4.18

    topecongiro committed Jun 13, 2020
    Configuration menu
    Copy the full SHA
    c1e9b7b View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2020

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

Commits on Jul 10, 2020

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

Commits on Jul 15, 2020

  1. Configuration menu
    Copy the full SHA
    391cd3e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bf359c6 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2020

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

Commits on Aug 7, 2020

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

Commits on Aug 9, 2020

  1. Configuration menu
    Copy the full SHA
    a178031 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    48f6c32 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2020

  1. Configuration menu
    Copy the full SHA
    e4617e0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    637ddfb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d00849e View commit details
    Browse the repository at this point in the history
  4. chore: run rustfmt

    calebcartwright committed Sep 5, 2020
    Configuration menu
    Copy the full SHA
    aa11c27 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    89b7f5f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    62dc7c5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    01f2ead View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2020

  1. Configuration menu
    Copy the full SHA
    9ba373f View commit details
    Browse the repository at this point in the history
  2. deps: bump rustc-ap to v679

    dtolnay authored and calebcartwright committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    8635a5c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    146578c View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2020

  1. Configuration menu
    Copy the full SHA
    4908ee1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f6b9625 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d6a220b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8eedd82 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2020

  1. Preserve and format type aliases in extern blocks

    Previously, non-trivial type aliases in extern blocks were dropped by
    rustfmt because only the type alias name would be passed to a rewritter.
    This commit fixes that by passing all type information (generics,
    bounds, and assignments) to a type alias rewritter, and consolidates
    `rewrite_type_alias` and `rewrite_associated_type` as one function.
    ayazhafiz authored and calebcartwright committed Oct 2, 2020
    Configuration menu
    Copy the full SHA
    a15800a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a9b0b05 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    92ab76c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2a8ff20 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2020

  1. Configuration menu
    Copy the full SHA
    14d53f7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bdb1c44 View commit details
    Browse the repository at this point in the history
  3. Release v1.4.22

    calebcartwright committed Oct 4, 2020
    Configuration menu
    Copy the full SHA
    97d0301 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2020

  1. Configuration menu
    Copy the full SHA
    d95a287 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c89638a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    31cef56 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2866634 View commit details
    Browse the repository at this point in the history
  5. Correctly indent skipped-over code

    ayazhafiz authored and calebcartwright committed Oct 24, 2020
    Configuration menu
    Copy the full SHA
    e70343a View commit details
    Browse the repository at this point in the history
  6. Preserve comments in empty statements (rust-lang#4180)

    * Preserve comments in empty statements
    
    Closes rust-lang#4018
    
    * fixup! Preserve comments in empty statements
    ayazhafiz authored and calebcartwright committed Oct 24, 2020
    Configuration menu
    Copy the full SHA
    6a78247 View commit details
    Browse the repository at this point in the history
  7. Fix overriding license header bug (rust-lang#4488)

    * Override header to None when path len = 0
    
    * Add regression test
    
    * Ensure nightly
    cmichi committed Oct 24, 2020
    Configuration menu
    Copy the full SHA
    fa9d974 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2020

  1. Configuration menu
    Copy the full SHA
    e131797 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9faba45 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    86a41bc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2b6226c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    98975e1 View commit details
    Browse the repository at this point in the history
  6. Add some basic tests for try{} expressions

    They failed to parse in rustfmt on me in rust-lang#77877, which looks like it's since been fixed, but I figured I'd send in some tests anyway.
    scottmcm authored and calebcartwright committed Nov 3, 2020
    Configuration menu
    Copy the full SHA
    278e8da View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    15854e5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    fb517f4 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ea97ec5 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2020

  1. Don't flatten a block containing a single macro call

    We no longer flatten a block that looks like this:
    
    ```rust
    match val {
        pat => { macro_call!() }
    }
    ```
    
    Currently, rust ignores trailing semicolons in macro expansion in
    expression position (see rust-lang#33953)
    
    If this is changed, flattening a block with a macro call may break the
    user's code - the trailing semicolon will no longer parse if the macro
    call occurs immediately on the right-hand side of the match arm
    (e.g. `pat => macro_call!()`)
    Aaron1011 authored and calebcartwright committed Nov 6, 2020
    Configuration menu
    Copy the full SHA
    46ab144 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1139e6e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ae6b40e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eb894d5 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2020

  1. Configuration menu
    Copy the full SHA
    a613c57 View commit details
    Browse the repository at this point in the history
  2. meta: release v1.4.25

    calebcartwright committed Nov 12, 2020
    Configuration menu
    Copy the full SHA
    0f29ff6 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2020

  1. Configuration menu
    Copy the full SHA
    dd32de7 View commit details
    Browse the repository at this point in the history
  2. Correctly create artificial span for formatting closure body

    This commit partially reverts rust-lang#3934, opting to create a span that covers
    the entire body of a closure when formatting a closure body with a
    block-formatting strategy, rather than having the block-formatting code
    determine if the visitor pointer should be rewound. The problem with
    rewinding the visitor pointer is it may be incorrect for other (i.e.
    non-artificial) AST nodes, as in the case of rust-lang#4382.
    
    Closes rust-lang#4382
    ayazhafiz authored and calebcartwright committed Nov 14, 2020
    Configuration menu
    Copy the full SHA
    ce13ff1 View commit details
    Browse the repository at this point in the history
  3. Fixed 'Incorrect comment indent inside if/else' issue. (rust-lang#4459)

    * Added test cases
    
    * Fixed if condition comment issue
    
    * Fixed extern C issue
    
    * Removed previous test case
    
    * Removed tmp file
    
    * honor the authors intent
    
    * Changed the file name to its original name
    
    * Removed extra whitespace
    whizsid authored and calebcartwright committed Nov 14, 2020
    Configuration menu
    Copy the full SHA
    faf97a6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eed826f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    77c8c90 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    293d7d0 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2020

  1. Configuration menu
    Copy the full SHA
    89f3830 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d003e3b View commit details
    Browse the repository at this point in the history
  3. meta: bump to v1.4.27

    calebcartwright committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    580d826 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2020

  1. Option to create groups for std, external crates, and other imports

    Backport of 17d90ca.
    MattX authored and calebcartwright committed Nov 19, 2020
    Configuration menu
    Copy the full SHA
    073cc38 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2020

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

Commits on Nov 28, 2020

  1. Configuration menu
    Copy the full SHA
    581da52 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    baee271 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5b21602 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4f32ce8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5c0673c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4d9fa00 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    48d30a4 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2020

  1. Add a test

    topecongiro authored and calebcartwright committed Nov 29, 2020
    Configuration menu
    Copy the full SHA
    8e46225 View commit details
    Browse the repository at this point in the history
  2. Properly format function signature in extern blocks

    Closes rust-lang#4288
    
    And we get to drop a method, which I think is a win :)
    ayazhafiz authored and calebcartwright committed Nov 29, 2020
    Configuration menu
    Copy the full SHA
    5ffccbb View commit details
    Browse the repository at this point in the history
  3. Don't drop blocks on foreign functions

    A code like
    
    ```rust
    extern "C" {
        fn f() {
            fn g() {}
        }
    }
    ```
    
    is incorrect and does not compile. Today rustfmt formats this in a way
    that is correct:
    
    ```rust
    extern "C" {
        fn f();
    }
    ```
    
    But this loses information, and doesn't have to be done because we know
    the content of the block if it is present. During development I don't
    think rustfmt should drop the block in this context.
    
    Closes rust-lang#4313
    ayazhafiz authored and calebcartwright committed Nov 29, 2020
    Configuration menu
    Copy the full SHA
    3bf67c1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e7ecdc1 View commit details
    Browse the repository at this point in the history
  5. Compare code block line indentation with config whitespace (rust-lang…

    …#4166)
    
    Previously the indetation of a line was compared with the configured
    number of spaces per tab, which could cause lines that were formatted
    with hard tabs not to be recognized as indented ("\t".len() < "    ".len()).
    
    Closes rust-lang#4152
    ayazhafiz authored and calebcartwright committed Nov 29, 2020
    Configuration menu
    Copy the full SHA
    c77c6a4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3df383a View commit details
    Browse the repository at this point in the history
  7. tests

    ahl authored and calebcartwright committed Nov 29, 2020
    Configuration menu
    Copy the full SHA
    c735994 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    fb7e604 View commit details
    Browse the repository at this point in the history
  9. Pick up comments between visibility modifier and item name (rust-lang…

    …#4239)
    
    * Pick up comments between visibility modifier and item name
    
    I don't think this hurts to fix. rust-lang#2781, which surfaced this issue, has
    a number of comments relating to similar but slightly different issues
    (i.e. dropped comments in other places). I can mark rust-lang#2781 as closed and
    then will open new issues for the comments that are not already resolved
    or tracked.
    
    Closes rust-lang#2781
    
    * fixup! Pick up comments between visibility modifier and item name
    
    * fixup! Pick up comments between visibility modifier and item name
    ayazhafiz authored and calebcartwright committed Nov 29, 2020
    Configuration menu
    Copy the full SHA
    5e7fb45 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ea712f1 View commit details
    Browse the repository at this point in the history
  11. Fixed 'Comment removed between type name and =' issue (rust-lang#4448)

    * Fixed Comment removed between type name and = issue
    
    * Fixed where clause issue and pass the full span
    
    * has_where condition inline
    
    * Fixed indentation error on where clause
    
    * Removed tmp file
    whizsid authored and calebcartwright committed Nov 29, 2020
    Configuration menu
    Copy the full SHA
    6455e9d View commit details
    Browse the repository at this point in the history
  12. Fixed comment dropped between & and type issue (rust-lang#4482)

    * Fixed comment dropped between & and type issue
    
    * Reduced nesting levels and avoided duplications
    
    * Removed extra allocations
    whizsid authored and calebcartwright committed Nov 29, 2020
    Configuration menu
    Copy the full SHA
    b7c38c9 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    823c4f8 View commit details
    Browse the repository at this point in the history
  14. Comment between typebounds (rust-lang#4474)

    * Test cases and get spans
    
    * Fixed type bounds
    
    * Fixed issue of test cases
    
    * Fixed first test case issue
    
    * Removed unwanted whitespaces
    
    * Removed tmp files
    whizsid authored and calebcartwright committed Nov 29, 2020
    Configuration menu
    Copy the full SHA
    7d9ee75 View commit details
    Browse the repository at this point in the history
  15. meta: bump to v1.4.28

    calebcartwright committed Nov 29, 2020
    Configuration menu
    Copy the full SHA
    29f33eb View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2020

  1. Configuration menu
    Copy the full SHA
    96ee060 View commit details
    Browse the repository at this point in the history
  2. Add negative impl test

    dtolnay authored and calebcartwright committed Dec 1, 2020
    Configuration menu
    Copy the full SHA
    c40a8c1 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2020

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

Commits on Dec 20, 2020

  1. Configuration menu
    Copy the full SHA
    4cfb9ef View commit details
    Browse the repository at this point in the history
  2. Fix rewrite of closures with a return type

    If the closure's body fits in a line, the block is removed but it is
    necessary if the closure has a return type.
    scampi authored and calebcartwright committed Dec 20, 2020
    Configuration menu
    Copy the full SHA
    c536d80 View commit details
    Browse the repository at this point in the history
  3. Format error and typeof types (rust-lang#4416)

    * Add a test for rust-lang#4357
    
    * Format error and typeof types
    topecongiro authored and calebcartwright committed Dec 20, 2020
    Configuration menu
    Copy the full SHA
    0d022d0 View commit details
    Browse the repository at this point in the history
  4. meta: bump to v1.4.30

    calebcartwright committed Dec 20, 2020
    Configuration menu
    Copy the full SHA
    acd9486 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2021

  1. Configuration menu
    Copy the full SHA
    d8e0d00 View commit details
    Browse the repository at this point in the history
  2. Add support for edition 2021.

    m-ou-se authored and calebcartwright committed Jan 9, 2021
    Configuration menu
    Copy the full SHA
    398d2f9 View commit details
    Browse the repository at this point in the history
  3. Fixes for new rustc changes.

    m-ou-se authored and calebcartwright committed Jan 9, 2021
    Configuration menu
    Copy the full SHA
    4644418 View commit details
    Browse the repository at this point in the history
  4. Bump rustc-ap to v697.

    m-ou-se authored and calebcartwright committed Jan 9, 2021
    Configuration menu
    Copy the full SHA
    a6b0c18 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5bb17a0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b623eb3 View commit details
    Browse the repository at this point in the history
  7. Add 2021 test.

    m-ou-se authored and calebcartwright committed Jan 9, 2021
    Configuration menu
    Copy the full SHA
    f0eaaed View commit details
    Browse the repository at this point in the history
  8. Update Cargo.lock.

    m-ou-se authored and calebcartwright committed Jan 9, 2021
    Configuration menu
    Copy the full SHA
    c59b147 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3571c5d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b57469d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    4f9c794 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2021

  1. Configuration menu
    Copy the full SHA
    b30cb24 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c4d551c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    590f6a1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    216a643 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2021

  1. Rename merge_imports to imports_granularity and add a Module op…

    …tion.
    
    This renames the existing `true`/`false` options to `Crate`/`Never`, then adds a
    new `Module` option which causes imports to be grouped together by their
    originating module.
    goffrie authored and calebcartwright committed Jan 17, 2021
    Configuration menu
    Copy the full SHA
    7186375 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0d60a61 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    17bad2b View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2021

  1. Configuration menu
    Copy the full SHA
    2695846 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c0fede3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    152ccb5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f8deed3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1102714 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5e14f76 View commit details
    Browse the repository at this point in the history
  7. Add imports_granularity="Item".

    This option splits all imports into their own `use` statement.
    msmorgan authored and calebcartwright committed Jan 28, 2021
    Configuration menu
    Copy the full SHA
    384ba68 View commit details
    Browse the repository at this point in the history
  8. Added 4646 test case

    vallentin authored and calebcartwright committed Jan 28, 2021
    Configuration menu
    Copy the full SHA
    1e2b0b7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3e61326 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    bd4dc36 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c13d245 View commit details
    Browse the repository at this point in the history
  12. meta: bump to v1.4.33

    calebcartwright committed Jan 28, 2021
    Configuration menu
    Copy the full SHA
    f0fe48f View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2021

  1. Configuration menu
    Copy the full SHA
    d80a42f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b8f318c View commit details
    Browse the repository at this point in the history
  3. meta: bump to v1.4.34

    calebcartwright committed Jan 29, 2021
    Configuration menu
    Copy the full SHA
    ea268b9 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2021

  1. Add arch name to archive files created in the upload workflow (rust-l…

    …ang#4679)
    
    * Add arch name to archive files created in the upload workflow
    
    * Fix arch names in matrix.build key to include arch name as well
    autarch authored and calebcartwright committed Feb 4, 2021
    Configuration menu
    Copy the full SHA
    ead937b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    58ac85b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7db2ba8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    82a6528 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    55d2620 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2021

  1. Configuration menu
    Copy the full SHA
    67faa61 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b80fdf2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9ed7511 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7de6968 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2021

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

Commits on Feb 18, 2021

  1. Fix warnings

    - Fix nightly warning about `format!`
    - Remove unused functions and fields
    jyn514 authored and calebcartwright committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    6170948 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4b0ed96 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    432e09e View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2021

  1. Fix some clippy warnings

    This commit can be replicated with
    `cargo clippy --fix -Z unstable-options && cargo +nightly-2021-02-10 fmt`.
    jyn514 authored and calebcartwright committed Feb 19, 2021
    Configuration menu
    Copy the full SHA
    c3a5111 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2021

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

Commits on Apr 3, 2021

  1. Configuration menu
    Copy the full SHA
    c5c348c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cbd83b8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2c63395 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    612e8d5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    83cbdf6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a1dc57a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f2bc4b5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4c617e8 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    884cdb8 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    bf1e47f View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    748e595 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    ef57c5b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    4948911 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    c32f2ec View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    01cdc15 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    0bd2b19 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2021

  1. Don't show CRLF tests as modified in the working directory

    This was being overriden by `lf=eof` in `.gitattributes` in the root
    directory. Override it again to avoid warnings like this:
    
    ```
    $ git diff src/tools/rustfmt/tests/target/issue-3494/crlf.rs
    warning: CRLF will be replaced by LF in src/tools/rustfmt/tests/target/issue-3494/crlf.rs.
    The file will have its original line endings in your working directory
    ```
    jyn514 authored and calebcartwright committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    6767c1d View commit details
    Browse the repository at this point in the history
  2. Use rustc_private instead of crates.io dependencies

    - Update rust-toolchain to also install `rustc-dev` component
    jyn514 authored and calebcartwright committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    61ee108 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    943b97c View commit details
    Browse the repository at this point in the history
  4. Use rustup in CI to automatically determine the toolchain version needed

    This also removes the (now unused) `RUSTC_RELEASE` and
    `RUSTC_RELEASE_CHANNEL` variables.
    jyn514 authored and calebcartwright committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    26fb3fa View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0269eb1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ea1611c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1bcc1f8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a168d92 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    78b0728 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    58157bb View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    dac2423 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    84ff001 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    ddb224a View commit details
    Browse the repository at this point in the history

Commits on May 2, 2021

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

Commits on May 4, 2021

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

Commits on May 13, 2021

  1. Configuration menu
    Copy the full SHA
    8526ace View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e4b5621 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ef31361 View commit details
    Browse the repository at this point in the history
  4. Bump nightly version

    cbeuw authored and calebcartwright committed May 13, 2021
    Configuration menu
    Copy the full SHA
    927561a View commit details
    Browse the repository at this point in the history

Commits on May 14, 2021

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

Commits on May 15, 2021

  1. Configuration menu
    Copy the full SHA
    0e61f62 View commit details
    Browse the repository at this point in the history
  2. Delete rustfmt submodule

    jyn514 authored and calebcartwright committed May 15, 2021
    Configuration menu
    Copy the full SHA
    e659b6d View commit details
    Browse the repository at this point in the history
  3. Add 'src/tools/rustfmt/' from commit '7872306edf2e11a69aaffb9434088fd…

    …66b46a863'
    
    git-subtree-dir: src/tools/rustfmt
    git-subtree-mainline: e659b6d
    git-subtree-split: 7872306
    calebcartwright committed May 15, 2021
    Configuration menu
    Copy the full SHA
    b2d45c0 View commit details
    Browse the repository at this point in the history
  4. Update bootstrap for in-tree rustfmt

    - Add rustfmt to `x.py check`
    - Update Cargo.lock
    - Remove rustfmt from the toolstate list
    - Make rustfmt an in-tree tool
    - Give an error on `x.py test rustfmt` if rustfmt fails to build or if tests fail
    - Don't call `save_toolstate` when testing rustfmt
    jyn514 authored and calebcartwright committed May 15, 2021
    Configuration menu
    Copy the full SHA
    956e0ba View commit details
    Browse the repository at this point in the history
  5. Don't copy tool dependencies to the sysroot

    This fixes the following error:
    
    ```
    error: found crates (`serde_derive` and `serde_derive`) with colliding StableCrateId values.
       --> /home/joshua/.local/lib/cargo/registry/src/github.com-1ecc6299db9ec823/cargo_metadata-0.8.2/src/lib.rs:162:1
        |
    162 | extern crate serde_derive;
        | ^^^^^^^^^^^^^^^^^^^^^^^^^^
    ```
    
    This is a bug in resolve (rust-lang#56935)
    but it will be difficult to fix in the near future. This works around it
    in the meantime by not copying serde_derive and other dependencies to
    the sysroot when they're built for other tools. This rebuilds the
    dependencies slightly more often than necessary, but avoids the crate
    conflicts.
    
    This can be reverted once rust-lang#56935 is fixed.
    jyn514 authored and calebcartwright committed May 15, 2021
    Configuration menu
    Copy the full SHA
    b349437 View commit details
    Browse the repository at this point in the history
  6. Update log to 0.4.14

    This avoids the following warning:
    
    ```
    warning: trailing semicolon in macro used in expression position
       --> /home/joshua/.local/lib/cargo/registry/src/github.com-1ecc6299db9ec823/log-0.4.11/src/macros.rs:152:45
        |
    147 | / macro_rules! debug {
    148 | |     (target: $target:expr, $($arg:tt)+) => (
    149 | |         log!(target: $target, $crate::Level::Debug, $($arg)+);
    150 | |     );
    151 | |     ($($arg:tt)+) => (
    152 | |         log!($crate::Level::Debug, $($arg)+);
        | |                                             ^
    153 | |     )
    154 | | }
        | |_- in this expansion of `debug!`
        |
       ::: src/tools/rustfmt/src/modules/visitor.rs:36:23
        |
    36  |               Err(e) => debug!("{}", e),
        |                         --------------- in this macro invocation
        |
        = note: requested on the command line with `-W semicolon-in-expressions-from-macros`
        = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
        = note: for more information, see issue rust-lang#79813 <rust-lang#79813>
    ```
    jyn514 authored and calebcartwright committed May 15, 2021
    Configuration menu
    Copy the full SHA
    079d1c4 View commit details
    Browse the repository at this point in the history
  7. Run toolstate jobs when src/tools/rustfmt is modified.

    Previously, this would be caught by a change for modified submodules;
    now that rustfmt is no longer a submodule, the check needs to be
    explicit.
    jyn514 authored and calebcartwright committed May 15, 2021
    Configuration menu
    Copy the full SHA
    56fa9b4 View commit details
    Browse the repository at this point in the history
  8. should-skip-this: Check for changes between the master branch, not th…

    …e previous commit.
    
    The previous commit could be part of the current PR.
    jyn514 authored and calebcartwright committed May 15, 2021
    Configuration menu
    Copy the full SHA
    08c7c61 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    34368ec View commit details
    Browse the repository at this point in the history