mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
internal: Make block_def_map infallible
This commit is contained in:
parent
10e0aaf284
commit
c32d51979d
9 changed files with 32 additions and 60 deletions
|
@ -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>;
|
||||
|
||||
#[salsa::invoke(StructData::struct_data_query)]
|
||||
fn struct_data(&self, id: StructId) -> Arc<StructData>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue