about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-22 16:15:34 +0000
committerbors <bors@rust-lang.org>2023-11-22 16:15:34 +0000
commit6d2b84b3ed7848fd91b8d6151d4451b3103ed816 (patch)
treebe2f51dd080f22e4c6d99b48304cc3775d77bdb4 /compiler/rustc_middle/src
parent73bc12199ea8c7651ed98b069c0dd6b0bb5fabcf (diff)
parent4c2d6de70e66f6e2c882acbc9be1c5a53d8a65e4 (diff)
downloadrust-6d2b84b3ed7848fd91b8d6151d4451b3103ed816.tar.gz
rust-6d2b84b3ed7848fd91b8d6151d4451b3103ed816.zip
Auto merge of #118133 - Urgau:stabilize_trait_upcasting, r=WaffleLapkin
Stabilize RFC3324 dyn upcasting coercion

This PR stabilize the `trait_upcasting` feature, aka https://github.com/rust-lang/rfcs/pull/3324.

The FCP was completed here: https://github.com/rust-lang/rust/issues/65991#issuecomment-1817552398.

~~And also remove the `deref_into_dyn_supertrait` lint which is now handled by dyn upcasting coercion.~~

Heavily inspired by https://github.com/rust-lang/rust/pull/101718
Fixes https://github.com/rust-lang/rust/issues/65991
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/lib.rs b/compiler/rustc_middle/src/lib.rs
index 4af875e8d79..e5244c1862e 100644
--- a/compiler/rustc_middle/src/lib.rs
+++ b/compiler/rustc_middle/src/lib.rs
@@ -49,7 +49,7 @@
 #![feature(associated_type_bounds)]
 #![feature(rustc_attrs)]
 #![feature(control_flow_enum)]
-#![feature(trait_upcasting)]
+#![cfg_attr(bootstrap, feature(trait_upcasting))]
 #![feature(trusted_step)]
 #![feature(try_blocks)]
 #![feature(try_reserve_kind)]