diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-02-16 09:25:11 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-04-21 22:27:20 +0000 |
| commit | 1ce80e210d152619caa99b1bc030f57a352b657a (patch) | |
| tree | 428295e88e40acbf164390344816e790d143bc41 /compiler/rustc_hir_analysis/src/variance/constraints.rs | |
| parent | e18d1f8d2ea0b0feabf7794fb7f5868e3b243709 (diff) | |
| download | rust-1ce80e210d152619caa99b1bc030f57a352b657a.tar.gz rust-1ce80e210d152619caa99b1bc030f57a352b657a.zip | |
Allow `LocalDefId` as the argument to `def_path_str`
Diffstat (limited to 'compiler/rustc_hir_analysis/src/variance/constraints.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/variance/constraints.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/variance/constraints.rs b/compiler/rustc_hir_analysis/src/variance/constraints.rs index 408bec71ee0..6f0afae1b4c 100644 --- a/compiler/rustc_hir_analysis/src/variance/constraints.rs +++ b/compiler/rustc_hir_analysis/src/variance/constraints.rs @@ -92,7 +92,7 @@ impl<'a, 'tcx> ConstraintContext<'a, 'tcx> { fn build_constraints_for_item(&mut self, def_id: LocalDefId) { let tcx = self.tcx(); - debug!("build_constraints_for_item({})", tcx.def_path_str(def_id.to_def_id())); + debug!("build_constraints_for_item({})", tcx.def_path_str(def_id)); // Skip items with no generics - there's nothing to infer in them. if tcx.generics_of(def_id).count() == 0 { |
