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

Closed
wants to merge 13 commits into from

Commits on Feb 22, 2023

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

Commits on Mar 25, 2023

  1. Configuration menu
    Copy the full SHA
    1491c6f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    16bb719 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    20679b1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    323551a View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2023

  1. transmute test

    compiler-errors committed Mar 26, 2023
    Configuration menu
    Copy the full SHA
    3310f72 View commit details
    Browse the repository at this point in the history
  2. Refactor: VariantIdx::from_u32(0) -> FIRST_VARIANT

    Since structs are always `VariantIdx(0)`, there's a bunch of files where the only reason they had `VariantIdx` or `vec::Idx` imported at all was to get the first variant.
    
    So this uses a constant for that, and adds some doc-comments to `VariantIdx` while I'm there, since it doesn't have any today.
    scottmcm committed Mar 26, 2023
    Configuration menu
    Copy the full SHA
    0439d13 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#108335 - compiler-errors:non_lifetime_binde…

    …rs-rustdoc, r=GuillaumeGomez
    
    rustdoc + rustdoc-json support for `feature(non_lifetime_binders)`
    
    Makes `for<T> T: Trait` and `for<const N: usize> ..` in where clause operate correctly.
    
    Fixes rust-lang#108158
    matthiaskrgr committed Mar 26, 2023
    Configuration menu
    Copy the full SHA
    8df4141 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#109593 - coop-rs:missing_doc_code_examples,…

    … r=GuillaumeGomez
    
    Rustdoc Book refer to rustdoc::missing_doc_code_examples. Fixes rust-lang#109592.
    
    Fixes rust-lang#109592. But, please see a related question at rust-lang#109592 (item `2.`).
    matthiaskrgr committed Mar 26, 2023
    Configuration menu
    Copy the full SHA
    64fdf5e View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#109595 - GuillaumeGomez:improve-gui-test-au…

    …to-hide-trait, r=notriddle
    
    Improve "Auto-hide trait implementation documentation" GUI test
    
    Part of rust-lang#66181.
    
    I'll start working on the `include` command for `browser-ui-test` so we can greatly reduce the duplicated code between setting tests.
    
    r? `@notriddle`
    matthiaskrgr committed Mar 26, 2023
    Configuration menu
    Copy the full SHA
    e0cbfb9 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#109619 - compiler-errors:new-solver-still-f…

    …urther-specializable, r=BoxyUwU
    
    Still-further-specializable projections are ambiguous in new solver
    
    Fixes https://github.com/rust-lang/rust/pull/108896/files#r1148450781
    
    r? `@BoxyUwU` (though feel free to re-roll)
    
    ---
    
    This can be used to create an unsound transmute function with the new solver:
    
    ```rust
    #![feature(specialization)]
    
    trait Default {
       type Id;
    
       fn intu(&self) -> &Self::Id;
    }
    
    impl<T> Default for T {
       default type Id = T;
    
       fn intu(&self) -> &Self::Id {
            self
       }
    }
    
    fn transmute<T: Default<Id = U>, U: Copy>(t: T) -> U {
        *t.intu()
    }
    
    use std::num::NonZeroU8;
    fn main() {
        let s = transmute::<u8, Option<NonZeroU8>>(0);
        assert_eq!(s, None);
    }
    ```
    matthiaskrgr committed Mar 26, 2023
    Configuration menu
    Copy the full SHA
    3646445 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#109620 - eievui5:patch-1, r=compiler-errors

    Correct typo (`back_box` -> `black_box`)
    matthiaskrgr committed Mar 26, 2023
    Configuration menu
    Copy the full SHA
    5ede32d View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#109621 - scottmcm:update-variantidx, r=comp…

    …iler-errors
    
    Refactor: `VariantIdx::from_u32(0)` -> `FIRST_VARIANT`
    
    Since structs are always `VariantIdx(0)`, there's a bunch of files where the only reason they had `VariantIdx` or `vec::Idx` imported at all was to get the first variant.
    
    So this uses a constant for that, and adds some doc-comments to `VariantIdx` while I'm there, since [it doesn't have any today](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_target/abi/struct.VariantIdx.html).
    matthiaskrgr committed Mar 26, 2023
    Configuration menu
    Copy the full SHA
    d1a503c View commit details
    Browse the repository at this point in the history