@@ -253,32 +253,6 @@ pub fn lower_generic_args<'tcx: 'a, 'a>(
253
253
match ( args_iter. peek ( ) , params. peek ( ) ) {
254
254
( Some ( & arg) , Some ( & param) ) => {
255
255
match ( arg, & param. kind , arg_count. explicit_late_bound ) {
256
- (
257
- GenericArg :: Const ( hir:: ConstArg {
258
- is_desugared_from_effects : true ,
259
- ..
260
- } ) ,
261
- GenericParamDefKind :: Const { is_host_effect : false , .. }
262
- | GenericParamDefKind :: Type { .. }
263
- | GenericParamDefKind :: Lifetime ,
264
- _,
265
- ) => {
266
- // FIXME(effects): this should be removed
267
- // SPECIAL CASE FOR DESUGARED EFFECT PARAMS
268
- // This comes from the following example:
269
- //
270
- // ```
271
- // #[const_trait]
272
- // pub trait PartialEq<Rhs: ?Sized = Self> {}
273
- // impl const PartialEq for () {}
274
- // ```
275
- //
276
- // Since this is a const impl, we need to insert a host arg at the end of
277
- // `PartialEq`'s generics, but this errors since `Rhs` isn't specified.
278
- // To work around this, we infer all arguments until we reach the host param.
279
- args. push ( ctx. inferred_kind ( & args, param, infer_args) ) ;
280
- params. next ( ) ;
281
- }
282
256
( GenericArg :: Lifetime ( _) , GenericParamDefKind :: Lifetime , _)
283
257
| (
284
258
GenericArg :: Type ( _) | GenericArg :: Infer ( _) ,
0 commit comments