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:
commit
fea07cfd3f
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user