mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-22 06:45:13 +00:00
Add track_caller to type lookups (#599)
This commit is contained in:
parent
a42a9f20e1
commit
d04039efda
@ -124,6 +124,7 @@ impl<'tcx> CodegenCx<'tcx> {
|
||||
self.builder.builder(cursor)
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
pub fn lookup_type(&self, ty: Word) -> SpirvType {
|
||||
self.type_cache.lookup(ty)
|
||||
}
|
||||
|
@ -705,6 +705,7 @@ impl TypeCache<'_> {
|
||||
self.type_defs.borrow().get_by_right(ty).copied()
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
pub fn lookup(&self, word: Word) -> SpirvType {
|
||||
self.type_defs
|
||||
.borrow()
|
||||
|
Loading…
Reference in New Issue
Block a user