Auto merge of #14574 - Veykril:blocks, r=Veykril

internal: Make block_def_map infallible
This commit is contained in:
bors 2023-04-14 11:48:33 +00:00
commit 96407424de
9 changed files with 32 additions and 60 deletions

View file

@ -96,7 +96,7 @@ pub trait DefDatabase: InternDatabase + ExpandDatabase + Upcast<dyn ExpandDataba
// FIXME: This actually can't return None anymore as we no longer allocate block scopes for
// non item declaring blocks
#[salsa::invoke(DefMap::block_def_map_query)]
fn block_def_map(&self, block: BlockId) -> Option<Arc<DefMap>>;
fn block_def_map(&self, block: BlockId) -> Arc<DefMap>;
// region:data