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 f0f2605 commit e5c656dCopy full SHA for e5c656d
crates/span/src/ast_id.rs
@@ -224,9 +224,10 @@ impl AstIdMap {
224
match self.map.raw_entry().from_hash(hash, |&idx| self.arena[idx] == ptr) {
225
Some((&idx, &())) => ErasedFileAstId(idx.into_raw().into_u32()),
226
None => panic!(
227
- "Can't find {:?} in AstIdMap:\n{:?}",
+ "Can't find {:?} in AstIdMap:\n{:?}\n source text: {}",
228
item,
229
self.arena.iter().map(|(_id, i)| i).collect::<Vec<_>>(),
230
+ item
231
),
232
}
233
0 commit comments