clean code: remove Deref<Target=RegionKind> impl for Region and use .kind()
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
This commit is contained in:
@@ -80,7 +80,7 @@ impl<'tcx> TypeVisitor<TyCtxt<'tcx>> for ParameterCollector {
|
||||
}
|
||||
|
||||
fn visit_region(&mut self, r: ty::Region<'tcx>) {
|
||||
if let ty::ReEarlyParam(data) = *r {
|
||||
if let ty::ReEarlyParam(data) = r.kind() {
|
||||
self.parameters.push(Parameter::from(data));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user