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 9 pull requests #88584

Closed
wants to merge 23 commits into from

Commits on Aug 27, 2021

  1. Path remapping: Make behavior of diagnostics output dependent on pres…

    …ence of --remap-path-prefix.
    michaelwoerister committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    af1b65c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8436fe1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c296c89 View commit details
    Browse the repository at this point in the history
  4. Point at unclosed delimiters as part of the primary MultiSpan

    Both the place where the parser encounters a needed closed delimiter and
    the unclosed opening delimiter are important, so they should get the
    same level of highlighting in the output.
    estebank committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    c6d800d View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2021

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

Commits on Aug 30, 2021

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

Commits on Aug 31, 2021

  1. Remove single use variables

    ptrojahn committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    99a3d64 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ffc43b8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7189c85 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7d18052 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2021

  1. Configuration menu
    Copy the full SHA
    59b245e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6c9e708 View commit details
    Browse the repository at this point in the history
  3. fix clippy lints

    klensy committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    f5f489b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a5fd955 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2021

  1. Rollup merge of rust-lang#88363 - michaelwoerister:remapped-diagnosti…

    …cs, r=estebank
    
    Path remapping: Make behavior of diagnostics output dependent on presence of --remap-path-prefix.
    
    This PR fixes a regression (rust-lang#87745) with `--remap-path-prefix` where the flag stopped causing diagnostic messages to be remapped as well. The regression was introduced in rust-lang#83813 where we erroneously assumed that remapping of diagnostic messages was not desired anymore (because rust-lang#70642 partially undid that functionality with nobody objecting).
    
    The issue is fixed by making `--remap-path-prefix` remap diagnostic messages again, including for paths that have been remapped in upstream crates (e.g. the standard library). This means that "sysroot-localization" (implemented in rust-lang#70642) is also disabled if `rustc` is invoked with `--remap-path-prefix`. The assumption is that once someone starts explicitly remapping paths they also don't want paths to their local Rust installation in their build output.
    
    In the future we might want to give more fine-grained control over this behavior via compiler flags (see rust-lang/rfcs#3127 for a related RFC). For now this PR is intended as a regression fix.
    
    This PR is an alternative to rust-lang#88191, which makes diagnostic messages be remapped unconditionally. That approach, however, would effectively revert rust-lang#70642.
    
    Fixes rust-lang#87745.
    
    cc ``@cbeuw``
    r? ``@ghost``
    GuillaumeGomez authored Sep 2, 2021
    Configuration menu
    Copy the full SHA
    d9047db View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#88386 - estebank:unmatched-delims, r=jackh726

    Point at unclosed delimiters as part of the primary MultiSpan
    
    Both the place where the parser encounters a needed closed delimiter and
    the unclosed opening delimiter are important, so they should get the
    same level of highlighting in the output.
    
    _Context: https://twitter.com/mwk4/status/1430631546432675840_
    GuillaumeGomez authored Sep 2, 2021
    Configuration menu
    Copy the full SHA
    2693e12 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#88428 - petrochenkov:stmtid, r=Aaron1011

    expand: Treat more macro calls as statement macro calls
    
    This PR implements the suggestion from rust-lang#87981 (comment) and treats fn-like macro calls inside `StmtKind::Item` and `StmtKind::Semi` as statement macro calls, which is consistent with treatment of attribute invocations in the same positions and with token-based macro expansion model in general.
    
    This also allows to remove a special case in `NodeId` assignment (previously tried in rust-lang#87779), and to use statement `NodeId`s for linting (`assign_id!`).
    
    r? `@Aaron1011`
    GuillaumeGomez authored Sep 2, 2021
    Configuration menu
    Copy the full SHA
    2f22cad View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#88505 - ibraheemdev:use-unwrap-unchecked, r…

    …=kennytm
    
    Use `unwrap_unchecked` where possible
    GuillaumeGomez authored Sep 2, 2021
    Configuration menu
    Copy the full SHA
    c892775 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#88532 - ptrojahn:single_use, r=davidtwco

    Remove single use variables
    GuillaumeGomez authored Sep 2, 2021
    Configuration menu
    Copy the full SHA
    1d1e931 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b341e56 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#88547 - notriddle:notriddle/is-expr-delims-…

    …necessary, r=davidtwco
    
    fix(rustc_lint): better detect when parens are necessary
    
    Fixes rust-lang#88519
    GuillaumeGomez authored Sep 2, 2021
    Configuration menu
    Copy the full SHA
    60eb925 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#88560 - klensy:formatter-pad-shrink, r=m-ou-se

    `fmt::Formatter::pad`: don't call chars().count() more than one time
    
    First commit merges two branches of match to call chars().count() only once: that should be faster if this method hits place of 3rd (previous) branch, plus quarter shorter.
    Second commit fixes some clippy lints while i'm here (should it be separate PR?).
    GuillaumeGomez authored Sep 2, 2021
    Configuration menu
    Copy the full SHA
    a90fff6 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#88565 - lqd:issue-83190, r=spastorino

    Add regression test for issue 83190
    
    Reduced from `bioyino-metric` by ```@hellow554``` and myself.
    
    Closes rust-lang#83190.
    
    r? ```@spastorino```
    GuillaumeGomez authored Sep 2, 2021
    Configuration menu
    Copy the full SHA
    7e3855b View commit details
    Browse the repository at this point in the history