Skip to content

Commit f0cf996

Browse files
Rename the FIXMEs, remove a few that dont matter anymore
1 parent c2db7fa commit f0cf996

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

clippy_utils/src/qualify_min_const_fn.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -404,15 +404,15 @@ fn is_stable_const_fn(tcx: TyCtxt<'_>, def_id: DefId, msrv: &Msrv) -> bool {
404404
}
405405

406406
fn is_ty_const_destruct<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>, body: &Body<'tcx>) -> bool {
407-
// FIXME(effects, fee1-dead) revert to const destruct once it works again
407+
// FIXME(const_trait_impl, fee1-dead) revert to const destruct once it works again
408408
#[expect(unused)]
409409
fn is_ty_const_destruct_unused<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>, body: &Body<'tcx>) -> bool {
410410
// Avoid selecting for simple cases, such as builtin types.
411411
if ty::util::is_trivially_const_drop(ty) {
412412
return true;
413413
}
414414

415-
// FIXME(effects) constness
415+
// FIXME(const_trait_impl) constness
416416
let obligation = Obligation::new(
417417
tcx,
418418
ObligationCause::dummy_with_span(body.span),

tests/ui/missing_const_for_fn/could_be_const.fixed

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn main() {}
104104

105105
struct D;
106106

107-
/* FIXME(effects)
107+
/* FIXME(const_trait_impl)
108108
impl const Drop for D {
109109
fn drop(&mut self) {
110110
todo!();
@@ -113,7 +113,7 @@ impl const Drop for D {
113113
*/
114114

115115
// Lint this, since it can be dropped in const contexts
116-
// FIXME(effects)
116+
// FIXME(const_trait_impl)
117117
const fn d(this: D) {}
118118
//~^ ERROR: this could be a `const fn`
119119

tests/ui/missing_const_for_fn/could_be_const.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn main() {}
104104

105105
struct D;
106106

107-
/* FIXME(effects)
107+
/* FIXME(const_trait_impl)
108108
impl const Drop for D {
109109
fn drop(&mut self) {
110110
todo!();
@@ -113,7 +113,7 @@ impl const Drop for D {
113113
*/
114114

115115
// Lint this, since it can be dropped in const contexts
116-
// FIXME(effects)
116+
// FIXME(const_trait_impl)
117117
fn d(this: D) {}
118118
//~^ ERROR: this could be a `const fn`
119119

0 commit comments

Comments
 (0)