Allow LocalDefId
as the argument to def_path_str
This commit is contained in:
parent
e18d1f8d2e
commit
1ce80e210d
18 changed files with 68 additions and 54 deletions
|
@ -124,7 +124,7 @@ pub fn provide(providers: &mut Providers) {
|
|||
|
||||
fn mir_borrowck(tcx: TyCtxt<'_>, def: LocalDefId) -> &BorrowCheckResult<'_> {
|
||||
let (input_body, promoted) = tcx.mir_promoted(def);
|
||||
debug!("run query mir_borrowck: {}", tcx.def_path_str(def.to_def_id()));
|
||||
debug!("run query mir_borrowck: {}", tcx.def_path_str(def));
|
||||
|
||||
if input_body.borrow().should_skip() {
|
||||
debug!("Skipping borrowck because of injected body");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue