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

Rustup #9516

Merged
merged 50 commits into from
Sep 29, 2022
Merged

Rustup #9516

merged 50 commits into from
Sep 29, 2022

Commits on Sep 6, 2022

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

Commits on Sep 7, 2022

  1. rustc: Parameterize ty::Visibility over used ID

    It allows using `LocalDefId` instead of `DefId` when possible, and also encode cheaper `Visibility<DefIndex>` into metadata.
    petrochenkov committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    9136096 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2022

  1. Arena-allocate hir::Lifetime.

    This shrinks `hir::Ty` from 72 to 48 bytes.
    
    `visit_lifetime` is added to the HIR stats collector because these types
    are now stored in memory on their own, instead of being within other
    types.
    nnethercote committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    977b6e2 View commit details
    Browse the repository at this point in the history
  2. Introduce DotDotPos.

    This shrinks `hir::Pat` from 88 to 72 bytes.
    nnethercote committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    c86a9c0 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of #101498 - petrochenkov:visparam, r=cjgillot

    rustc: Parameterize `ty::Visibility` over used ID
    
    It allows using `LocalDefId` instead of `DefId` when possible, and also encode cheaper `Visibility<DefIndex>` into metadata.
    Dylan-DPC committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    c3db185 View commit details
    Browse the repository at this point in the history
  4. Auto merge of #101467 - nnethercote:shrink-hir-Ty-Pat, r=spastorino

    Shrink `hir::Ty` and `hir::Pat`
    
    r? `@ghost`
    bors committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    30a5815 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of #101501 - Jarcho:tcx_lint_passes, r=davidtwco

    Allow lint passes to be bound by `TyCtxt`
    
    This will allow storing things like `Ty<'tcx>` inside late lint passes. It's already possible to store various id types so they're already implicitly bound to a specific `TyCtxt`.
    
    r? rust-lang/compiler
    Dylan-DPC committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    9faa588 View commit details
    Browse the repository at this point in the history
  6. Auto merge of #101577 - Dylan-DPC:rollup-l9xw7i7, r=Dylan-DPC

    Rollup of 7 pull requests
    
    Successful merges:
    
     - #98933 (Opaque types' generic params do not imply anything about their hidden type's lifetimes)
     - #101041 (translations(rustc_session): migrates rustc_session to use SessionDiagnostic - Pt. 2)
     - #101424 (Adjust and slightly generalize operator error suggestion)
     - #101496 (Allow lower_lifetime_binder receive a closure)
     - #101501 (Allow lint passes to be bound by `TyCtxt`)
     - #101515 (Recover from typo where == is used in place of =)
     - #101545 (Remove unnecessary `PartialOrd` and `Ord`)
    
    Failed merges:
    
    r? `@ghost`
    `@rustbot` modify labels: rollup
    bors committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    f47a1e2 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2022

  1. Remove ReEmpty

    jackh726 committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    b640eaa View commit details
    Browse the repository at this point in the history
  2. Make clippy happy

    compiler-errors committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    ac1c68a View commit details
    Browse the repository at this point in the history
  3. Appease clippy again

    compiler-errors committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    854f751 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    98bf99e View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2022

  1. Configuration menu
    Copy the full SHA
    41b3084 View commit details
    Browse the repository at this point in the history
  2. Auto merge of #98559 - jackh726:remove-reempty, r=oli-obk

    Remove ReEmpty
    
    r? rust-lang/types
    bors committed Sep 10, 2022
    Configuration menu
    Copy the full SHA
    42361da View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2022

  1. Configuration menu
    Copy the full SHA
    f6005c6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3081535 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0d1469a View commit details
    Browse the repository at this point in the history
  4. Auto merge of #99334 - NiklasJonsson:84447/error-privacy, r=oli-obk

    rustc_error, rustc_private: Switch to stable hash containers
    
    Relates rust-lang/rust#84447
    bors committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    4e313a5 View commit details
    Browse the repository at this point in the history
  5. Fix clippy.

    reitermarkus committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    c0e249c View commit details
    Browse the repository at this point in the history
  6. Simplify clippy fix.

    reitermarkus committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    64a42db View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2022

  1. Make x.py check work

    eholk committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    b95b285 View commit details
    Browse the repository at this point in the history
  2. Auto merge of #100640 - reitermarkus:socket-display-buffer, r=thomcc

    Use `DisplayBuffer` for socket addresses.
    
    Continuation of rust-lang/rust#100625 for socket addresses.
    
    Renames `net::addr` to `net::addr::socket`, `net::ip` to `net::addr::ip` and `net::ip::display_buffer::IpDisplayBuffer` to `net::addr::display_buffer::DisplayBuffer`.
    bors committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    985afe0 View commit details
    Browse the repository at this point in the history
  3. Address code review comments

    eholk committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    27e91b6 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2022

  1. Auto merge of #101709 - nnethercote:simplify-visitors-more, r=cjgillot

    Simplify visitors more
    
    A successor to #100392.
    
    r? `@cjgillot`
    bors committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    cf043f6 View commit details
    Browse the repository at this point in the history
  2. Auto merge of #101212 - eholk:dyn-star, r=compiler-errors

    Initial implementation of dyn*
    
    This PR adds extremely basic and incomplete support for [dyn*](https://smallcultfollowing.com/babysteps//blog/2022/03/29/dyn-can-we-make-dyn-sized/). The goal is to get something in tree behind a flag to make collaboration easier, and also to make sure the implementation so far is not unreasonable. This PR does quite a few things:
    
    * Introduce `dyn_star` feature flag
    * Adds parsing for `dyn* Trait` types
    * Defines `dyn* Trait` as a sized type
    * Adds support for explicit casts, like `42usize as dyn* Debug`
      * Including const evaluation of such casts
    * Adds codegen for drop glue so things are cleaned up properly when a `dyn* Trait` object goes out of scope
    * Adds codegen for method calls, at least for methods that take `&self`
    
    Quite a bit is still missing, but this gives us a starting point. Note that this is never intended to become stable surface syntax for Rust, but rather `dyn*` is planned to be used as an implementation detail for async functions in dyn traits.
    
    Joint work with `@nikomatsakis` and `@compiler-errors.`
    
    r? `@bjorn3`
    bors committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    f6a07d1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    525e0c8 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2022

  1. Auto merge of #101811 - flip1995:clippyup, r=flip1995

    Clippy pre beta branch fix
    
    Before beta is branched on Friday, I want to move the `unused_peekable` lint  that was added in this release cycle (1.65) to `nursery`. This lint was already reported twice (rust-lang#9456, rust-lang#9462) in a short time, so it is probably a good idea to fix it before it hits beta and then stable.
    
    r? `@Manishearth`
    bors committed Sep 15, 2022
    Configuration menu
    Copy the full SHA
    dcc6153 View commit details
    Browse the repository at this point in the history
  2. Fix clippy

    est31 committed Sep 15, 2022
    Configuration menu
    Copy the full SHA
    2be8b73 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2022

  1. Revert "Revert "Rollup merge of #98582 - oli-obk:unconstrained_opaque…

    …_type, r=estebank""
    
    This reverts commit 4a742a6.
    oli-obk committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    c2e9c99 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2022

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

Commits on Sep 20, 2022

  1. Auto merge of #99806 - oli-obk:unconstrained_opaque_type, r=estebank

    Allow patterns to constrain the hidden type of opaque types
    
    fixes #96572
    
    reverts a revert as original PR was a perf regression that was fixed by reverting it: rust-lang/rust#99368 (comment))
    
    TODO:
    
    * check if rust-lang/rust#99685 is avoided
    bors committed Sep 20, 2022
    Configuration menu
    Copy the full SHA
    0dc24ca View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2022

  1. Merge commit '7248d06384c6a90de58c04c1f46be88821278d8b' into sync-fro…

    …m-clippy
    David Koloski committed Sep 21, 2022
    Configuration menu
    Copy the full SHA
    4d01529 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    09b1e8f View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2022

  1. introduce mir::Unevaluated

    b-naber committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    adc7e3e View commit details
    Browse the repository at this point in the history
  2. Rollup merge of #102123 - schteve:clippy-note, r=Manishearth

    Add note to clippy::non_expressive_names doc
    
    Addresses confusion in rust-lang#9514 by updating the lint docs.
    matthiaskrgr committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    2063b8f View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2022

  1. Configuration menu
    Copy the full SHA
    26861fb View commit details
    Browse the repository at this point in the history
  2. Auto merge of #102056 - b-naber:unevaluated, r=lcnr

    Introduce mir::Unevaluated
    
    Previously the distinction between unevaluated constants in the type-system and in mir was not explicit and a little confusing. Probably better to introduce its own type for that.
    
    r? `@lcnr`
    bors committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    d9277c6 View commit details
    Browse the repository at this point in the history
  3. Bless clippy.

    cjgillot committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    781e45c View commit details
    Browse the repository at this point in the history
  4. Stabilize const BTree{Map,Set}::new

    Since `len` and `is_empty` are not const stable yet, this also
    creates a new feature for them since they previously used the same
    `const_btree_new` feature.
    Noratrieb committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    334f453 View commit details
    Browse the repository at this point in the history
  5. Fix clippy's const fn stability check for CURRENT_RUSTC_VERSION

    Since clippy can use a projects MSRV for its lints, it might not want
    to consider functions as const stable if they have been added lately.
    
    Functions that have been stabilized this version use
    CURRENT_RUSTC_VERSION as their version, which gets then turned into the
    current version, which might be something like `1.66.0-dev`. The version
    parser cannot deal with this version, so it has to be stripped off.
    Noratrieb committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    e30b37b View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2022

  1. Auto merge of #102068 - cjgillot:erased-lifetime-print, r=eholk

    Always print '_, even for erased lifetimes.
    
    Explicit lifetime arguments are now the recommended syntax in rust 2018 and rust 2021.  This PR applies this discipline to rustc itself.
    bors committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    de8a1dd View commit details
    Browse the repository at this point in the history
  2. separate definitions and HIR owners

    fix a ui test
    
    use `into`
    
    fix clippy ui test
    
    fix a run-make-fulldeps test
    
    implement `IntoQueryParam<DefId>` for `OwnerId`
    
    use `OwnerId` for more queries
    
    change the type of `ParentOwnerIterator::Item` to `(OwnerId, OwnerNode)`
    TaKO8Ki committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    ea75178 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2022

  1. Rollup merge of #102197 - Nilstrieb:const-new-🌲, r=Mark-Simulacrum

    Stabilize const `BTree{Map,Set}::new`
    
    The FCP was completed in #71835.
    
    Since `len` and `is_empty` are not const stable yet, this also creates a new feature for them since they previously used the same `const_btree_new` feature.
    fee1-dead committed Sep 26, 2022
    Configuration menu
    Copy the full SHA
    c69edba View commit details
    Browse the repository at this point in the history
  2. remove cfg(bootstrap)

    pietroalbini committed Sep 26, 2022
    Configuration menu
    Copy the full SHA
    06568fd View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2022

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

Commits on Sep 28, 2022

  1. Configuration menu
    Copy the full SHA
    bbcde66 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    458e832 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2022

  1. Configuration menu
    Copy the full SHA
    5797911 View commit details
    Browse the repository at this point in the history
  2. Fix dogfood

    flip1995 committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    67af127 View commit details
    Browse the repository at this point in the history
  3. Update lints after sync

    flip1995 committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    924c1ce View commit details
    Browse the repository at this point in the history