File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ impl ModuleOrigin {
164164 ModuleOrigin :: Root ( None ) => unreachable ! ( ) ,
165165 ModuleOrigin :: Inline ( m) => InFile :: new ( m. file_id , Either :: Right ( m. to_node ( db) ) ) ,
166166 // FIXME: right now it's never constructed, so it's fine to omit
167- ModuleOrigin :: Block ( b ) => unimplemented ! ( ) ,
167+ ModuleOrigin :: Block ( _b ) => unimplemented ! ( ) ,
168168 }
169169 }
170170}
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ impl TestDB {
7474 for & krate in self . relevant_crates ( file_id) . iter ( ) {
7575 let crate_def_map = self . crate_def_map ( krate) ;
7676 for ( local_id, data) in crate_def_map. modules . iter ( ) {
77- if data. definition == Some ( file_id) {
77+ if data. origin . file_id ( ) == Some ( file_id) {
7878 return ModuleId { krate, local_id } ;
7979 }
8080 }
You can’t perform that action at this time.
0 commit comments