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.
This commit is contained in:
Björn Steinbrink 2015-02-02 18:58:24 +01:00
parent 758a296e27
commit 431baa9a19

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
}
}