mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
finish RegionKind
rename
- `ReFree` -> `ReLateParam` - `ReEarlyBound` -> `ReEarlyParam`
This commit is contained in:
parent
9ab054d714
commit
9aa2330e41
2 changed files with 3 additions and 3 deletions
|
@ -175,7 +175,7 @@ impl<'tcx> PassByRefOrValue {
|
|||
},
|
||||
// Early bound regions on functions are either from the containing item, are bounded by another
|
||||
// lifetime, or are used as a bound for a type or lifetime.
|
||||
RegionKind::ReEarlyBound(..) => continue,
|
||||
RegionKind::ReEarlyParam(..) => continue,
|
||||
_ => (),
|
||||
}
|
||||
|
||||
|
|
|
@ -465,9 +465,9 @@ fn check_fn_args<'cx, 'tcx: 'cx>(
|
|||
.walk()
|
||||
.filter_map(|arg| {
|
||||
arg.as_region().and_then(|lifetime| match lifetime.kind() {
|
||||
ty::ReEarlyBound(r) => Some(r.def_id),
|
||||
ty::ReEarlyParam(r) => Some(r.def_id),
|
||||
ty::ReBound(_, r) => r.kind.get_id(),
|
||||
ty::ReFree(r) => r.bound_region.get_id(),
|
||||
ty::ReLateParam(r) => r.bound_region.get_id(),
|
||||
ty::ReStatic
|
||||
| ty::ReVar(_)
|
||||
| ty::RePlaceholder(_)
|
||||
|
|
Loading…
Add table
Reference in a new issue