Skip to content

Commit 8baa32f

Browse files
committed
cleanup
1 parent 2d27932 commit 8baa32f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

compiler/rustc_ast_passes/src/feature_gate.rs

-4
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
373373
}
374374
}
375375

376-
fn visit_stmt(&mut self, stmt: &'a ast::Stmt) {
377-
visit::walk_stmt(self, stmt);
378-
}
379-
380376
fn visit_expr(&mut self, e: &'a ast::Expr) {
381377
match e.kind {
382378
ast::ExprKind::TryBlock(_) => {

compiler/rustc_feature/src/active.rs

+2
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,8 @@ declare_features! (
534534
(active, try_blocks, "1.29.0", Some(31436), None),
535535
/// Allows `impl Trait` to be used inside type aliases (RFC 2515).
536536
(active, type_alias_impl_trait, "1.38.0", Some(63063), None),
537+
/// Allows the use of type ascription in expressions.
538+
(active, type_ascription, "1.6.0", Some(23416), None),
537539
/// Allows creation of instances of a struct by moving fields that have
538540
/// not changed from prior instances of the same struct (RFC #2528)
539541
(active, type_changing_struct_update, "1.58.0", Some(86555), None),

0 commit comments

Comments
 (0)