Skip to content

Commit 968070d

Browse files
committed
Remove unused arg from path_append_impl.
None of the impls use it.
1 parent d24f401 commit 968070d

File tree

7 files changed

+1
-13
lines changed

7 files changed

+1
-13
lines changed

compiler/rustc_const_eval/src/util/type_name.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ impl<'tcx> Printer<'tcx> for AbsolutePathPrinter<'tcx> {
8989
fn path_append_impl(
9090
&mut self,
9191
print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
92-
_disambiguated_data: &DisambiguatedDefPathData,
9392
self_ty: Ty<'tcx>,
9493
trait_ref: Option<ty::TraitRef<'tcx>>,
9594
) -> Result<(), PrintError> {

compiler/rustc_lint/src/context.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,6 @@ impl<'tcx> LateContext<'tcx> {
796796
fn path_append_impl(
797797
&mut self,
798798
print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
799-
_disambiguated_data: &DisambiguatedDefPathData,
800799
self_ty: Ty<'tcx>,
801800
trait_ref: Option<ty::TraitRef<'tcx>>,
802801
) -> Result<(), PrintError> {

compiler/rustc_middle/src/ty/print/mod.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ pub trait Printer<'tcx>: Sized {
8888
fn path_append_impl(
8989
&mut self,
9090
print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
91-
disambiguated_data: &DisambiguatedDefPathData,
9291
self_ty: Ty<'tcx>,
9392
trait_ref: Option<ty::TraitRef<'tcx>>,
9493
) -> Result<(), PrintError>;
@@ -236,12 +235,7 @@ pub trait Printer<'tcx>: Sized {
236235
// If the impl is not co-located with either self-type or
237236
// trait-type, then fallback to a format that identifies
238237
// the module more clearly.
239-
self.path_append_impl(
240-
|p| p.print_def_path(parent_def_id, &[]),
241-
&key.disambiguated_data,
242-
self_ty,
243-
impl_trait_ref,
244-
)
238+
self.path_append_impl(|p| p.print_def_path(parent_def_id, &[]), self_ty, impl_trait_ref)
245239
} else {
246240
// Otherwise, try to give a good form that would be valid language
247241
// syntax. Preferably using associated item notation.

compiler/rustc_middle/src/ty/print/pretty.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2344,7 +2344,6 @@ impl<'tcx> Printer<'tcx> for FmtPrinter<'_, 'tcx> {
23442344
fn path_append_impl(
23452345
&mut self,
23462346
print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
2347-
_disambiguated_data: &DisambiguatedDefPathData,
23482347
self_ty: Ty<'tcx>,
23492348
trait_ref: Option<ty::TraitRef<'tcx>>,
23502349
) -> Result<(), PrintError> {

compiler/rustc_symbol_mangling/src/legacy.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ impl<'tcx> Printer<'tcx> for SymbolPrinter<'tcx> {
332332
fn path_append_impl(
333333
&mut self,
334334
print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
335-
_disambiguated_data: &DisambiguatedDefPathData,
336335
self_ty: Ty<'tcx>,
337336
trait_ref: Option<ty::TraitRef<'tcx>>,
338337
) -> Result<(), PrintError> {

compiler/rustc_symbol_mangling/src/v0.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,6 @@ impl<'tcx> Printer<'tcx> for SymbolMangler<'tcx> {
846846
fn path_append_impl(
847847
&mut self,
848848
_: impl FnOnce(&mut Self) -> Result<(), PrintError>,
849-
_: &DisambiguatedDefPathData,
850849
_: Ty<'tcx>,
851850
_: Option<ty::TraitRef<'tcx>>,
852851
) -> Result<(), PrintError> {

compiler/rustc_trait_selection/src/error_reporting/infer/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
269269
fn path_append_impl(
270270
&mut self,
271271
_print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
272-
_disambiguated_data: &DisambiguatedDefPathData,
273272
_self_ty: Ty<'tcx>,
274273
_trait_ref: Option<ty::TraitRef<'tcx>>,
275274
) -> Result<(), PrintError> {

0 commit comments

Comments
 (0)