implement nits

This commit is contained in:
Bastian Kauschke
2020-10-05 02:01:32 +02:00
parent 236689d6eb
commit 604bc876e0
4 changed files with 16 additions and 11 deletions

View File

@@ -2210,7 +2210,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
.attrs
.iter()
.filter(|attr| self.sess.check_name(attr, sym::rustc_synthetic))
.map(|_| hir::SyntheticTyParamKind::Rustc)
.map(|_| hir::SyntheticTyParamKind::FromAttr)
.next(),
};