id
string | file_path
string | line
uint32 | column
uint32 | phase
string | processing_order
uint32 | element_type
string | element_name
string | element_signature
string | syntax_data
string | symbol_data
string | type_data
string | diagnostic_data
string | processing_time_ms
uint64 | timestamp
uint64 | rust_version
string | analyzer_version
string | source_snippet
string | context_before
string | context_after
string |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:486:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 486 | 1 |
type_inference
| 529,901 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
-> ;
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:488:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 488 | 1 |
type_inference
| 529,902 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
-> "\n "
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:489:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 489 | 1 |
type_inference
| 529,903 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
-> foo(x);
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:493:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 493 | 1 |
type_inference
| 529,904 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
Line 3: Token(IF_KW@17..19 "if") -> let
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:494:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 494 | 1 |
type_inference
| 529,905 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
Line 3: Token(LET_KW@20..23 "let") -> x
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:495:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 495 | 1 |
type_inference
| 529,906 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
Line 3: Node(BLOCK_EXPR@40..63) -> =
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:510:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 510 | 1 |
type_inference
| 529,907 |
variable_or_return
|
from_node
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let from_node = SourceFile::parse(from, Edition::CURRENT).tree().syntax().clone();
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:511:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 511 | 1 |
type_inference
| 529,908 |
variable_or_return
|
to_node
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let to_node = SourceFile::parse(to, Edition::CURRENT).tree().syntax().clone();
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:512:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 512 | 1 |
type_inference
| 529,909 |
variable_or_return
|
diff
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let diff = super::diff(&from_node, &to_node);
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:514:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 514 | 1 |
type_inference
| 529,910 |
variable_or_return
|
line_number
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let line_number =
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:517:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 517 | 1 |
type_inference
| 529,911 |
variable_or_return
|
fmt_syntax
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let fmt_syntax = |syn: &SyntaxElement| match syn.kind() {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:522:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 522 | 1 |
type_inference
| 529,912 |
variable_or_return
|
insertions
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let insertions =
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:523:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 523 | 1 |
type_inference
| 529,913 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
diff.insertions.iter().format_with("\n", |(k, v), f| -> Result<(), std::fmt::Error> {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:525:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 525 | 1 |
type_inference
| 529,914 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
"Line {}: {:?}\n-> {}",
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:531:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 531 | 1 |
type_inference
| 529,915 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
v.iter().format_with("\n-> ", |v, f| f(&fmt_syntax(v)))
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:535:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 535 | 1 |
type_inference
| 529,916 |
variable_or_return
|
replacements
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let replacements = diff
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:540:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 540 | 1 |
type_inference
| 529,917 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
f(&format!("Line {}: {k:?} -> {}", line_number(k), fmt_syntax(v)))
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:543:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 543 | 1 |
type_inference
| 529,918 |
variable_or_return
|
deletions
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let deletions = diff
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:548:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 548 | 1 |
type_inference
| 529,919 |
variable_or_return
|
actual
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let actual = format!(
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:553:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 553 | 1 |
type_inference
| 529,920 |
variable_or_return
|
mut from
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let mut from = from.to_owned();
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs:554:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/tree_diff.rs
| 554 | 1 |
type_inference
| 529,921 |
variable_or_return
|
mut text_edit
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let mut text_edit = TextEdit::builder();
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:31:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 31 | 1 |
type_inference
| 529,922 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
/// `Option<Name>` -> `Name`
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:32:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 32 | 1 |
type_inference
| 529,923 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
/// `Result<User, Error>` -> `User`
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:38:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 38 | 1 |
type_inference
| 529,924 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
/// `Vec<Name>` -> "names"
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:44:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 44 | 1 |
type_inference
| 529,925 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
/// `vec.as_slice()` -> `slice`
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:45:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 45 | 1 |
type_inference
| 529,926 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
/// `args.into_config()` -> `config`
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:46:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 46 | 1 |
type_inference
| 529,927 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
/// `bytes.to_vec()` -> `vec`
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:52:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 52 | 1 |
type_inference
| 529,928 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
/// `var.name().to_string()` -> `var.name()`
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:86:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 86 | 1 |
type_inference
| 529,929 |
variable_or_return
|
mut generator
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
/// let mut generator = NameGenerator::default();
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:101:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 101 | 1 |
type_inference
| 529,930 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
pub fn new_with_names<'a>(existing_names: impl Iterator<Item = &'a str>) -> Self {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:102:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 102 | 1 |
type_inference
| 529,931 |
variable_or_return
|
mut generator
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let mut generator = Self::default();
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:107:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 107 | 1 |
type_inference
| 529,932 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
pub fn new_from_scope_locals(scope: Option<SemanticsScope<'_>>) -> Self {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:108:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 108 | 1 |
type_inference
| 529,933 |
variable_or_return
|
mut generator
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let mut generator = Self::default();
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:109:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 109 | 1 |
type_inference
| 529,934 |
variable_or_return
|
Some(scope)
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
if let Some(scope) = scope {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:111:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 111 | 1 |
type_inference
| 529,935 |
variable_or_return
|
hir::ScopeDef::Local(_)
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
if let hir::ScopeDef::Local(_) = scope {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:122:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 122 | 1 |
type_inference
| 529,936 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
pub fn suggest_name(&mut self, name: &str) -> SmolStr {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:123:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 123 | 1 |
type_inference
| 529,937 |
variable_or_return
|
(prefix, suffix)
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let (prefix, suffix) = Self::split_numeric_suffix(name);
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:124:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 124 | 1 |
type_inference
| 529,938 |
variable_or_return
|
prefix
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let prefix = SmolStr::new(prefix);
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:125:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 125 | 1 |
type_inference
| 529,939 |
variable_or_return
|
suffix
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let suffix = suffix.unwrap_or(0);
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:133:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 133 | 1 |
type_inference
| 529,940 |
variable_or_return
|
count
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let count = entry.get_mut();
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:136:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 136 | 1 |
type_inference
| 529,941 |
variable_or_return
|
mut new_name
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let mut new_name = SmolStrBuilder::new();
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:159:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 159 | 1 |
type_inference
| 529,942 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
) -> Option<SmolStr> {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:160:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 160 | 1 |
type_inference
| 529,943 |
variable_or_return
|
name
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let name = name_of_type(ty, db, edition)?;
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:173:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 173 | 1 |
type_inference
| 529,944 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
pub fn for_impl_trait_as_generic(&mut self, ty: &ast::ImplTraitType) -> SmolStr {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:174:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 174 | 1 |
type_inference
| 529,945 |
variable_or_return
|
c
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let c = ty
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:189:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 189 | 1 |
type_inference
| 529,946 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
/// * expression type name if it exists (E.g. `()`, `fn() -> ()` or `!` do not have names)
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:199:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 199 | 1 |
type_inference
| 529,947 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
) -> SmolStr {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:202:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 202 | 1 |
type_inference
| 529,948 |
variable_or_return
|
Some(name)
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
if let Some(name) = from_param(expr, sema) {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:206:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 206 | 1 |
type_inference
| 529,949 |
variable_or_return
|
mut next_expr
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let mut next_expr = Some(expr.clone());
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:207:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 207 | 1 |
type_inference
| 529,950 |
variable_or_return
|
Some(expr)
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
while let Some(expr) = next_expr {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:208:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 208 | 1 |
type_inference
| 529,951 |
variable_or_return
|
name
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let name = from_call(&expr)
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:211:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 211 | 1 |
type_inference
| 529,952 |
variable_or_return
|
Some(name)
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
if let Some(name) = name {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:237:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 237 | 1 |
type_inference
| 529,953 |
variable_or_return
|
(prefix, suffix)
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let (prefix, suffix) = Self::split_numeric_suffix(name);
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:238:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 238 | 1 |
type_inference
| 529,954 |
variable_or_return
|
prefix
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let prefix = SmolStr::new(prefix);
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:239:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 239 | 1 |
type_inference
| 529,955 |
variable_or_return
|
suffix
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let suffix = suffix.unwrap_or(0);
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:246:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 246 | 1 |
type_inference
| 529,956 |
variable_or_return
|
count
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let count = entry.get_mut();
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:255:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 255 | 1 |
type_inference
| 529,957 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
/// `a1b2c3` -> `a1b2c`
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:256:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 256 | 1 |
type_inference
| 529,958 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
fn split_numeric_suffix(name: &str) -> (&str, Option<usize>) {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:257:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 257 | 1 |
type_inference
| 529,959 |
variable_or_return
|
pos
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let pos =
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:259:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 259 | 1 |
type_inference
| 529,960 |
variable_or_return
|
(prefix, suffix)
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let (prefix, suffix) = name.split_at(pos + 1);
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:264:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 264 | 1 |
type_inference
| 529,961 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
fn normalize(name: &str) -> Option<SmolStr> {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:265:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 265 | 1 |
type_inference
| 529,962 |
variable_or_return
|
name
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let name = to_lower_snake_case(name).to_smolstr();
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:282:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 282 | 1 |
type_inference
| 529,963 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"bool"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
fn is_valid_name(name: &str) -> bool {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:289:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 289 | 1 |
type_inference
| 529,964 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"bool"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
fn is_useless_method(method: &ast::MethodCallExpr) -> bool {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:290:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 290 | 1 |
type_inference
| 529,965 |
variable_or_return
|
ident
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let ident = method.name_ref().and_then(|it| it.ident_token());
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:298:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 298 | 1 |
type_inference
| 529,966 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
fn from_call(expr: &ast::Expr) -> Option<SmolStr> {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:302:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 302 | 1 |
type_inference
| 529,967 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
fn from_func_call(expr: &ast::Expr) -> Option<SmolStr> {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:303:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 303 | 1 |
type_inference
| 529,968 |
variable_or_return
|
call
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let call = match expr {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:307:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 307 | 1 |
type_inference
| 529,969 |
variable_or_return
|
func
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let func = match call.expr()? {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:311:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 311 | 1 |
type_inference
| 529,970 |
variable_or_return
|
ident
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let ident = func.path()?.segment()?.name_ref()?.ident_token()?;
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:315:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 315 | 1 |
type_inference
| 529,971 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
fn from_method_call(expr: &ast::Expr) -> Option<SmolStr> {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:316:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 316 | 1 |
type_inference
| 529,972 |
variable_or_return
|
method
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let method = match expr {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:320:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 320 | 1 |
type_inference
| 529,973 |
variable_or_return
|
ident
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let ident = method.name_ref()?.ident_token()?;
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:321:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 321 | 1 |
type_inference
| 529,974 |
variable_or_return
|
mut name
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let mut name = ident.text();
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:328:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 328 | 1 |
type_inference
| 529,975 |
variable_or_return
|
Some(suffix)
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
if let Some(suffix) = name.strip_prefix(prefix) {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:337:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 337 | 1 |
type_inference
| 529,976 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
fn from_param(expr: &ast::Expr, sema: &Semantics<'_, RootDatabase>) -> Option<SmolStr> {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:338:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 338 | 1 |
type_inference
| 529,977 |
variable_or_return
|
arg_list
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let arg_list = expr.syntax().parent().and_then(ast::ArgList::cast)?;
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:339:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 339 | 1 |
type_inference
| 529,978 |
variable_or_return
|
args_parent
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let args_parent = arg_list.syntax().parent()?;
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:340:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 340 | 1 |
type_inference
| 529,979 |
variable_or_return
|
func
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let func = match_ast! {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:343:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 343 | 1 |
type_inference
| 529,980 |
variable_or_return
|
func
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let func = call.expr()?;
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:344:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 344 | 1 |
type_inference
| 529,981 |
variable_or_return
|
func_ty
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let func_ty = sema.type_of_expr(&func)?.adjusted();
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:352:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 352 | 1 |
type_inference
| 529,982 |
variable_or_return
|
(idx, _)
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let (idx, _) = arg_list.args().find_position(|it| it == expr).unwrap();
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:353:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 353 | 1 |
type_inference
| 529,983 |
variable_or_return
|
param
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let param = func.params().into_iter().nth(idx)?;
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:354:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 354 | 1 |
type_inference
| 529,984 |
variable_or_return
|
pat
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let pat = sema.source(param)?.value.right()?.pat()?;
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:355:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 355 | 1 |
type_inference
| 529,985 |
variable_or_return
|
name
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let name = var_name_from_pat(&pat)?;
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:359:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 359 | 1 |
type_inference
| 529,986 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
fn var_name_from_pat(pat: &ast::Pat) -> Option<ast::Name> {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:368:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 368 | 1 |
type_inference
| 529,987 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
fn from_type(expr: &ast::Expr, sema: &Semantics<'_, RootDatabase>) -> Option<SmolStr> {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:369:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 369 | 1 |
type_inference
| 529,988 |
variable_or_return
|
ty
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let ty = sema.type_of_expr(expr)?.adjusted();
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:370:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 370 | 1 |
type_inference
| 529,989 |
variable_or_return
|
ty
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let ty = ty.remove_ref().unwrap_or(ty);
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:371:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 371 | 1 |
type_inference
| 529,990 |
variable_or_return
|
edition
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let edition = sema.scope(expr.syntax())?.krate().edition(sema.db);
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:380:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 380 | 1 |
type_inference
| 529,991 |
variable_or_return
| null | null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
) -> Option<SmolStr> {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:381:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 381 | 1 |
type_inference
| 529,992 |
variable_or_return
|
name
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let name = if let Some(adt) = ty.as_adt() {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:382:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 382 | 1 |
type_inference
| 529,993 |
variable_or_return
|
name
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let name = adt.name(db).display(db, edition).to_string();
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:385:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 385 | 1 |
type_inference
| 529,994 |
variable_or_return
|
inner_ty
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let inner_ty = ty.type_arguments().next()?;
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:390:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 390 | 1 |
type_inference
| 529,995 |
variable_or_return
|
inner_ty
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let inner_ty = ty.type_arguments().next();
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:395:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 395 | 1 |
type_inference
| 529,996 |
variable_or_return
|
Some(trait_)
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
} else if let Some(trait_) = ty.as_dyn_trait() {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:397:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 397 | 1 |
type_inference
| 529,997 |
variable_or_return
|
Some(traits)
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
} else if let Some(traits) = ty.as_impl_traits(db) {
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:398:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 398 | 1 |
type_inference
| 529,998 |
variable_or_return
|
mut iter
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let mut iter = traits.filter_map(|t| trait_name(&t, db, edition));
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:399:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 399 | 1 |
type_inference
| 529,999 |
variable_or_return
|
name
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
let name = iter.next()?;
| null | null |
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs:404:type_inference
|
/home/mdupont/2025/06/27/rust-analyzer/crates/ide-db/src/syntax_helpers/suggest_name.rs
| 404 | 1 |
type_inference
| 530,000 |
variable_or_return
|
Some(inner_ty)
| null | null | null |
{"confidence":0.95,"inference_method":"explicit","inferred_type":"unknown"}
| null | 3 | 1,754,595,407 |
1.86.0
|
0.3.2000
|
} else if let Some(inner_ty) = ty.remove_ref() {
| null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.