mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
add 'for' postfix completion
This commit is contained in:
parent
60e304c7b6
commit
7bae9c9187
2 changed files with 20 additions and 1 deletions
|
@ -134,6 +134,10 @@ impl FamousDefs<'_, '_> {
|
|||
self.find_trait("core:iter:traits:iterator:Iterator")
|
||||
}
|
||||
|
||||
pub fn core_iter_IntoIterator(&self) -> Option<Trait> {
|
||||
self.find_trait("core:iter:traits:collect:IntoIterator")
|
||||
}
|
||||
|
||||
pub fn core_iter(&self) -> Option<Module> {
|
||||
self.find_module("core:iter")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue