Avoid using feed_unit_query from within queries
This commit is contained in:
parent
c696d4c323
commit
ef00fae46d
9 changed files with 22 additions and 18 deletions
|
@ -229,7 +229,7 @@ impl<'tcx> PrintExtra<'tcx> {
|
|||
{
|
||||
match self {
|
||||
PrintExtra::AfterParsing { krate, .. } => f(krate),
|
||||
PrintExtra::NeedsAstMap { tcx } => f(&tcx.resolver_for_lowering(()).borrow().1),
|
||||
PrintExtra::NeedsAstMap { tcx } => f(&tcx.resolver_for_lowering().borrow().1),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -281,7 +281,7 @@ pub fn print<'tcx>(sess: &Session, ppm: PpMode, ex: PrintExtra<'tcx>) {
|
|||
}
|
||||
AstTreeExpanded => {
|
||||
debug!("pretty-printing expanded AST");
|
||||
format!("{:#?}", ex.tcx().resolver_for_lowering(()).borrow().1)
|
||||
format!("{:#?}", ex.tcx().resolver_for_lowering().borrow().1)
|
||||
}
|
||||
Hir(s) => {
|
||||
debug!("pretty printing HIR {:?}", s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue