MCPcopy Index your code
hub / github.com/Rust-API/Rust-API-Bypass-Checker / insert

Method insert

src/analysis/diagnostics.rs:120–126  ·  view source on GitHub ↗

gpt修改

(&mut self, id: DefId, mut diags: Vec<Option<Diagnostic<'compiler>>>)

Source from the content-addressed store, hash-verified

118
119 // gpt修改
120 pub fn insert(&mut self, id: DefId, mut diags: Vec<Option<Diagnostic<'compiler>>>) {
121 if let Some(existing) = self.map.get_mut(&id) {
122 existing.append(&mut diags);
123 } else {
124 self.map.insert(id, diags);
125 }
126 }
127}

Callers 15

newMethod · 0.45
visitMethod · 0.45
visit_vertexMethod · 0.45
visit_circleMethod · 0.45
setMethod · 0.45
renameMethod · 0.45
duplicateMethod · 0.45
joinMethod · 0.45
meetMethod · 0.45
record_heap_blocksMethod · 0.45
record_heap_blocksMethod · 0.45
visit_assignMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected