rust/tests
Matthias Krüger 705435fe01
Rollup merge of #109619 - compiler-errors:new-solver-still-further-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);
}
```
2023-03-26 08:39:27 +02:00
..
assembly
auxiliary
codegen Auto merge of #109474 - nikic:llvm-16-again, r=cuviper 2023-03-25 19:55:10 +00:00
codegen-units
debuginfo
incremental
mir-opt
pretty
run-make
run-make-fulldeps
run-pass-valgrind
rustdoc rustdoc: tweak some variants omitted 2023-03-26 18:05:42 +13:00
rustdoc-gui Rollup merge of #109595 - GuillaumeGomez:improve-gui-test-auto-hide-trait, r=notriddle 2023-03-26 08:39:27 +02:00
rustdoc-js
rustdoc-js-std
rustdoc-json
rustdoc-ui Auto merge of #107932 - petrochenkov:onlyexport, r=jyn514 2023-03-24 21:10:51 +00:00
ui transmute test 2023-03-26 00:03:14 +00:00
ui-fulldeps
COMPILER_TESTS.md