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

Closed
wants to merge 21 commits into from

Commits on Dec 2, 2023

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

Commits on Dec 12, 2023

  1. Coroutine variant fields can be uninitialized

    Wrap coroutine variant fields in MaybeUninit to indicate that they
    might be uninitialized. Otherwise an uninhabited field will make
    the entire variant uninhabited and introduce undefined behaviour.
    
    The analogous issue in the prefix of coroutine layout was addressed by
    6fae7f8.
    tmiasko committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    a48cebc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fb32eb3 View commit details
    Browse the repository at this point in the history
  3. Move some methods from tcx.hir() to tcx

    Renamings:
    - find -> opt_hir_node
    - get -> hir_node
    - find_by_def_id -> opt_hir_node_by_def_id
    - get_by_def_id -> hir_node_by_def_id
    
    Fix rebase changes using removed methods
    
    Use `tcx.hir_node_by_def_id()` whenever possible in compiler
    
    Fix clippy errors
    
    Fix compiler
    
    Apply suggestions from code review
    
    Co-authored-by: Vadim Petrochenkov <[email protected]>
    
    Add FIXME for `tcx.hir()` returned type about its removal
    
    Simplify with with `tcx.hir_node_by_def_id`
    zetanumbers committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    24f009c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d3cb25f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    98aa20b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bb0fd66 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6892fcd View commit details
    Browse the repository at this point in the history
  8. clippy::complexity fixes

     filter_map_identity
     needless_bool
     search_is_some
     unit_arg
     map_identity
     needless_question_mark
     derivable_impls
    matthiaskrgr committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    d707461 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f1342f3 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    58327c1 View commit details
    Browse the repository at this point in the history
  11. Typo

    smoelius authored Dec 12, 2023
    Configuration menu
    Copy the full SHA
    046f2de View commit details
    Browse the repository at this point in the history
  12. Update compiler/rustc_pattern_analysis/src/constructor.rs

    add note that `missing_empty` is cleared now
    
    Co-authored-by: Nadrieril <[email protected]>
    matthiaskrgr and Nadrieril authored Dec 12, 2023
    Configuration menu
    Copy the full SHA
    2a1acc2 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#117050 - c410-f3r:here-we-go-again, r=petro…

    …chenkov
    
    [`RFC 3086`] Attempt to try to resolve blocking concerns
    
    Implements what is described at rust-lang#83527 (comment) to hopefully make some progress.
    
    It is unknown if such approach is or isn't desired due to the lack of further feedback, as such, it is probably best to nominate this PR to the official entities.
    
    `@rustbot` labels +I-compiler-nominated
    matthiaskrgr authored Dec 12, 2023
    Configuration menu
    Copy the full SHA
    13c0a20 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#118500 - ZetaNumbers:tcx_hir_refactor, r=pe…

    …trochenkov
    
    Move some methods from `tcx.hir()` to `tcx`
    
    rust-lang#118256 (comment)
    
    Renamed:
    - find -> opt_hir_node
    - get -> hir_node
    - find_by_def_id -> opt_hir_node_by_def_id
    - get_by_def_id -> hir_node_by_def_id
    matthiaskrgr authored Dec 12, 2023
    Configuration menu
    Copy the full SHA
    59c8e1d View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#118871 - tmiasko:coroutine-maybe-uninit-fie…

    …lds, r=compiler-errors
    
    Coroutine variant fields can be uninitialized
    
    Wrap coroutine variant fields in MaybeUninit to indicate that they might be uninitialized. Otherwise an uninhabited field will make the entire variant uninhabited and introduce undefined behaviour.
    
    The analogous issue in the prefix of coroutine layout was addressed by 6fae7f8.
    matthiaskrgr authored Dec 12, 2023
    Configuration menu
    Copy the full SHA
    6b1701a View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#118872 - GuillaumeGomez:codeblock-attr-lint…

    …, r=notriddle
    
    Add rustX check to codeblock attributes lint
    
    We discovered this issue [here](rust-lang#118802 (comment)).
    
    I assume that the issue will be present in other places outside of the compiler so it's worth adding a check for it.
    
    First commit is just a small cleanup about variables creation which was a bit strange (at least more than necessary).
    
    r? `@notriddle`
    matthiaskrgr authored Dec 12, 2023
    Configuration menu
    Copy the full SHA
    15eb5d4 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#118884 - matthiaskrgr:auszweimacheins, r=Na…

    …drieril
    
    NFC: simplify merging of two vecs
    matthiaskrgr authored Dec 12, 2023
    Configuration menu
    Copy the full SHA
    00e1710 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#118885 - matthiaskrgr:compl_2023, r=compile…

    …r-errors
    
    clippy::complexity fixes
    
     filter_map_identity
     needless_bool
     search_is_some
     unit_arg
     map_identity
     needless_question_mark
     derivable_impls
    matthiaskrgr authored Dec 12, 2023
    Configuration menu
    Copy the full SHA
    848bd24 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#118886 - GuillaumeGomez:clean-up-search-var…

    …s, r=notriddle
    
    Clean up variables in `search.js`
    
    While reviewing rust-lang#118402, I saw a few small clean ups that were needed, mostly about variables creation.
    
    r? `@notriddle`
    matthiaskrgr authored Dec 12, 2023
    Configuration menu
    Copy the full SHA
    c76e54c View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    755df90 View commit details
    Browse the repository at this point in the history