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 8 pull requests #78697

Merged
merged 26 commits into from
Nov 3, 2020
Merged

Rollup of 8 pull requests #78697

merged 26 commits into from
Nov 3, 2020

Commits on Oct 26, 2020

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

Commits on Oct 29, 2020

  1. Configuration menu
    Copy the full SHA
    6bbb7fd View commit details
    Browse the repository at this point in the history
  2. Update tests

    GuillaumeGomez committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    fcee70f View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2020

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

Commits on Nov 1, 2020

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

Commits on Nov 2, 2020

  1. inliner: Remove redundant loop

    No functional changes intended.
    tmiasko committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    c0cbf63 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a8dfb26 View commit details
    Browse the repository at this point in the history
  3. Fix ICE when a future-incompat-report has its command-line level capped

    Fixes rust-lang#78660
    
    With PR rust-lang#75534 merged, we now run
    more lint-related code for future-incompat-report, even when their final
    level is Allow. Some lint-related code was not expecting `Level::Allow`,
    and had an explicit panic.
    
    This PR explicitly tracks the lint level set on the command line before
    `--cap-lints` is applied. This is used to emit a more precise error
    note (e.g. we don't say that `-W lint-name` was specified on the
    command line just because a lint was capped to Warn). As a result, we
    can now correctly emit a note that `-A` was used if we got
    `Level::Allow` from the command line (before the cap is applied).
    Aaron1011 committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    6c1f15f View commit details
    Browse the repository at this point in the history
  4. Fix intrinsic size_of stable link

    I noticed that it is pointing to the same link when I was reading
    rust-lang/rust-clippy#2997
    pickfire authored Nov 2, 2020
    Configuration menu
    Copy the full SHA
    c83c635 View commit details
    Browse the repository at this point in the history
  5. Treat trailing semicolon as a statement in macro call

    See rust-lang#61733 (comment)
    
    We now preserve the trailing semicolon in a macro invocation, even if
    the macro expands to nothing. As a result, the following code no longer
    compiles:
    
    ```rust
    macro_rules! empty {
        () => { }
    }
    
    fn foo() -> bool { //~ ERROR mismatched
        { true } //~ ERROR mismatched
        empty!();
    }
    ```
    
    Previously, `{ true }` would be considered the trailing expression, even
    though there's a semicolon in `empty!();`
    
    This makes macro expansion more token-based.
    Aaron1011 committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    e78e9d4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6e58b1c View commit details
    Browse the repository at this point in the history
  7. addressed feedback

    richkadel committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    6d94911 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7d24411 View commit details
    Browse the repository at this point in the history
  9. improve comments

    Co-authored-by: Jonas Schievink <[email protected]>
    kiffie and jonas-schievink authored Nov 2, 2020
    Configuration menu
    Copy the full SHA
    96db99a View commit details
    Browse the repository at this point in the history
  10. indicate calling convention

    kiffie committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    1a232cb View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5130f2e View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2020

  1. Rollup merge of rust-lang#78376 - Aaron1011:feature/consistent-empty-…

    …expr, r=petrochenkov
    
    Treat trailing semicolon as a statement in macro call
    
    See rust-lang#61733 (comment)
    
    We now preserve the trailing semicolon in a macro invocation, even if
    the macro expands to nothing. As a result, the following code no longer
    compiles:
    
    ```rust
    macro_rules! empty {
        () => { }
    }
    
    fn foo() -> bool { //~ ERROR mismatched
        { true } //~ ERROR mismatched
        empty!();
    }
    ```
    
    Previously, `{ true }` would be considered the trailing expression, even
    though there's a semicolon in `empty!();`
    
    This makes macro expansion more token-based.
    JohnTitor authored Nov 3, 2020
    Configuration menu
    Copy the full SHA
    0716724 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#78400 - GuillaumeGomez:fix-unindent, r=jyn514

    Fix unindent in doc comments
    
    Fixes rust-lang#70732
    
    r? ``@jyn514``
    JohnTitor authored Nov 3, 2020
    Configuration menu
    Copy the full SHA
    e731a5a View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#78575 - tmiasko:compiletest-rustc-env, r=Aa…

    …ron1011
    
    Add a test for compiletest rustc-env & unset-rustc-env directives
    
    ... and move compiletest meta tests into a separate directory.
    JohnTitor authored Nov 3, 2020
    Configuration menu
    Copy the full SHA
    54d9a67 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#78616 - richkadel:unstable-book-instr-cov, …

    …r=tmandry
    
    Document -Zinstrument-coverage
    
    r? ``@tmandry``
    FYI ``@wesleywiser``
    
    Here is my proposed document for LLVM source-based code coverage.
    
    I based it on the `profile.md` page, in the same directory, and on the Clang guide for LLVM source-based coverage.
    JohnTitor authored Nov 3, 2020
    Configuration menu
    Copy the full SHA
    416dd67 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#78663 - Aaron1011:fix/cap-future-compat, r=…

    …tmandry
    
    Fix ICE when a future-incompat-report has its command-line level capped
    
    Fixes rust-lang#78660
    
    With PR rust-lang#75534 merged, we now run
    more lint-related code for future-incompat-report, even when their final
    level is Allow. Some lint-related code was not expecting `Level::Allow`,
    and had an explicit panic.
    
    This PR explicitly tracks the lint level set on the command line before
    `--cap-lints` is applied. This is used to emit a more precise error
    note (e.g. we don't say that `-W lint-name` was specified on the
    command line just because a lint was capped to Warn). As a result, we
    can now correctly emit a note that `-A` was used if we got
    `Level::Allow` from the command line (before the cap is applied).
    JohnTitor authored Nov 3, 2020
    Configuration menu
    Copy the full SHA
    8894c90 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#78664 - pickfire:patch-4, r=jonas-schievink

    Fix intrinsic size_of stable link
    
    I noticed that it is pointing to the same link when I was reading
    rust-lang/rust-clippy#2997
    JohnTitor authored Nov 3, 2020
    Configuration menu
    Copy the full SHA
    9d4cdbb View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#78668 - tmiasko:inline, r=oli-obk

    inliner: Remove redundant loop
    
    No functional changes intended.
    JohnTitor authored Nov 3, 2020
    Configuration menu
    Copy the full SHA
    cf06217 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#78676 - kiffie:embedded-bare-mipsr2, r=jona…

    …s-schievink
    
    add mipsel-unknown-none target
    
    This adds a target for bare MIPS32r2, little endian, softfloat. This target can be used for PIC32 microcontrollers (or possibly for other devices that have a MIPS MCU core such as the M4K core).
    
    Tried to find a name for the target that is in line with the naming scheme apparently used for the other MIPS targets.
    
    r? `@jonas-schievink`
    JohnTitor authored Nov 3, 2020
    Configuration menu
    Copy the full SHA
    1cb137b View commit details
    Browse the repository at this point in the history