Skip to content

Commit e4f4af2

Browse files
committed
fix tooling
1 parent 6fe782d commit e4f4af2

File tree

3 files changed

+1
-19
lines changed

3 files changed

+1
-19
lines changed

src/types.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ use crate::comment::{combine_strs_with_missing_comments, contains_comment};
88
use crate::config::lists::*;
99
use crate::config::{IndentStyle, StyleEdition, TypeDensity};
1010
use crate::expr::{
11-
ExprType, RhsAssignKind, format_expr, rewrite_assign_rhs, rewrite_call, rewrite_tuple,
12-
rewrite_unary_prefix,
11+
ExprType, RhsAssignKind, format_expr, rewrite_assign_rhs, rewrite_tuple, rewrite_unary_prefix,
1312
};
1413
use crate::lists::{
1514
ListFormatting, ListItem, Separator, definitive_tactic, itemize_list, write_list,
@@ -1031,13 +1030,6 @@ impl Rewrite for ast::Ty {
10311030
}
10321031
ast::TyKind::CVarArgs => Ok("...".to_owned()),
10331032
ast::TyKind::Dummy | ast::TyKind::Err(_) => Ok(context.snippet(self.span).to_owned()),
1034-
ast::TyKind::Typeof(ref anon_const) => rewrite_call(
1035-
context,
1036-
"typeof",
1037-
&[anon_const.value.clone()],
1038-
self.span,
1039-
shape,
1040-
),
10411033
ast::TyKind::Pat(ref ty, ref pat) => {
10421034
let ty = ty.rewrite_result(context, shape)?;
10431035
let pat = pat.rewrite_result(context, shape)?;

tests/source/type.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,3 @@ impl<T: [ const] Trait> Foo<T> {
158158
Self(t)
159159
}
160160
}
161-
162-
// #4357
163-
type T = typeof(
164-
1);
165-
impl T for .. {
166-
}

tests/target/type.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,3 @@ impl<T: [const] Trait> Foo<T> {
167167
Self(t)
168168
}
169169
}
170-
171-
// #4357
172-
type T = typeof(1);
173-
impl T for .. {}

0 commit comments

Comments
 (0)