Remove unused arg from path_append_impl.
None of the impls use it.
This commit is contained in:
@@ -89,7 +89,6 @@ impl<'tcx> Printer<'tcx> for AbsolutePathPrinter<'tcx> {
|
|||||||
fn path_append_impl(
|
fn path_append_impl(
|
||||||
&mut self,
|
&mut self,
|
||||||
print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
|
print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
|
||||||
_disambiguated_data: &DisambiguatedDefPathData,
|
|
||||||
self_ty: Ty<'tcx>,
|
self_ty: Ty<'tcx>,
|
||||||
trait_ref: Option<ty::TraitRef<'tcx>>,
|
trait_ref: Option<ty::TraitRef<'tcx>>,
|
||||||
) -> Result<(), PrintError> {
|
) -> Result<(), PrintError> {
|
||||||
|
|||||||
@@ -803,7 +803,6 @@ impl<'tcx> LateContext<'tcx> {
|
|||||||
fn path_append_impl(
|
fn path_append_impl(
|
||||||
&mut self,
|
&mut self,
|
||||||
print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
|
print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
|
||||||
_disambiguated_data: &DisambiguatedDefPathData,
|
|
||||||
self_ty: Ty<'tcx>,
|
self_ty: Ty<'tcx>,
|
||||||
trait_ref: Option<ty::TraitRef<'tcx>>,
|
trait_ref: Option<ty::TraitRef<'tcx>>,
|
||||||
) -> Result<(), PrintError> {
|
) -> Result<(), PrintError> {
|
||||||
|
|||||||
@@ -88,7 +88,6 @@ pub trait Printer<'tcx>: Sized {
|
|||||||
fn path_append_impl(
|
fn path_append_impl(
|
||||||
&mut self,
|
&mut self,
|
||||||
print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
|
print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
|
||||||
disambiguated_data: &DisambiguatedDefPathData,
|
|
||||||
self_ty: Ty<'tcx>,
|
self_ty: Ty<'tcx>,
|
||||||
trait_ref: Option<ty::TraitRef<'tcx>>,
|
trait_ref: Option<ty::TraitRef<'tcx>>,
|
||||||
) -> Result<(), PrintError>;
|
) -> Result<(), PrintError>;
|
||||||
@@ -236,12 +235,7 @@ pub trait Printer<'tcx>: Sized {
|
|||||||
// If the impl is not co-located with either self-type or
|
// If the impl is not co-located with either self-type or
|
||||||
// trait-type, then fallback to a format that identifies
|
// trait-type, then fallback to a format that identifies
|
||||||
// the module more clearly.
|
// the module more clearly.
|
||||||
self.path_append_impl(
|
self.path_append_impl(|p| p.print_def_path(parent_def_id, &[]), self_ty, impl_trait_ref)
|
||||||
|p| p.print_def_path(parent_def_id, &[]),
|
|
||||||
&key.disambiguated_data,
|
|
||||||
self_ty,
|
|
||||||
impl_trait_ref,
|
|
||||||
)
|
|
||||||
} else {
|
} else {
|
||||||
// Otherwise, try to give a good form that would be valid language
|
// Otherwise, try to give a good form that would be valid language
|
||||||
// syntax. Preferably using associated item notation.
|
// syntax. Preferably using associated item notation.
|
||||||
|
|||||||
@@ -2340,7 +2340,6 @@ impl<'tcx> Printer<'tcx> for FmtPrinter<'_, 'tcx> {
|
|||||||
fn path_append_impl(
|
fn path_append_impl(
|
||||||
&mut self,
|
&mut self,
|
||||||
print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
|
print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
|
||||||
_disambiguated_data: &DisambiguatedDefPathData,
|
|
||||||
self_ty: Ty<'tcx>,
|
self_ty: Ty<'tcx>,
|
||||||
trait_ref: Option<ty::TraitRef<'tcx>>,
|
trait_ref: Option<ty::TraitRef<'tcx>>,
|
||||||
) -> Result<(), PrintError> {
|
) -> Result<(), PrintError> {
|
||||||
|
|||||||
@@ -332,7 +332,6 @@ impl<'tcx> Printer<'tcx> for SymbolPrinter<'tcx> {
|
|||||||
fn path_append_impl(
|
fn path_append_impl(
|
||||||
&mut self,
|
&mut self,
|
||||||
print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
|
print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
|
||||||
_disambiguated_data: &DisambiguatedDefPathData,
|
|
||||||
self_ty: Ty<'tcx>,
|
self_ty: Ty<'tcx>,
|
||||||
trait_ref: Option<ty::TraitRef<'tcx>>,
|
trait_ref: Option<ty::TraitRef<'tcx>>,
|
||||||
) -> Result<(), PrintError> {
|
) -> Result<(), PrintError> {
|
||||||
|
|||||||
@@ -846,7 +846,6 @@ impl<'tcx> Printer<'tcx> for SymbolMangler<'tcx> {
|
|||||||
fn path_append_impl(
|
fn path_append_impl(
|
||||||
&mut self,
|
&mut self,
|
||||||
_: impl FnOnce(&mut Self) -> Result<(), PrintError>,
|
_: impl FnOnce(&mut Self) -> Result<(), PrintError>,
|
||||||
_: &DisambiguatedDefPathData,
|
|
||||||
_: Ty<'tcx>,
|
_: Ty<'tcx>,
|
||||||
_: Option<ty::TraitRef<'tcx>>,
|
_: Option<ty::TraitRef<'tcx>>,
|
||||||
) -> Result<(), PrintError> {
|
) -> Result<(), PrintError> {
|
||||||
|
|||||||
@@ -269,7 +269,6 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
|
|||||||
fn path_append_impl(
|
fn path_append_impl(
|
||||||
&mut self,
|
&mut self,
|
||||||
_print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
|
_print_prefix: impl FnOnce(&mut Self) -> Result<(), PrintError>,
|
||||||
_disambiguated_data: &DisambiguatedDefPathData,
|
|
||||||
_self_ty: Ty<'tcx>,
|
_self_ty: Ty<'tcx>,
|
||||||
_trait_ref: Option<ty::TraitRef<'tcx>>,
|
_trait_ref: Option<ty::TraitRef<'tcx>>,
|
||||||
) -> Result<(), PrintError> {
|
) -> Result<(), PrintError> {
|
||||||
|
|||||||
Reference in New Issue
Block a user