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

Rollup of 10 pull requests #90176

Closed
wants to merge 114 commits into from

Commits on Jul 26, 2021

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

Commits on Jul 27, 2021

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

Commits on Jul 28, 2021

  1. Configuration menu
    Copy the full SHA
    e7fa070 View commit details
    Browse the repository at this point in the history
  2. Unyeet const param defaults

    BoxyUwU authored and calebcartwright committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    0b21ea2 View commit details
    Browse the repository at this point in the history
  3. Bump deps

    * dirs-sys v0.3.4 -> v0.3.6 to drop a lot of deps
    regex v1.3.1 -> v1.4.3 drops thread_local 0.3.6
    bytecount v0.6.0 -> v0.6.2 replaces packed_simd with packed_simd_2
    ignore v0.4.11 -> v0.4.17 drop crossbeam-channel v0.4.0
    
    * itertools 8.0 -> 9.0
    bump `ignore` version in Cargo.toml
    
    * cargo_metadata 0.8 -> 0.12
    
    * env_logger 0.6 -> 0.8
    klensy authored and calebcartwright committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    8c52aae View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2021

  1. rfc3052: Remove authors field from Cargo manifests

    Since RFC 3052 soft deprecated the authors field anyway, hiding it from
    crates.io, docs.rs, and making Cargo not add it by default, and it is
    not generally up to date/useful information, we should remove it from
    crates in this repo.
    lf- committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    e9038b8 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2021

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

Commits on Aug 2, 2021

  1. Auto merge of rust-lang#87535 - lf-:authors, r=Mark-Simulacrum

    rfc3052 followup: Remove authors field from Cargo manifests
    
    Since RFC 3052 soft deprecated the authors field, hiding it from
    crates.io, docs.rs, and making Cargo not add it by default, and it is
    not generally up to date/useful information for contributors, we may as well
    remove it from crates in this repo.
    bors committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    2323cbc View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2021

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

Commits on Aug 8, 2021

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

Commits on Aug 9, 2021

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

Commits on Aug 15, 2021

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

Commits on Aug 16, 2021

  1. Document private items for rustfmt

    This is possible now that rustdoc allows passing
    `--document-private-items` more than once.
    jyn514 committed Aug 16, 2021
    Configuration menu
    Copy the full SHA
    7769ed0 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2021

  1. Auto merge of rust-lang#87119 - jyn514:rustfmt-doc-private, r=Mark-Si…

    …mulacrum
    
    Document private items for rustfmt
    
    This is possible now that rust-lang#73936 has been merged.
    bors committed Aug 17, 2021
    Configuration menu
    Copy the full SHA
    e1dac88 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2021

  1. Fix stable toggle on gh pages configuration site

    A demonstration of the fix is included in the PR associated with this
    commit.
    ayazhafiz authored and calebcartwright committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    667a2da View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6959d03 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    916c238 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1045c62 View commit details
    Browse the repository at this point in the history
  5. Adds direct linking using header ids (rust-lang#4272)

    Separates out search and direct linking, uses header ids for direct linking and `?search=term` for filtering configurations.
    Once the app mounts the page is scrolled to the current header set in the url hash.
    aszenz authored and calebcartwright committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    c5f1d96 View commit details
    Browse the repository at this point in the history
  6. Adds query param for version no (rust-lang#4270)

    * Adds query param for version no
    
    This adds support for using a query parameter for selecting the version no
    
    * Adds error handling to configuration request
    
    Catch request exception in case fetching the configuration from the url fails, this can happen either if non existent version number is passed in or because of server issues.
    
    * Makes version selection better
    
    Covers a few common cases in which the version number can be specified.
    aszenz authored and calebcartwright committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    31c97ce View commit details
    Browse the repository at this point in the history
  7. docs: Preserve updated query param content and add config option links

    - Preserve search and version parameter updates in the url
    - Render headings with an anchor to itself for easier linking to config
      options, variants, etc.
    
    Demo: https://5efeb81ca3f0d.htmlsave.net/
    ayazhafiz authored and calebcartwright committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    3195d6c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    bf47fc1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f5c782f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5c7ac69 View commit details
    Browse the repository at this point in the history
  11. Exluding v0.8.1 and v0.7 from the config dropdown

    Older tags of the repo don't have the configuration.md file
    that the docs/index.html file uses to display configuration options.
    Removing them from the list since they don't apply to the use case of the
    documentation page.
    jdollar authored and calebcartwright committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    3c36a0c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    042c2ec View commit details
    Browse the repository at this point in the history
  13. Fix redirect issue

    Signed-off-by: gunadhya <6939749+gunadhya@users.noreply.github.com>
    gunadhya authored and calebcartwright committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    ec86cfd View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    f787288 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2021

  1. Configuration menu
    Copy the full SHA
    25ebc35 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9bc0dbe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c8bd550 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fd6b025 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2021

  1. Stabilise unix_process_await_more, extra ExitStatusExt methods

    Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
    ijackson committed Aug 24, 2021
    Configuration menu
    Copy the full SHA
    c4d4699 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2021

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

Commits on Aug 27, 2021

  1. Introduce ~const

     - [x] Removed `?const` and change uses of `?const`
     - [x] Added `~const` to the AST. It is gated behind const_trait_impl.
     - [x] Validate `~const` in ast_validation.
     - [ ] Add enum `BoundConstness` to the HIR. (With variants `NotConst` and
     `ConstIfConst` allowing future extensions)
     - [ ] Adjust trait selection and pre-existing code to use `BoundConstness`.
     - [ ] Optional steps (*for this PR, obviously*)
          - [ ] Fix rust-lang#88155
          - [ ] Do something with constness bounds in chalk
    fee1-dead committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    076916f View commit details
    Browse the repository at this point in the history
  2. Fix rustfmt test

    fee1-dead committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    20ddab3 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2021

  1. Configuration menu
    Copy the full SHA
    a603756 View commit details
    Browse the repository at this point in the history
  2. Implement One option for imports_granularity (rust-lang#4669)

    This option merges all imports into a single `use` statement as long as
    they have the same visibility.
    magurotuna authored and calebcartwright committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    ca9b050 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2021

  1. Add <title> to docs

    akiomik authored and calebcartwright committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    c71c68c View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2021

  1. Configuration menu
    Copy the full SHA
    d19f69c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    33d1368 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bfc6046 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ae5696a View commit details
    Browse the repository at this point in the history
  5. Detect bare blocks with type ascription that were meant to be a `stru…

    …ct` literal
    
    Address part of rust-lang#34255.
    
    Potential improvement: silence the other knock down errors in
    `issue-34255-1.rs`.
    estebank committed Sep 3, 2021
    Configuration menu
    Copy the full SHA
    48b8e45 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2021

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

Commits on Sep 6, 2021

  1. Auto merge of rust-lang#88493 - chenyukang:fix-duplicated-diagnostic,…

    … r=estebank
    
    Fix rust-lang#88256 remove duplicated diagnostics
    
    Fix rust-lang#88256
    bors committed Sep 6, 2021
    Configuration menu
    Copy the full SHA
    6271ded View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    59063e8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a59cac2 View commit details
    Browse the repository at this point in the history
  4. try to write the parameter on a new line in case the attribute/parame…

    …ter together are over max_width
    scampi authored and calebcartwright committed Sep 6, 2021
    Configuration menu
    Copy the full SHA
    c2f0e99 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3d8cd57 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2021

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

Commits on Sep 8, 2021

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

Commits on Sep 9, 2021

  1. Configuration menu
    Copy the full SHA
    a806883 View commit details
    Browse the repository at this point in the history
  2. rustfmt doc code blocks with multiple comma-separated attributes

    Added test covering this. Chose to treat the code block
    as rust if and only if all of the comma-separated attributes
    are rust-valid. Chose to allow/preserve whitespace around commas
    
    Fixes rust-lang#3158
    nipunn1313 authored and calebcartwright committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    b10ab51 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d647ebf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e014277 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2021

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

Commits on Sep 11, 2021

  1. Auto merge of rust-lang#84373 - cjgillot:resolve-span, r=michaelwoeri…

    …ster,petrochenkov
    
    Encode spans relative to the enclosing item
    
    The aim of this PR is to avoid recomputing queries when code is moved without modification.
    
    MCP at rust-lang/compiler-team#443
    
    This is achieved by :
    1. storing the HIR owner LocalDefId information inside the span;
    2. encoding and decoding spans relative to the enclosing item in the incremental on-disk cache;
    3. marking a dependency to the `source_span(LocalDefId)` query when we translate a span from the short (`Span`) representation to its explicit (`SpanData`) representation.
    
    Since all client code uses `Span`, step 3 ensures that all manipulations
    of span byte positions actually create the dependency edge between
    the caller and the `source_span(LocalDefId)`.
    This query return the actual absolute span of the parent item.
    As a consequence, any source code motion that changes the absolute byte position of a node will either:
    - modify the distance to the parent's beginning, so change the relative span's hash;
    - dirty `source_span`, and trigger the incremental recomputation of all code that
      depends on the span's absolute byte position.
    
    With this scheme, I believe the dependency tracking to be accurate.
    
    For the moment, the spans are marked during lowering.
    I'd rather do this during def-collection,
    but the AST MutVisitor is not practical enough just yet.
    The only difference is that we attach macro-expanded spans
    to their expansion point instead of the macro itself.
    bors committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    8743472 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2021

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

Commits on Sep 15, 2021

  1. Support @generated marker to skip code formatting

    This is a copy of rust-lang#4296 with these changes:
    * file is not reopened again to find if the file is generated
    * first five lines are scanned for `@generated` marker instead of one
    * no attempt is made to only search for marker in comments
    
    `@generated` marker is used by certain tools to understand that the
    file is generated, so it should be treated differently than a file
    written by a human:
    * linters should not be invoked on these files,
    * diffs in these files are less important,
    * and these files should not be reformatted.
    
    This PR proposes builtin support for `@generated` marker.
    
    I have not found a standard for a generated file marker, but:
    * Facebook [uses `@generated` marker](https://tinyurl.com/fb-generated)
    * Phabricator tool which was spawned from Facebook internal tool
      [also understands `@generated` marker](https://git.io/JnVHa)
    * Cargo inserts `@generated` marker into [generated Cargo.lock files](https://git.io/JnVHP)
    
    My personal story is that rust-protobuf project which I maintain
    was broken twice because of incompatibilities/bugs in rustfmt marker
    handling: [one](stepancheg/rust-protobuf#493),
    [two](stepancheg/rust-protobuf#551).
    (Also, rust-protobuf started generating `@generated` marker
    [6 years ago](https://git.io/JnV5h)).
    
    While rustfmt AST markers are useful to apply to a certain AST
    elements, disable whole-file-at-once all-tools-at-once text level
    marker might be easier to use and more reliable for generated code.
    topecongiro authored and calebcartwright committed Sep 15, 2021
    Configuration menu
    Copy the full SHA
    d4ffd1e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9d65b7d View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#88775 - pnkfelix:revert-anon-union-parsing,…

    … r=davidtwco
    
    Revert anon union parsing
    
    Revert PR rust-lang#84571 and rust-lang#85515, which implemented anonymous union parsing in a manner that broke the context-sensitivity for the `union` keyword and thus broke stable Rust code.
    
    Fix rust-lang#88583.
    Manishearth authored Sep 15, 2021
    Configuration menu
    Copy the full SHA
    52e1a52 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2021

  1. Configuration menu
    Copy the full SHA
    17cb2b1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7aa69e5 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2021

  1. Configuration menu
    Copy the full SHA
    dd445ab View commit details
    Browse the repository at this point in the history
  2. Migrate to 2021

    Mark-Simulacrum committed Sep 21, 2021
    Configuration menu
    Copy the full SHA
    9060bc5 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2021

  1. Configuration menu
    Copy the full SHA
    74df7b3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7f6229b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4b9d637 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2021

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

Commits on Sep 27, 2021

  1. Prevent removal of qualified path for tuple struct inside macro

    fixes 5005
    
    This was very similar to 4964 and the fix was to extract and pass along
    the qself of the ``PatKind::TupleStruct``
    ytmimi authored and calebcartwright committed Sep 27, 2021
    Configuration menu
    Copy the full SHA
    a5138b3 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2021

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

Commits on Oct 5, 2021

  1. Wrap long array and slice patterns.

    pcwalton authored and calebcartwright committed Oct 5, 2021
    Configuration menu
    Copy the full SHA
    f0f449d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0866b96 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2021

  1. Update derive attibute span to start after opening '('

    Fixes 4984
    
    When parsing derive attributes we're only concerned about the traits
    and comments listed between the opening and closing parentheses.
    
    Derive attribute spans currently start at the '#'.
    
        Span starts here
        |
        v
        #[derive(...)]
    
    After this update the derive spans start after the opening '('.
    
        Span starts here
                 |
                 V
        #[derive(...)]
    ytmimi authored and calebcartwright committed Oct 6, 2021
    Configuration menu
    Copy the full SHA
    40f4993 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    365a2f8 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2021

  1. Stabilize match_block_trailing_comma. (rust-lang#4145)

    Servo has used this since forever, and it'd be useful to be able to use
    rustfmt stable there so that we can use the same rustfmt version in
    both Firefox and Servo.
    
    Feel free to close this if there's any reason it shouldn't be done.
    emilio authored and calebcartwright committed Oct 11, 2021
    Configuration menu
    Copy the full SHA
    8b58cce View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2021

  1. Prevent structs with ".." from being rewritten with alignment

     rustfmt should only support rewriting a struct in an expression
     position with alignment (non-default behavior) when there is no rest
     (with or without a base) and all of the fields are non-shorthand.
    ytmimi authored and calebcartwright committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    d418057 View commit details
    Browse the repository at this point in the history
  2. Adjust non-empty tuple struct span to start before fields

    Resolves 5011
    
    Tuple structs with visibility modifiers and comments before the first
    field were incorrectly formatted. Comments would duplicate part of the
    visibility modifier and struct name.
    
    When trying to parse the tuple fields the ``items::Context`` searches
    for the opening '(', but because the visibility modifier introduces
    another '(' -- for example ``pub(crate)`` -- the parsing gets messed up.
    
    Now the span is adjusted to start after the struct identifier, or after
    any generics. Adjusting the span in this way ensures that the
    ``items::Contex`` will correctly find the tuple fields.
    ytmimi authored and calebcartwright committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    f7c4a44 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2021

  1. Update connector search in ControlFlow::rewrite_pat_expr for for loops

    Resolves 5009
    
    For loops represented by a ControlFlow object use " in" as their connector.
    rustfmt searches for the first uncommented occurrence of the word "in" within the
    current span and adjusts it's starting point to look for comments right after that.
    visually this looks like this:
    
        rustfmt starts looking for comments here
                |
                V
        for x in /* ... */ 0..1 {}
    
    This works well in most cases, however when the pattern also contains
    the word "in", this leads to issues.
    
        rustfmt starts looking for comments here
              |
              V
        for in_here in /* ... */ 0..1 {}
            -------
            pattern
    
    In order to correctly identify the connector, the new approach first
    updates the span to start after the pattern and then searches for the
    first uncommented occurrence of "in".
    ytmimi authored and calebcartwright committed Oct 14, 2021
    Configuration menu
    Copy the full SHA
    f2fb3c9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c9c1932 View commit details
    Browse the repository at this point in the history
  3. Add support for specifying multiple clobber_abi in asm!

    Allow multiple clobber_abi in asm
    
    Update docs
    Fix aarch64 test
    Combine abis
    Emit duplicate ABI error, empty ABI list error
    multiple clobber_abi
    asquared31415 committed Oct 14, 2021
    Configuration menu
    Copy the full SHA
    c801593 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2021

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

Commits on Oct 17, 2021

  1. Fix aarch tests

    asquared31415 committed Oct 17, 2021
    Configuration menu
    Copy the full SHA
    7323696 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0cff306 View commit details
    Browse the repository at this point in the history
  3. Handle DefinitiveListTactic::SpecialMacro when writing pre-comments

    Resolves 4615
    
    Previously only Vertical and Mixed enum variants of DefinitiveListTactic
    were considered when rewriting pre-comments for inner items in
    lists::write_list.
    
    Because we failed to considering the SpecialMacro variant we ended up in
    a scenario where a ListItem with a pre_comment and a pre_comment_style
    of ListItemCommentStyle::DifferentLine was written on the same line as the
    list item itself.
    
    Now we apply the same pre-comment formatting to SpecialMacro, Vertical,
    and Mixed variants of DefinitiveListTactic.
    ytmimi authored and calebcartwright committed Oct 17, 2021
    Configuration menu
    Copy the full SHA
    5f4811e View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2021

  1. Replace match expression with match! macro

    This is a follow up to 5f4811e
    
    The matches! macro expresses the condition more succinctly and avoids
    the extra level of indentation introduced with the match arm body.
    ytmimi authored and calebcartwright committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    1ae5c35 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2021

  1. Configuration menu
    Copy the full SHA
    9231263 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5f79583 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b9178dc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    efa8f55 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    714e904 View commit details
    Browse the repository at this point in the history
  6. update rustfmt

    calebcartwright committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    0697f56 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d3ecb02 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    65b3c85 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2021

  1. Configuration menu
    Copy the full SHA
    e1d94b8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8090f67 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b802629 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    170214f View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2021

  1. Make RSplit<T, P>: Clone not require T: Clone

    This addresses a TODO comment. The behavior of #[derive(Clone)]
    *does* result in a T: Clone requirement.
    
    Add a manual Clone implementation, matching Split and SplitInclusive.
    calebsander committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    afcee19 View commit details
    Browse the repository at this point in the history
  2. Implement split_array and split_array_mut

    Jethro Beekman committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    4a43976 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c736c2a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7d7ebf8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2ed5665 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#83233 - jethrogb:split_array, r=yaahc

    Implement split_array and split_array_mut
    
    This implements `[T]::split_array::<const N>() -> (&[T; N], &[T])` and `[T; N]::split_array::<const M>() -> (&[T; M], &[T])` and their mutable equivalents. These are another few “missing” array implementations now that const generics are a thing, similar to rust-lang#74373, rust-lang#75026, etc. Fixes rust-lang#74674.
    
    This implements `[T; N]::split_array` returning an array and a slice. Ultimately, this is probably not what we want, we would want the second return value to be an array of length N-M, which will likely be possible with future const generics enhancements. We need to implement the array method now though, to immediately shadow the slice method. This way, when the slice methods get stabilized, calling them on an array will not be automatic through coercion, so we won't have trouble stabilizing the array methods later (cf. into_iter debacle).
    
    An unchecked version of `[T]::split_array` could also be added as in rust-lang#76014. This would not be needed for `[T; N]::split_array` as that can be compile-time checked. Edit: actually, since split_at_unchecked is internal-only it could be changed to be split_array-only.
    matthiaskrgr authored Oct 22, 2021
    Configuration menu
    Copy the full SHA
    301a4f2 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#88300 - ijackson:exitstatusext-methods, r=y…

    …aahc
    
    Stabilise unix_process_wait_more, extra ExitStatusExt methods
    
    This stabilises the feature `unix_process_wait_more`.  Tracking issue rust-lang#80695, FCP needed.
    
    This was implemented in rust-lang#79982 and merged in January.
    matthiaskrgr authored Oct 22, 2021
    Configuration menu
    Copy the full SHA
    f24b5da View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#88728 - orlp:float-next-up-down, r=yaahc

    Added next_up and next_down for f32/f64.
    
    This is a pull request implementing the features described at rust-lang/rfcs#3173.
    matthiaskrgr authored Oct 22, 2021
    Configuration menu
    Copy the full SHA
    6e6adb4 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#89316 - asquared31415:multiple-clobber-abi,…

    … r=Amanieu
    
    Add support for specifying multiple clobber_abi in `asm!`
    
    r? `@Amanieu`
    cc rust-lang#72016
    `@rustbot` label: +A-inline-assembly +F-asm
    matthiaskrgr authored Oct 22, 2021
    Configuration menu
    Copy the full SHA
    1ff1ae1 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#89730 - crlf0710:type_changing_feature, r=j…

    …ackh726
    
    add feature flag for `type_changing_struct_update`
    
    This implements the PR0 part of the mentoring notes within rust-lang#86618.
    
    overrides the previous inactive rust-lang#86646 pr.
    
    r? `@nikomatsakis`
    matthiaskrgr authored Oct 22, 2021
    Configuration menu
    Copy the full SHA
    38d274f View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#89920 - hudson-ayers:location-detail-contro…

    …l, r=davidtwco
    
    Implement -Z location-detail flag
    
    This PR implements the `-Z location-detail` flag as described in rust-lang/rfcs#2091 .
    
    `-Z location-detail=val` controls what location details are tracked when using `caller_location`. This allows users to control what location details are printed as part of panic messages, by allowing them to exclude any combination of filenames, line numbers, and column numbers. This option is intended to provide users with a way to mitigate the size impact of `#[track_caller]`.
    
    Some measurements of the savings of this approach on an embedded binary can be found here: rust-lang#70579 (comment) .
    
    Closes rust-lang#70580 (unless people want to leave that open as a place for discussion of further improvements).
    
    This is my first real PR to rust, so any help correcting mistakes / understanding side effects / improving my tests is appreciated :)
    
    I have one question: RFC 2091 specified this as a debugging option (I think that is what -Z implies?). Does that mean this can never be stabilized without a separate MCP? If so, do I need to submit an MCP now, or is the initial RFC specifying this option sufficient for this to be merged as is, and then an MCP would be needed for eventual stabilization?
    matthiaskrgr authored Oct 22, 2021
    Configuration menu
    Copy the full SHA
    f95ad81 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#90070 - llogiq:compiletest-config-edition, …

    …r=Mark-Simulacrum
    
    Add edition configuration to compiletest
    
    This allows the compiletest configuration to set a default edition that can still be overridden with header annotations. Doing this will make it far easier for clippy to get our tests to the newest edition.
    
    r? `@Manishearth`
    matthiaskrgr authored Oct 22, 2021
    Configuration menu
    Copy the full SHA
    246fcd7 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#90087 - calebcartwright:rustfmt-subtree, r=…

    …calebcartwright
    
    Sync rustfmt subtree
    
    There's a large number of small fixes and new features, but nothing too big. Detailed changelog for those interested can be found in https://github.com/rust-lang/rustfmt/blob/master/CHANGELOG.md#1438-2021-10-20
    matthiaskrgr authored Oct 22, 2021
    Configuration menu
    Copy the full SHA
    5321c71 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#90117 - calebsander:fix/rsplit-clone, r=yaahc

    Make RSplit<T, P>: Clone not require T: Clone
    
    This addresses a TODO comment. The behavior of `#[derive(Clone)]` *does* result in a `T: Clone` requirement. Playground example:
    https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=a8b1a9581ff8893baf401d624a53d35b
    
    Add a manual `Clone` implementation, mirroring `Split` and `SplitInclusive`.
    `(R)?SplitN(Mut)?` don't have any `Clone` implementations, but I'll leave that for its own pull request.
    matthiaskrgr authored Oct 22, 2021
    Configuration menu
    Copy the full SHA
    33dd4d1 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#90166 - smmalis37:patch-1, r=joshtriplett

    Add comment documenting why we can't use a simpler solution
    
    See rust-lang#90144 for context.
    
    r? `@joshtriplett`
    matthiaskrgr authored Oct 22, 2021
    Configuration menu
    Copy the full SHA
    82c549c View commit details
    Browse the repository at this point in the history