cleanup redundant pattern instances
This commit is contained in:
parent
b8005bff32
commit
2039b36f90
2 changed files with 2 additions and 2 deletions
|
@ -514,7 +514,7 @@ pub(crate) mod rustc {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ty::Tuple(fields) => fields[i.as_usize()],
|
ty::Tuple(fields) => fields[i.as_usize()],
|
||||||
kind @ _ => unimplemented!(
|
kind => unimplemented!(
|
||||||
"only a subset of `Ty::ty_and_layout_field`'s functionality is implemented. implementation needed for {:?}",
|
"only a subset of `Ty::ty_and_layout_field`'s functionality is implemented. implementation needed for {:?}",
|
||||||
kind
|
kind
|
||||||
),
|
),
|
||||||
|
|
|
@ -3265,7 +3265,7 @@ impl Hash for Path {
|
||||||
if !verbatim {
|
if !verbatim {
|
||||||
component_start += match tail {
|
component_start += match tail {
|
||||||
[b'.'] => 1,
|
[b'.'] => 1,
|
||||||
[b'.', sep @ _, ..] if is_sep_byte(*sep) => 1,
|
[b'.', sep, ..] if is_sep_byte(*sep) => 1,
|
||||||
_ => 0,
|
_ => 0,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue