Skip to content

Commit

Permalink
Remove a bogus match from type_is_unique
Browse files Browse the repository at this point in the history
The inner match will always result in `true`, so we can as well replace
it with just that.
  • Loading branch information
dotdash committed Feb 2, 2015
1 parent 758a296 commit 431baa9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/librustc/middle/ty.rs
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 431baa9

Please sign in to comment.