1
Fork 0

Revert explicit lifetimes

This commit is contained in:
Jack Huey 2020-12-16 19:14:21 -05:00
parent 30187c81f6
commit 84f82d348c
3 changed files with 160 additions and 168 deletions

View file

@ -314,12 +314,12 @@ pub struct GenericArgs<'hir> {
pub parenthesized: bool,
}
impl<'tcx> GenericArgs<'tcx> {
impl GenericArgs<'_> {
pub const fn none() -> Self {
Self { args: &[], bindings: &[], parenthesized: false }
}
pub fn inputs(&self) -> &[Ty<'tcx>] {
pub fn inputs(&self) -> &[Ty<'_>] {
if self.parenthesized {
for arg in self.args {
match arg {