This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit bf68fc4
authored
Unrolled build for rust-lang#126314
Rollup merge of rust-lang#126314 - lcnr:fix-relnotes, r=pietroalbini
fix RELEASES: we do not support upcasting to auto traits
rust-lang#119338 does not actually support casts from `dyn Trait` to `dyn Auto`, only from `dyn Trait` to `dyn Trait + Auto`. The following test does not compile
```rust
trait Trait: Send {}
impl<T: Send> Trait for T {}
fn foo() {
let x: &i32 = &1;
let y = x as &dyn Trait as &dyn Send;
}
```
it actually also doesn't compile with `feature(trait_upcasting)`, opened rust-lang#126313 for that
r? `@Mark-Simulacrum` `@cuviper`1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
0 commit comments