@@ -461,7 +461,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
461
461
}
462
462
( fn_sig, Some ( def_id) )
463
463
}
464
- // FIXME(effects ): these arms should error because we can't enforce them
464
+ // FIXME(const_trait_impl ): these arms should error because we can't enforce them
465
465
ty:: FnPtr ( sig_tys, hdr) => ( sig_tys. with ( hdr) , None ) ,
466
466
_ => {
467
467
for arg in arg_exprs {
@@ -843,7 +843,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
843
843
callee_did : DefId ,
844
844
callee_args : GenericArgsRef < ' tcx > ,
845
845
) {
846
- // FIXME(effects ): We should be enforcing these effects unconditionally.
846
+ // FIXME(const_trait_impl ): We should be enforcing these effects unconditionally.
847
847
// This can be done as soon as we convert the standard library back to
848
848
// using const traits, since if we were to enforce these conditions now,
849
849
// we'd fail on basically every builtin trait call (i.e. `1 + 2`).
@@ -864,11 +864,11 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
864
864
None => return ,
865
865
} ;
866
866
867
- // FIXME(effects ): Should this be `is_const_fn_raw`? It depends on if we move
867
+ // FIXME(const_trait_impl ): Should this be `is_const_fn_raw`? It depends on if we move
868
868
// const stability checking here too, I guess.
869
869
if self . tcx . is_conditionally_const ( callee_did) {
870
870
let q = self . tcx . const_conditions ( callee_did) ;
871
- // FIXME(effects ): Use this span with a better cause code.
871
+ // FIXME(const_trait_impl ): Use this span with a better cause code.
872
872
for ( cond, _) in q. instantiate ( self . tcx , callee_args) {
873
873
self . register_predicate ( Obligation :: new (
874
874
self . tcx ,
@@ -878,7 +878,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
878
878
) ) ;
879
879
}
880
880
} else {
881
- // FIXME(effects ): This should eventually be caught here.
881
+ // FIXME(const_trait_impl ): This should eventually be caught here.
882
882
// For now, though, we defer some const checking to MIR.
883
883
}
884
884
}
0 commit comments