Skip to content

Commit

Permalink
Rollup merge of rust-lang#119089 - fmease:dont-ice-on-tilde-const-non…
Browse files Browse the repository at this point in the history
…-const-trait, r=fee1-dead

effects: fix a comment

r? fee1-dead or compiler
  • Loading branch information
compiler-errors authored Dec 19, 2023
2 parents 49dc89d + ffdc6c7 commit 505ae86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_hir_analysis/src/astconv/generics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ pub fn create_args_for_parent_generic_args<'tcx, 'a>(
// impl const PartialEq for () {}
// ```
//
// Since this is a const impl, we need to insert `<false>` at the end of
// Since this is a const impl, we need to insert a host arg at the end of
// `PartialEq`'s generics, but this errors since `Rhs` isn't specified.
// To work around this, we infer all arguments until we reach the host param.
args.push(ctx.inferred_kind(Some(&args), param, infer_args));
Expand Down

0 comments on commit 505ae86

Please sign in to comment.