@@ -72,7 +72,7 @@ impl<'tcx> Bounds<'tcx> {
7272 // For `T: ~const Tr` or `T: const Tr`, we need to add an additional bound on the
7373 // associated type of `<T as Tr>` and make sure that the effect is compatible.
7474 if let Some ( compat_val) = match ( tcx. def_kind ( defining_def_id) , constness) {
75- // TODO: do we need `T: const Trait` anymore?
75+ // FIXME(effects): revisit the correctness of this
7676 ( _, ty:: BoundConstness :: Const ) => Some ( tcx. consts . false_ ) ,
7777 // body owners that can have trait bounds
7878 ( DefKind :: Const | DefKind :: Fn | DefKind :: AssocFn , ty:: BoundConstness :: ConstIfConst ) => {
@@ -120,7 +120,7 @@ impl<'tcx> Bounds<'tcx> {
120120 // FIXME(effects) this is equality for now, which wouldn't be helpful for a non-const implementor
121121 // that uses a `Bar` that implements `Trait` with `Maybe` effects.
122122 ( DefKind :: AssocTy , ty:: BoundConstness :: ConstIfConst ) => {
123- // TODO write the actual impl
123+ // FIXME(effects): implement this
124124 return ;
125125 }
126126 // probably illegal in this position.
@@ -169,7 +169,7 @@ impl<'tcx> Bounds<'tcx> {
169169
170170 pub fn clauses (
171171 & self ,
172- // TODO remove tcx
172+ // FIXME(effects): remove tcx
173173 _tcx : TyCtxt < ' tcx > ,
174174 ) -> impl Iterator < Item = ( ty:: Clause < ' tcx > , Span ) > + ' _ {
175175 self . clauses . iter ( ) . cloned ( )
0 commit comments