1
Fork 0

Duplicate ~const bounds with a non-const one in effects desugaring

This commit is contained in:
Deadbeef 2023-10-15 08:51:54 +00:00
parent 34bc5716b5
commit f0f89d6d43
10 changed files with 661 additions and 40 deletions

View file

@ -79,6 +79,10 @@ impl GenericParamDef {
}
}
pub fn is_host_effect(&self) -> bool {
matches!(self.kind, GenericParamDefKind::Const { is_host_effect: true, .. })
}
pub fn default_value<'tcx>(
&self,
tcx: TyCtxt<'tcx>,