get clippy to compile again
This commit is contained in:
parent
260f17eafd
commit
a6153e8218
8 changed files with 27 additions and 63 deletions
|
@ -1889,10 +1889,7 @@ impl<'tcx> Ty<'tcx> {
|
|||
|
||||
#[inline]
|
||||
pub fn is_slice(self) -> bool {
|
||||
match self.kind() {
|
||||
RawPtr(TypeAndMut { ty, .. }) | Ref(_, ty, _) => matches!(ty.kind(), Slice(_) | Str),
|
||||
_ => false,
|
||||
}
|
||||
matches!(self.kind(), Slice(_))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue