We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cc9c15 commit 1f5a88aCopy full SHA for 1f5a88a
src/tools/rust-analyzer/crates/ide/src/goto_definition.rs
@@ -179,7 +179,7 @@ fn find_from_definition(
179
// FIXME: This condition does not work for complicated cases such as
180
// receiver_type: Vec<i64>
181
// arg.ty(): T: IntoIterator<Item = i64>
182
- args.get(0).is_some_and(|arg| receiver_type.could_coerce_to(db, arg.ty()))
+ args.first().is_some_and(|arg| receiver_type.could_coerce_to(db, arg.ty()))
183
})?;
184
185
let def = Definition::from(target_method);
0 commit comments