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 #120512

Closed
wants to merge 27 commits into from

Commits on Jan 28, 2024

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

Commits on Jan 30, 2024

  1. limit the names_possiblilities to less than 3

    Co-authored-by: Urgau <3616612+Urgau@users.noreply.github.com>
    chenyukang and Urgau authored Jan 30, 2024
    Configuration menu
    Copy the full SHA
    0213c87 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ca243e7 View commit details
    Browse the repository at this point in the history
  3. hir: Simplify hir_owner_nodes query

    The query accept arbitrary DefIds, not just owner DefIds.
    The return can be an `Option` because if there are no nodes, then it doesn't matter whether it's due to NonOwner or Phantom.
    Also rename the query to `opt_hir_owner_nodes`.
    petrochenkov committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    64b6b5b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    667d5d3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    db41f4a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f6b21e9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0b2579a View commit details
    Browse the repository at this point in the history
  8. Limit the use of PlaceCtxt

    Nadrieril committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    cb0e8c5 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    83e88c6 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6ef8362 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5903142 View commit details
    Browse the repository at this point in the history
  12. check RUST_BOOTSTRAP_CONFIG in profile_user_dist test

    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    dfbbdda View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    75f670d View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    024364a View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    d34b0fa View commit details
    Browse the repository at this point in the history
  16. Account for unbounded type param receiver in suggestions

    When encountering
    
    ```rust
    fn f<T>(a: T, b: T) -> std::cmp::Ordering {
        a.cmp(&b) //~ ERROR E0599
    }
    ```
    
    output
    
    ```
    error[E0599]: no method named `cmp` found for type parameter `T` in the current scope
      --> $DIR/method-on-unbounded-type-param.rs:2:7
       |
    LL | fn f<T>(a: T, b: T) -> std::cmp::Ordering {
       |      - method `cmp` not found for this type parameter
    LL |     a.cmp(&b)
       |       ^^^ method cannot be called on `T` due to unsatisfied trait bounds
       |
       = help: items from traits can only be used if the type parameter is bounded by the trait
    help: the following traits define an item `cmp`, perhaps you need to restrict type parameter `T` with one of them:
       |
    LL | fn f<T: Ord>(a: T, b: T) -> std::cmp::Ordering {
       |       +++++
    LL | fn f<T: Iterator>(a: T, b: T) -> std::cmp::Ordering {
       |       ++++++++++
    ```
    
    Fix rust-lang#120186.
    estebank committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    20b1c2a View commit details
    Browse the repository at this point in the history
  17. fix rebase

    estebank committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    9ccc770 View commit details
    Browse the repository at this point in the history
  18. Mark "unused binding" suggestion as maybe incorrect

    Ignoring unused bindings should be a determination made by a human, `rustfix` shouldn't auto-apply the suggested change.
    
    Fix rust-lang#54196.
    estebank committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    8ebd47e View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#120207 - onur-ozkan:120202-fix, r=clubby789

    check `RUST_BOOTSTRAP_CONFIG` in `profile_user_dist` test
    
    Fixes a logical bug in `profile_user_dist` test (explained in rust-lang#120202).
    matthiaskrgr authored Jan 30, 2024
    Configuration menu
    Copy the full SHA
    bce474e View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#120321 - Nadrieril:cleanup-cx, r=compiler-e…

    …rrors
    
    pattern_analysis: cleanup the contexts
    
    This cleans up a bit the various `*Ctxt`s I had left lying around. As a bonus this made it possible to make `PatternColumn` public. I don't have a use for that yet but that could come useful.
    
    `UsefulnessCtxt` looks useless right now but I'll be adding a field or two in subsequent PRs.
    
    r? ``@compiler-errors``
    matthiaskrgr authored Jan 30, 2024
    Configuration menu
    Copy the full SHA
    045088d View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#120346 - petrochenkov:ownodes, r=oli-obk

    hir: Refactor getters for owner nodes
    matthiaskrgr authored Jan 30, 2024
    Configuration menu
    Copy the full SHA
    1e3860a View commit details
    Browse the repository at this point in the history
  22. Rollup merge of rust-lang#120396 - estebank:method-on-unbounded-type-…

    …param, r=nnethercote
    
    Account for unbounded type param receiver in suggestions
    
    When encountering
    
    ```rust
    fn f<T>(a: T, b: T) -> std::cmp::Ordering {
        a.cmp(&b) //~ ERROR E0599
    }
    ```
    
    output
    
    ```
    error[E0599]: no method named `cmp` found for type parameter `T` in the current scope
      --> $DIR/method-on-unbounded-type-param.rs:2:7
       |
    LL | fn f<T>(a: T, b: T) -> std::cmp::Ordering {
       |      - method `cmp` not found for this type parameter
    LL |     a.cmp(&b)
       |       ^^^ method cannot be called on `T` due to unsatisfied trait bounds
       |
       = help: items from traits can only be used if the type parameter is bounded by the trait
    help: the following traits define an item `cmp`, perhaps you need to restrict type parameter `T` with one of them:
       |
    LL | fn f<T: Ord>(a: T, b: T) -> std::cmp::Ordering {
       |       +++++
    LL | fn f<T: Iterator>(a: T, b: T) -> std::cmp::Ordering {
       |       ++++++++++
    ```
    
    Fix rust-lang#120186.
    matthiaskrgr authored Jan 30, 2024
    Configuration menu
    Copy the full SHA
    3edfd62 View commit details
    Browse the repository at this point in the history
  23. Rollup merge of rust-lang#120435 - chenyukang:yukang-fix-120427-cfg-n…

    …ame, r=Urgau,Nilstrieb
    
    Suggest name value cfg when only value is used for check-cfg
    
    Fixes rust-lang#120427
    r? ``@Nilstrieb``
    matthiaskrgr authored Jan 30, 2024
    Configuration menu
    Copy the full SHA
    37ba7b1 View commit details
    Browse the repository at this point in the history
  24. Rollup merge of rust-lang#120470 - estebank:issue-54196, r=compiler-e…

    …rrors
    
    Mark "unused binding" suggestion as maybe incorrect
    
    Ignoring unused bindings should be a determination made by a human, `rustfix` shouldn't auto-apply the suggested change.
    
    Fix rust-lang#54196.
    matthiaskrgr authored Jan 30, 2024
    Configuration menu
    Copy the full SHA
    5c8e7a2 View commit details
    Browse the repository at this point in the history
  25. Rollup merge of rust-lang#120495 - clubby789:remove-amdgpu-kernel, r=…

    …oli-obk
    
    Remove the `abi_amdgpu_kernel` feature
    
    The tracking issue (rust-lang#51575) has been closed for 3 years, with no activity for 5.
    matthiaskrgr authored Jan 30, 2024
    Configuration menu
    Copy the full SHA
    dbb5a72 View commit details
    Browse the repository at this point in the history
  26. Rollup merge of rust-lang#120501 - GuillaumeGomez:glob-reexport-attr-…

    …merge-bugfix, r=notriddle
    
    rustdoc: Correctly handle attribute merge if this is a glob reexport
    
    Fixes rust-lang#120487.
    
    The regression was introduced in rust-lang#113091. Only non-glob reexports should have been impacted.
    
    cc ``@Nemo157``
    r? ``@notriddle``
    matthiaskrgr authored Jan 30, 2024
    Configuration menu
    Copy the full SHA
    77b3b23 View commit details
    Browse the repository at this point in the history