Remove #[rustc_host]
, use internal desugaring
This commit is contained in:
parent
da1da3f1a0
commit
65212a07e7
16 changed files with 56 additions and 88 deletions
|
@ -487,6 +487,7 @@ pub enum GenericParamKind<'hir> {
|
|||
ty: &'hir Ty<'hir>,
|
||||
/// Optional default value for the const generic param
|
||||
default: Option<AnonConst>,
|
||||
is_host_effect: bool,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -874,7 +874,7 @@ pub fn walk_generic_param<'v, V: Visitor<'v>>(visitor: &mut V, param: &'v Generi
|
|||
match param.kind {
|
||||
GenericParamKind::Lifetime { .. } => {}
|
||||
GenericParamKind::Type { ref default, .. } => walk_list!(visitor, visit_ty, default),
|
||||
GenericParamKind::Const { ref ty, ref default } => {
|
||||
GenericParamKind::Const { ref ty, ref default, is_host_effect: _ } => {
|
||||
visitor.visit_ty(ty);
|
||||
if let Some(ref default) = default {
|
||||
visitor.visit_const_param_default(param.hir_id, default);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue