Skip to content

Commit 431baa9

Browse files
committed
Remove a bogus match from type_is_unique
The inner match will always result in `true`, so we can as well replace it with just that.
1 parent 758a296 commit 431baa9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustc/middle/ty.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -3099,10 +3099,7 @@ pub fn type_is_unsafe_ptr(ty: Ty) -> bool {
30993099

31003100
pub fn type_is_unique(ty: Ty) -> bool {
31013101
match ty.sty {
3102-
ty_uniq(_) => match ty.sty {
3103-
ty_trait(..) => false,
3104-
_ => true
3105-
},
3102+
ty_uniq(_) => true,
31063103
_ => false
31073104
}
31083105
}

0 commit comments

Comments
 (0)