refactor(rustc_middle): Substs -> GenericArg
This commit is contained in:
parent
df5c2cf9bc
commit
e55583c4b8
466 changed files with 4574 additions and 4604 deletions
|
@ -747,7 +747,7 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
|
|||
|
||||
let ty = self.typeck_results.node_type(hir_id);
|
||||
match ty.kind() {
|
||||
ty::Closure(_def_id, substs) => match substs.as_closure().kind() {
|
||||
ty::Closure(_def_id, args) => match args.as_closure().kind() {
|
||||
ty::ClosureKind::Fn => {}
|
||||
ty::ClosureKind::FnMut => {}
|
||||
ty::ClosureKind::FnOnce => return succ,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue