Fix tidy
This commit is contained in:
parent
4d62545687
commit
34fe28bc67
10 changed files with 39 additions and 15 deletions
|
|
@ -924,7 +924,8 @@ impl<'a, 'tcx> CrateMetadata {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn maybe_get_promoted_mir(&self, tcx: TyCtxt<'tcx>, id: DefIndex) -> Option<IndexVec<Promoted, Body<'tcx>>> {
|
||||
pub fn maybe_get_promoted_mir(&self, tcx: TyCtxt<'tcx>, id: DefIndex) ->
|
||||
Option<IndexVec<Promoted, Body<'tcx>>> {
|
||||
match self.is_proc_macro(id) {
|
||||
true => None,
|
||||
false => self.entry(id).promoted_mir.map(|promoted| promoted.decode((self, tcx)),)
|
||||
|
|
|
|||
|
|
@ -1060,7 +1060,8 @@ impl EncodeContext<'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
fn encode_promoted_mir(&mut self, def_id: DefId) -> Option<Lazy<IndexVec<mir::Promoted, mir::Body<'tcx>>>> {
|
||||
fn encode_promoted_mir(&mut self, def_id: DefId) ->
|
||||
Option<Lazy<IndexVec<mir::Promoted, mir::Body<'tcx>>>> {
|
||||
debug!("EncodeContext::encode_promoted_mir({:?})", def_id);
|
||||
if self.tcx.mir_keys(LOCAL_CRATE).contains(&def_id) {
|
||||
let promoted = self.tcx.promoted_mir(def_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue