rustc_middle: Remove Option
from module_reexports
query
This commit is contained in:
parent
612ddd2196
commit
9da9373bf0
7 changed files with 12 additions and 17 deletions
|
@ -1327,8 +1327,8 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
|
|||
}
|
||||
}));
|
||||
|
||||
if let Some(reexports) = tcx.module_reexports(local_def_id) {
|
||||
assert!(!reexports.is_empty());
|
||||
let reexports = tcx.module_reexports(local_def_id);
|
||||
if !reexports.is_empty() {
|
||||
record_array!(self.tables.module_reexports[def_id] <- reexports);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue