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.
This commit is contained in:
Alex Crichton 2015-02-02 11:01:29 -08:00
commit fea07cfd3f
1 changed files with 1 additions and 4 deletions

View File

@ -3099,10 +3099,7 @@ pub fn type_is_unsafe_ptr(ty: Ty) -> bool {
pub fn type_is_unique(ty: Ty) -> bool {
match ty.sty {
ty_uniq(_) => match ty.sty {
ty_trait(..) => false,
_ => true
},
ty_uniq(_) => true,
_ => false
}
}