Skip to content

Commit 4ead403

Browse files
authored
Fix typo in tests/ui/missing_const_for_fn/const_trait.rs (#15090)
I think the comment is meant to refer to [clippy_utils::qualify_min_const_fn](https://github.com/rust-lang/rust-clippy/blob/master/clippy_utils/src/qualify_min_const_fn.rs). changelog: none
2 parents 35026c7 + 1e30fa2 commit 4ead403

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ui/missing_const_for_fn/const_trait.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const fn can_be_const() {
2525
0u64.method();
2626
}
2727

28-
// False negative, see FIXME comment in `clipy_utils::qualify_min_const`
28+
// False negative, see FIXME comment in `clippy_utils::qualify_min_const_fn`
2929
fn could_be_const_but_does_not_trigger<T>(t: T)
3030
where
3131
T: const ConstTrait,

tests/ui/missing_const_for_fn/const_trait.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn can_be_const() {
2525
0u64.method();
2626
}
2727

28-
// False negative, see FIXME comment in `clipy_utils::qualify_min_const`
28+
// False negative, see FIXME comment in `clippy_utils::qualify_min_const_fn`
2929
fn could_be_const_but_does_not_trigger<T>(t: T)
3030
where
3131
T: const ConstTrait,

0 commit comments

Comments
 (0)