1
Fork 0

ConstParamTy: require Eq

This commit is contained in:
Ralf Jung 2023-09-24 23:38:07 +02:00
parent 4f86c69184
commit ad509633a2
4 changed files with 41 additions and 5 deletions

View file

@ -41,7 +41,7 @@ pub fn expand_deriving_const_param_ty(
path: path_std!(marker::ConstParamTy),
skip_path_as_bound: false,
needs_copy_as_bound_if_packed: false,
additional_bounds: Vec::new(),
additional_bounds: vec![ty::Ty::Path(path_std!(cmp::Eq))],
supports_unions: false,
methods: Vec::new(),
associated_types: Vec::new(),