Skip to content

Commit bf68fc4

Browse files
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`
2 parents 02c7a59 + bbc5509 commit bf68fc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RELEASES.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Language
147147
- [Split `refining_impl_trait` lint into `_reachable`, `_internal` variants](https://github.com/rust-lang/rust/pull/121720/)
148148
- [Remove unnecessary type inference when using associated types inside of higher ranked `where`-bounds](https://github.com/rust-lang/rust/pull/119849)
149149
- [Weaken eager detection of cyclic types during type inference](https://github.com/rust-lang/rust/pull/119989)
150-
- [`trait Trait: Auto {}`: allow upcasting from `dyn Trait` to `dyn Auto`](https://github.com/rust-lang/rust/pull/119338)
150+
- [`trait Trait: Auto {}`: allow upcasting from `dyn Trait` to `dyn Trait + Auto`](https://github.com/rust-lang/rust/pull/119338)
151151

152152
<a id="1.78.0-Compiler"></a>
153153

0 commit comments

Comments
 (0)