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 6 pull requests #117272

Merged
merged 15 commits into from
Oct 27, 2023
Merged

Rollup of 6 pull requests #117272

merged 15 commits into from
Oct 27, 2023

Commits on Aug 20, 2023

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

Commits on Oct 25, 2023

  1. Update src/doc/rustc/src/profile-guided-optimization.md

    Co-authored-by: Jakub Beránek <berykubik@gmail.com>
    meysam81 and Kobzol authored Oct 25, 2023
    Configuration menu
    Copy the full SHA
    29ec0ec View commit details
    Browse the repository at this point in the history
  2. Update src/doc/rustc/src/profile-guided-optimization.md

    Co-authored-by: Jakub Beránek <berykubik@gmail.com>
    meysam81 and Kobzol authored Oct 25, 2023
    Configuration menu
    Copy the full SHA
    3ecc8c3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    515535a View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2023

  1. Configuration menu
    Copy the full SHA
    4392230 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1836c1f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    27919ce View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2023

  1. Specialize ZeroSized constants

    ZeroSized constants can be represented as `mir::Const::Val` even if
    their layout is not yet known. In those cases, CrateItem::body() was
    crashing when trying to convert a `ConstValue::ZeroSized` into its
    stable counterpart `ConstantKind::Allocated`.
    
    Instead, we now map `ConstValue::ZeroSized` into a new variant:
    `ConstantKind::ZeroSized`.
    celinval committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    613e618 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b3f7f4d View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#114998 - meysam81:meysam/feat/add-cargo-pgo…

    …-to-docs, r=ehuss
    
    feat(docs): add cargo-pgo to PGO documentation 📝
    
    fixes rust-lang#114995
    matthiaskrgr authored Oct 27, 2023
    Configuration menu
    Copy the full SHA
    8d67c32 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#116868 - estebank:suggestion, r=petrochenkov

    Tweak suggestion span for outer attr and point at item following invalid inner attr
    
    After:
    
    ```
    error: `unix_sigpipe` attribute cannot be used at crate level
      --> $DIR/unix_sigpipe-crate.rs:2:1
       |
    LL | #![unix_sigpipe = "inherit"]
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    LL |
    LL | fn main() {}
       | ------------ the inner attribute doesn't annotate this function
       |
    help: perhaps you meant to use an outer attribute
       |
    LL - #![unix_sigpipe = "inherit"]
    LL + #[unix_sigpipe = "inherit"]
       |
    ```
    
    Before:
    
    ```
    error: `unix_sigpipe` attribute cannot be used at crate level
      --> $DIR/unix_sigpipe-crate.rs:2:1
       |
    LL | #![unix_sigpipe = "inherit"]
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
    help: perhaps you meant to use an outer attribute
       |
    LL | #[unix_sigpipe = "inherit"]
       | ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ```
    
    CC rust-lang#89566.
    matthiaskrgr authored Oct 27, 2023
    Configuration menu
    Copy the full SHA
    a69fb48 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#117240 - trueNAHO:docs-std-iter-Iterator-co…

    …llect-into-fix-typo, r=the8472
    
    Fix documentation typo in std::iter::Iterator::collect_into
    matthiaskrgr authored Oct 27, 2023
    Configuration menu
    Copy the full SHA
    203292e View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#117241 - compiler-errors:auto-trait-leak-cy…

    …cle, r=oli-obk
    
    Stash and cancel cycle errors for auto trait leakage in opaques
    
    We don't need to emit a traditional cycle error when we have a selection error that explains what's going on but in more detail.
    
    We may want to augment this error to actually point out the cycle, now that the cycle error is not being emitted. We could do that by storing the set of opaques that was in the `CyclePlaceholder` that gets returned from `type_of_opaque`.
    
    r? `@oli-obk` cc `@estebank` rust-lang#117235
    matthiaskrgr authored Oct 27, 2023
    Configuration menu
    Copy the full SHA
    5459333 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#117262 - celinval:issue-38-norm, r=oli-obk

    Create a new ConstantKind variant (ZeroSized) for StableMIR
    
    ZeroSized constants can be represented as `mir::Const::Val` even if their layout is not yet known. In those cases, CrateItem::body() was crashing when trying to convert a `ConstValue::ZeroSized` into its stable counterpart  `ConstantKind::Allocated`.
    
    Instead, we now map `ConstValue::ZeroSized` into a new variant: `ConstantKind::ZeroSized`.
    
    **Note:** I didn't add any new test here since we already have covering tests in our project repository which I manually confirmed that will fix the issue.
    matthiaskrgr authored Oct 27, 2023
    Configuration menu
    Copy the full SHA
    3374480 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#117266 - RalfJung:cast-not-transmute, r=thomcc

    replace transmute by raw pointer cast
    
    Now that rust-lang#113257 is fixed we can finally do this. :)
    matthiaskrgr authored Oct 27, 2023
    Configuration menu
    Copy the full SHA
    2fdac63 View commit details
    Browse the repository at this point in the history