Rustup to rustc 1.16.0-nightly (468227129 2017-01-03): Recover patterns from arguments
This commit is contained in:
@@ -906,3 +906,6 @@ pub fn is_self(slf: &Arg) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn iter_input_pats<'tcx>(decl: &FnDecl, body: &'tcx Body) -> impl Iterator<Item=&'tcx Arg> {
|
||||
(0..decl.inputs.len()).map(move |i| &body.arguments[i])
|
||||
}
|
||||
Reference in New Issue
Block a user