From 216dc856c5b48de7d9cdbe6259b2d0cd3c4e5042 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Thu, 11 Feb 2021 19:52:33 +0100 Subject: Wrap `BuiltinType` in code model --- crates/hir_def/src/resolver.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/hir_def/src') diff --git a/crates/hir_def/src/resolver.rs b/crates/hir_def/src/resolver.rs index a8467c88e..e85f85e49 100644 --- a/crates/hir_def/src/resolver.rs +++ b/crates/hir_def/src/resolver.rs @@ -361,6 +361,7 @@ impl Resolver { } pub fn krate(&self) -> Option { + // FIXME: can this ever be `None`? self.module_scope().map(|t| t.0.krate()) } -- cgit v1.2.3