Duplicate ~const
bounds with a non-const one in effects desugaring
This commit is contained in:
parent
34bc5716b5
commit
f0f89d6d43
10 changed files with 661 additions and 40 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue