Skip to content

Commit f9dca62

Browse files
committed
Fix missing docs.
1 parent a31261f commit f9dca62

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/ir/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1942,7 +1942,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
19421942
type_id
19431943
}
19441944

1945-
pub fn wrapper_id_by_name(&self, name: &str) -> Option<&TypeId> {
1945+
pub(crate) fn wrapper_id_by_name(&self, name: &str) -> Option<&TypeId> {
19461946
self.wrapper_ids.get(name)
19471947
}
19481948

src/ir/var.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,12 @@ pub struct Var {
4747
is_const: bool,
4848
}
4949

50+
/// Either a concrete `TypeId` or a type name which allows for lazy lookup later on.
5051
#[derive(Debug)]
5152
pub enum VarTypeId {
53+
/// A known `TypeId`.
5254
Concrete(TypeId),
55+
/// A name for a type whose `TypeId` is may not yet be available.
5356
Lazy(String),
5457
}
5558

0 commit comments

Comments
 (0)