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 5 pull requests #71549

Merged
merged 13 commits into from
Apr 25, 2020
Merged

Rollup of 5 pull requests #71549

merged 13 commits into from
Apr 25, 2020

Commits on Apr 20, 2020

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

Commits on Apr 23, 2020

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

    flip1995 committed Apr 23, 2020
    Configuration menu
    Copy the full SHA
    898cbf2 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2020

  1. Configuration menu
    Copy the full SHA
    e42337b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    485f199 View commit details
    Browse the repository at this point in the history
  3. Take a single root node in range_search

    The unsafe code can be justified within range_search, as it makes sure to not
    overlap the returned references, but from the callers perspective it's an
    entirely safe algorithm and there's no need for the caller to know about the
    duplication.
    Mark-Simulacrum committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    e6cf6a7 View commit details
    Browse the repository at this point in the history
  4. Revert "Move early needs_subst bailout to _after_ linting."

    This reverts commit 99492e4.
    RalfJung authored and pnkfelix committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    be0e9c2 View commit details
    Browse the repository at this point in the history
  5. adjust tests

    RalfJung authored and pnkfelix committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    7d23c3b View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2020

  1. Rollup merge of rust-lang#71364 - Amanieu:zprofile_compiler_builtins,…

    … r=cramertj
    
    Ignore -Zprofile when building compiler_builtins
    
    rust-lang#70846 made the `compiler_builtins` crate ignore the default codegen-units setting and instead always split each function into a different codegen unit.
    
    This unfortunately breaks `-Zprofile` which requires a single codegen unit per crate (see rust-lang#71283). You can notice this when building with `cargo -Zbuild-std` and `RUSTFLAGS` containing `-Zprofile`.
    
    This PR works around this issue by just ignoring `-Zprofile` for the `compiler-builtins` crate.
    Dylan-DPC authored Apr 25, 2020
    Configuration menu
    Copy the full SHA
    cbbf065 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#71494 - flip1995:while_let_span, r=petroche…

    …nkov
    
    Fix span of while (let) expressions after lowering
    
    Credit goes to @alex-700 who found this while trying to fix a suggestion in Clippy.
    
    While `if`, `try`, `for` and `await` expressions get the span of the original expression when desugared, `while` loops got the span of the scrutinee, which lead to weird code, when building the suggestion, that randomly worked: https://github.com/rust-lang/rust-clippy/pull/5511/files#diff-df4e9d2bf840a5f2e3b580bef73da3bcR106-R108
    
    I'm wondering, if `DesugaringKind` should get a variant `WhileLoop` and instead of using the span of the `ast::ExprKind::While` expr directly, a new span with `self.mark_span_with_reason` should be used, like it is done with `for` loops.
    
    There was some fallout, but I think that is acceptable. If not, I need some help to find out where this can be fixed.
    Dylan-DPC authored Apr 25, 2020
    Configuration menu
    Copy the full SHA
    6ded356 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#71517 - flip1995:unused_braces_hack, r=oli-obk

     Quick and dirty fix of the unused_braces lint
    
    cc @lcnr
    
    Adresses rust-lang#70814
    
    This at least prevents lint output, if no span is available. Even though this also prevents the `unused_parens` lint from emitting, when the `DUMMY_SP` is used there, but I think that should be ok, since error messages without a span are quite useless anyway.
    
    Clippy CI is currently blocked on this bug. If this quick and dirty fix should be rejected, I could try to work around this in Clippy.
    
    r? @shepmaster
    Dylan-DPC authored Apr 25, 2020
    Configuration menu
    Copy the full SHA
    4762e22 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#71523 - Mark-Simulacrum:alloc-inline-dup, r…

    …=Amanieu
    
    Take a single root node in range_search
    
    The unsafe code can be justified within range_search, as it makes sure to not
    overlap the returned references, but from the callers perspective it's an
    entirely safe algorithm and there's no need for the caller to know about the
    duplication.
    
    cc @ssomers
    r? @Amanieu
    Dylan-DPC authored Apr 25, 2020
    Configuration menu
    Copy the full SHA
    62b3624 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#71533 - pnkfelix:revert-70566-for-const-val…

    …idation-fix, r=Dylan-DPC
    
    Revert PR 70566 for const validation fix
    
    This is a port of PR rust-lang#71441 but ported to the master branch, as discussed in [yesterday's T-compiler meeting](https://zulip-archive.rust-lang.org/131828tcompiler/88751weeklymeeting2020042354818.html#195065903)
    Dylan-DPC authored Apr 25, 2020
    Configuration menu
    Copy the full SHA
    4b5b6cb View commit details
    Browse the repository at this point in the history