Skip to content

Commit fea07cf

Browse files
committed
rollup merge of #21869: dotdash/bogus_match
The inner match will always result in `true`, so we can as well replace it with just that.
2 parents cd47cf9 + 431baa9 commit fea07cf

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)