Skip to content

Commit 9eb5957

Browse files
Avi-D-codervarkor
authored andcommitted
Update src/librustc_typeck/astconv.rs
Co-authored-by: varkor <[email protected]>
1 parent 41eec90 commit 9eb5957

File tree

1 file changed

+7
-1
lines changed
  • compiler/rustc_typeck/src/astconv

1 file changed

+7
-1
lines changed

compiler/rustc_typeck/src/astconv/mod.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,13 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
366366
param.def_id,
367367
Some(arg.id()),
368368
arg.span(),
369-
|_, _| (),
369+
|_, _| {
370+
// Default generic parameters may not be marked
371+
// with stability attributes, i.e. when the
372+
// default parameter was defined at the same time
373+
// as the rest of the type. As such, we ignore missing
374+
// stability attributes.
375+
},
370376
)
371377
}
372378
if let (hir::TyKind::Infer, false) = (&ty.kind, self.allow_ty_infer()) {

0 commit comments

Comments
 (0)