Some refactoring
This commit is contained in:
parent
e4e5db4e42
commit
8ef81388e2
27 changed files with 74 additions and 89 deletions
|
@ -1876,13 +1876,16 @@ impl EncodeContext<'a, 'tcx> {
|
|||
default.is_some(),
|
||||
);
|
||||
}
|
||||
GenericParamKind::Const { .. } => {
|
||||
GenericParamKind::Const { ref default, .. } => {
|
||||
self.encode_info_for_generic_param(
|
||||
def_id.to_def_id(),
|
||||
EntryKind::ConstParam,
|
||||
true,
|
||||
);
|
||||
// FIXME(const_generics_defaults)
|
||||
if default.is_some() {
|
||||
self.encode_stability(def_id.to_def_id());
|
||||
}
|
||||
// FIXME(const_generic_defaults)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue