We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41eec90 commit 9eb5957Copy full SHA for 9eb5957
compiler/rustc_typeck/src/astconv/mod.rs
@@ -366,7 +366,13 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
366
param.def_id,
367
Some(arg.id()),
368
arg.span(),
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
+ },
376
)
377
}
378
if let (hir::TyKind::Infer, false) = (&ty.kind, self.allow_ty_infer()) {
0 commit comments