Update src/librustc_typeck/astconv.rs

Co-authored-by: varkor <github@varkor.com>
This commit is contained in:
Avi Dessauer 2020-07-08 15:32:11 -04:00 committed by Jacob Hughes
parent 41eec9065a
commit 9eb595705e
1 changed files with 7 additions and 1 deletions

View File

@ -366,7 +366,13 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
param.def_id, param.def_id,
Some(arg.id()), Some(arg.id()),
arg.span(), arg.span(),
|_, _| (), |_, _| {
// Default generic parameters may not be marked
// with stability attributes, i.e. when the
// default parameter was defined at the same time
// as the rest of the type. As such, we ignore missing
// stability attributes.
},
) )
} }
if let (hir::TyKind::Infer, false) = (&ty.kind, self.allow_ty_infer()) { if let (hir::TyKind::Infer, false) = (&ty.kind, self.allow_ty_infer()) {