Skip to content

Commit 79000d2

Browse files
authored
Rollup merge of #127630 - compiler-errors:type-ascription, r=chenyukang
Remove lang feature for type ascription (since it's a lib feature now) It's not necessary since it's a library feature now, via the type ascription macro. We can't (and shouldn't) register it as a removed feature since I think that would give "this feature has been removed" errors even for people using the macro (well, I'm pretty sure, though I didn't check). r? `@Nilstrieb`
2 parents 77d25b9 + a36fcc8 commit 79000d2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

compiler/rustc_codegen_gcc/example/mini_core.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![feature(
2-
no_core, lang_items, intrinsics, unboxed_closures, type_ascription, extern_types,
2+
no_core, lang_items, intrinsics, unboxed_closures, extern_types,
33
decl_macro, rustc_attrs, transparent_unions, auto_traits, freeze_impls,
44
thread_local
55
)]

compiler/rustc_feature/src/unstable.rs

-2
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,6 @@ declare_features! (
621621
(unstable, try_blocks, "1.29.0", Some(31436)),
622622
/// Allows `impl Trait` to be used inside type aliases (RFC 2515).
623623
(unstable, type_alias_impl_trait, "1.38.0", Some(63063)),
624-
/// Allows the use of type ascription in expressions.
625-
(unstable, type_ascription, "1.6.0", Some(23416)),
626624
/// Allows creation of instances of a struct by moving fields that have
627625
/// not changed from prior instances of the same struct (RFC #2528)
628626
(unstable, type_changing_struct_update, "1.58.0", Some(86555)),

0 commit comments

Comments
 (0)