diff options
author | Jonas Schievink <[email protected]> | 2021-02-11 18:52:33 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-02-11 18:52:33 +0000 |
commit | 216dc856c5b48de7d9cdbe6259b2d0cd3c4e5042 (patch) | |
tree | f488d4f3d44e60ea6c3ff98b5fb8c8f2a209f907 /crates/hir_def | |
parent | b0f20a795d6b1f8d36d1cbe294e54ac592b98f5e (diff) |
Wrap `BuiltinType` in code model
Diffstat (limited to 'crates/hir_def')
-rw-r--r-- | crates/hir_def/src/resolver.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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 { | |||
361 | } | 361 | } |
362 | 362 | ||
363 | pub fn krate(&self) -> Option<CrateId> { | 363 | pub fn krate(&self) -> Option<CrateId> { |
364 | // FIXME: can this ever be `None`? | ||
364 | self.module_scope().map(|t| t.0.krate()) | 365 | self.module_scope().map(|t| t.0.krate()) |
365 | } | 366 | } |
366 | 367 | ||