-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Description
This line looks like a typo to me, should it be f64
?
Originally posted by @sunmy2019 in #94963 (comment)
Currently, it affects line 1684.
rust/compiler/rustc_hir_typeck/src/method/suggest.rs
Lines 1676 to 1686 in 832db2f
|| found_assoc(tcx.types.i64) | |
|| found_assoc(tcx.types.i128) | |
|| found_assoc(tcx.types.u8) | |
|| found_assoc(tcx.types.u16) | |
|| found_assoc(tcx.types.u32) | |
|| found_assoc(tcx.types.u64) | |
|| found_assoc(tcx.types.u128) | |
|| found_assoc(tcx.types.f32) | |
|| found_assoc(tcx.types.f32); | |
if found_candidate | |
&& actual.is_numeric() |
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.