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

Merged
merged 12 commits into from
Mar 31, 2022
Merged

Rollup of 5 pull requests #95526

merged 12 commits into from
Mar 31, 2022

Commits on Mar 27, 2022

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

Commits on Mar 31, 2022

  1. Configuration menu
    Copy the full SHA
    d7cada1 View commit details
    Browse the repository at this point in the history
  2. update comment

    lcnr committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    89c66eb View commit details
    Browse the repository at this point in the history
  3. Fix typos in core::ptr docs

    bstrie authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    bd49581 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    de04c05 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c74f7a3 View commit details
    Browse the repository at this point in the history
  6. remove unused field from infcx

    lcnr committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    a5c68d7 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#91416 - compiler-errors:infinite-ty-option-…

    …box, r=estebank
    
    Specialize infinite-type "insert some indirection" suggestion for Option
    
    Suggest `Option<Box<_>>` instead of `Box<Option<_>>` for infinitely-recursive members of a struct.
    
    Not sure if I can get the span of the generic subty of the Option so I can make this a `+++`-style suggestion. The current output is a tiny bit less fancy looking than the original suggestion.
    
    Should I limit the specialization to just `Option<Box<TheOuterStruct>>`? Because right now it applies to all `Option` members in the struct that are returned by `Representability::SelfRecursive`.
    
    Fixes rust-lang#91402
    
    r? `@estebank`
    (since you wrote the original suggestion and are definitely most familiar with it!)
    Dylan-DPC authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    521c590 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#95384 - ehuss:doc-target_has_atomic-stabili…

    …zed, r=Dylan-DPC
    
    Update target_has_atomic documentation for stabilization
    
    `cfg(target_has_atomic)` was stabilized in rust-lang#93824, but this small note in the docs was not updated at the time.
    Dylan-DPC authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    eb0e8c3 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#95517 - lcnr:rustc_borrowck-misc, r=jackh726

    small rustc_borrowck cleanup
    
    r? `@jackh726` because of the second commit, seems like that comment was missed in rust-lang#91243
    Dylan-DPC authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    1f86789 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#95520 - rust-lang:ptrtypo, r=lcnr

    Fix typos in core::ptr docs
    Dylan-DPC authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    b4f140f View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#95523 - lcnr:yeet-unused-field, r=oli-obk

    remove unused field from `infcx`
    
    r? `@oli-obk` did we stop needing that for opaque types?
    Dylan-DPC authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    1074c81 View commit details
    Browse the repository at this point in the history