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 15 pull requests #90159

Closed
wants to merge 40 commits into from
Closed

Commits on Oct 1, 2021

  1. nice_region_error: Include lifetime placeholders in error output

    As you can see in src/test/ui/traits/self-without-lifetime-constraint.stderr
    you can get very confusing type names if you don't have this.
    
    Fixes rust-lang#87763
    notriddle committed Oct 1, 2021
    Configuration menu
    Copy the full SHA
    82348ef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    729ff2d View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2021

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

Commits on Oct 15, 2021

  1. Configuration menu
    Copy the full SHA
    bd1a1e4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a697aa6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ffdd5a0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4333091 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2021

  1. rustc_ast: Turn MutVisitor::token_visiting_enabled into a constant

    It's a visitor property rather than something that needs to be determined at runtime
    petrochenkov committed Oct 17, 2021
    Configuration menu
    Copy the full SHA
    d2470e7 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2021

  1. Fix const qualification when executed after promotion

    The const qualification was so far performed before the promotion and
    the implementation assumed that it will never encounter a promoted.
    
    With `const_precise_live_drops` feature, checking for live drops is
    delayed until after drop elaboration, which in turn runs after
    promotion. so the assumption is no longer true. When evaluating
    `NeedsNonConstDrop` it is now possible to encounter promoteds.
    
    Use type base qualification for the promoted. It is a sound
    approximation in general, and in the specific case of promoteds and
    `NeedsNonConstDrop` it is precise.
    tmiasko committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    7581bae View commit details
    Browse the repository at this point in the history
  2. Reject closures in patterns

    tmiasko committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    c97cf7f View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2021

  1. Configuration menu
    Copy the full SHA
    21d02bf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    396a4f4 View commit details
    Browse the repository at this point in the history
  3. Change Duration::from_secs_* underflow error

    Now explicitly says negative value.
    mbartlett21 committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    fe060bf View commit details
    Browse the repository at this point in the history
  4. Trait objects

    BoxyUwU committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    6469fba View commit details
    Browse the repository at this point in the history
  5. Return pos impl trait

    BoxyUwU committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    a81e489 View commit details
    Browse the repository at this point in the history
  6. Wfness

    BoxyUwU committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    83a1834 View commit details
    Browse the repository at this point in the history
  7. Inference

    BoxyUwU committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    8f23779 View commit details
    Browse the repository at this point in the history
  8. add fixme

    BoxyUwU committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    7a8bd2d View commit details
    Browse the repository at this point in the history
  9. Ordering

    BoxyUwU committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    c75d8cb View commit details
    Browse the repository at this point in the history
  10. *dust dust*

    BoxyUwU committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    e7a9e82 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2021

  1. Configuration menu
    Copy the full SHA
    74c6636 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ab44e46 View commit details
    Browse the repository at this point in the history
  3. triagebot: Treat I-*nominated like I-nominated

    rustbot doesn't allow unauthenticated users to set `I-nominated`; apply
    the same permissions to the new `I-*nominated` labels.
    joshtriplett committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    d50832b View commit details
    Browse the repository at this point in the history
  4. Clarify undefined behaviour for binary heap, btree and hashset

    Previously, it wasn't clear whether "This could include" was referring
    to logic errors, or undefined behaviour. Tweak wording to clarify this
    sentence does not relate to UB.
    Wilfred authored and Mark-Simulacrum committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    04c1ec5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0dba9d0 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2021

  1. Rollup merge of rust-lang#87537 - Wilfred:improve-min-heap-docs, r=Ma…

    …rk-Simulacrum
    
    Clarify undefined behaviour in binary heap, btree and hashset docs
    
    Previously, it wasn't clear whether "This could include" was referring to logic errors, or undefined behaviour. Tweak wording to clarify this sentence does not relate to UB.
    JohnTitor committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    121411d View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#88624 - kellerkindt:master, r=JohnTitor

    Stabilize feature `saturating_div` for rust 1.58.0
    
    The tracking issue is rust-lang#89381
    
    This seems like a reasonable simple change(?). The feature `saturating_div` was added as part of the ongoing effort to implement a `Saturating` integer type (see rust-lang#87921). The implementation has been discussed [here](rust-lang#87921 (comment)) and [here](rust-lang#87921 (comment)). It extends the list of saturating operations on integer types (like `saturating_add`, `saturating_sub`, `saturating_mul`, ...) by the function `fn saturating_div(self, rhs: Self) -> Self`.
    
    The stabilization of the feature `saturating_int_impl` (for the `Saturating` type) needs to have this stabilized first.
    
    Closes rust-lang#89381
    JohnTitor committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    0c7b513 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#89257 - aDotInTheVoid:macro-error-2, r=este…

    …bank
    
    Give better error for `macro_rules name`
    
    follow up to rust-lang#89221
    
    r? `@estebank`
    
    `@rustbot` modify labels: +A-diagnostics +A-parser
    JohnTitor committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    1585730 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#89416 - notriddle:notriddle/do-not-elide-li…

    …fetimes-in-region-errors, r=jackh726
    
    nice_region_error: Include lifetime placeholders in error output
    
    As you can see in src/test/ui/traits/self-without-lifetime-constraint.stderr
    you can get very confusing type names if you don't have this.
    
    Fixes rust-lang#87763
    JohnTitor committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    0cc8b39 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#89665 - seanyoung:push-empty, r=m-ou-se

    Ensure that pushing empty path works as before on verbatim paths
    
    Fixes: rust-lang#89658
    
    Signed-off-by: Sean Young <sean@mess.org>
    JohnTitor committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    0d70763 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#89895 - camsteffen:for-loop-head-span, r=da…

    …vidtwco
    
    Don't mark for loop iter expression as desugared
    
    We typically don't mark spans of lowered things as desugared. This helps Clippy rightly discern when code is (not) from expansion. This was discovered by `@flip1995` at rust-lang/rust-clippy#7789 (comment).
    JohnTitor committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    01f7352 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#89922 - JohnTitor:update-e0637, r=jackh726

    Update E0637 description to mention `&` w/o an explicit lifetime name
    
    Deal with rust-lang#89824 (comment). Another solution would be splitting the error code into two as (I think) it's a bit unclear to users why they have the same error code.
    JohnTitor committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    8c210e0 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#89944 - mbartlett21:patch-2, r=Mark-Simulacrum

    Change `Duration::[try_]from_secs_{f32, f64}` underflow error
    
    The error message now says that it was a negative value.
    
    Fixes rust-lang#89913.
    JohnTitor committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    5256761 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#89991 - petrochenkov:visitok2, r=jackh726

    rustc_ast: Turn `MutVisitor::token_visiting_enabled` into a constant
    
    It's a visitor property rather than something that needs to be determined at runtime
    JohnTitor committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    05e0281 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#90028 - tmiasko:structural-match-closure, r…

    …=spastorino
    
    Reject closures in patterns
    
    Fixes rust-lang#90013.
    JohnTitor committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    a93e7e0 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#90069 - tmiasko:promoted-const-qualif, r=ol…

    …i-obk
    
    Fix const qualification when executed after promotion
    
    The const qualification was so far performed before the promotion and
    the implementation assumed that it will never encounter a promoted.
    
    With `const_precise_live_drops` feature, checking for live drops is
    delayed until after drop elaboration, which in turn runs after
    promotion. so the assumption is no longer true. When evaluating
    `NeedsNonConstDrop` it is now possible to encounter promoteds.
    
    Use type base qualification for the promoted. It is a sound
    approximation in general, and in the specific case of promoteds and
    `NeedsNonConstDrop` it is precise.
    
    Fixes rust-lang#89938.
    JohnTitor committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    efdb8e5 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#90078 - JohnTitor:test-83479, r=Mark-Simula…

    …crum
    
    Add a regression test for issue-83479
    
    Add a regression test for rust-lang#83479 (comment), but not close the issue, see rust-lang#83479 (comment).
    JohnTitor committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    7bcc6be View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#90114 - BoxyUwU:cg_defaults_tests, r=lcnr

    Add some tests for const_generics_defaults
    
    I think this covers some of the stuff required for stabilisation report, some of these tests are probably covering stuff we already have but it can't hurt to have more :)
    
    r? ```@lcnr```
    JohnTitor committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    61e4e3b View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#90115 - samlich:test-issue-78561, r=oli-obk

    Add test for issue rust-lang#78561
    
    Adds test for and closes rust-lang#78561 which previously crashed compiler.
    JohnTitor committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    c24e75a View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#90129 - joshtriplett:triagebot-nominated, r…

    …=Mark-Simulacrum
    
    triagebot: Treat `I-*nominated` like `I-nominated`
    
    rustbot doesn't allow unauthenticated users to set `I-nominated`; apply the same permissions to the new `I-*nominated` labels.
    JohnTitor committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    1fbce5c View commit details
    Browse the repository at this point in the history