Stability annotations on generic trait parameters
This commit is contained in:
parent
6d3acf5129
commit
a7a2086053
8 changed files with 226 additions and 26 deletions
|
@ -1756,6 +1756,9 @@ impl EncodeContext<'a, 'tcx> {
|
|||
EntryKind::TypeParam,
|
||||
default.is_some(),
|
||||
);
|
||||
if default.is_some() {
|
||||
self.encode_stability(def_id.to_def_id());
|
||||
}
|
||||
}
|
||||
GenericParamKind::Const { .. } => {
|
||||
self.encode_info_for_generic_param(
|
||||
|
@ -1763,6 +1766,7 @@ impl EncodeContext<'a, 'tcx> {
|
|||
EntryKind::ConstParam,
|
||||
true,
|
||||
);
|
||||
// FIXME(const_generics:defaults)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue