You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VSCode: 1.61.1
OS: Windows 10
Rust-analyser: 0.2.776
This code compiles, but is handled incorrectly by RA:
use std::rc::Rc;use std::collections::HashMap;structDocumentData{tables:Vec<TableData>}#[derive(Debug,Clone,Copy,PartialEq,Eq,Hash)]pubstructTableId(usize);structTableData{everything_else_hash:HashMap<String,String>}pubstructTableRef(Rc<DocumentData>,TableId);implTableRef{pubfnget_item_bug(&self,item:&String) -> Option<String>{let tid = self.1.0;self.0.tables[tid].everything_else_hash.get(item).map(Clone::clone)}pubfnget_item_correct(&self,item:&String) -> Option<String>{let ti = self.1;let tid = ti.0;self.0.tables[tid].everything_else_hash.get(item).map(Clone::clone)}}
Specifically, in get_item_bug:
Tooltip of tid reads let tid: Rc<DocumentData> (should be usize)
everything_else_hash and get are displayed with the "nonexistent item" formatting (should be field and method respectively)
Their tooltips read {unknown} and highlight the entire line up to that point.
map is incorrectly listed as being Iterator::map rather than Option::map
None of get_item_correct has this, nor does rustc itself report any errors
The text was updated successfully, but these errors were encountered:
VSCode: 1.61.1
OS: Windows 10
Rust-analyser: 0.2.776
This code compiles, but is handled incorrectly by RA:
Specifically, in
get_item_bug
:tid
readslet tid: Rc<DocumentData>
(should beusize
)everything_else_hash
andget
are displayed with the "nonexistent item" formatting (should be field and method respectively){unknown}
and highlight the entire line up to that point.map
is incorrectly listed as beingIterator::map
rather thanOption::map
None of
get_item_correct
has this, nor does rustc itself report any errorsThe text was updated successfully, but these errors were encountered: