Remove an unused span
This commit is contained in:
parent
1d93b35855
commit
b745a29fa5
3 changed files with 2 additions and 17 deletions
|
@ -27,7 +27,6 @@ pub struct Autoderef<'a, 'tcx> {
|
|||
// Meta infos:
|
||||
infcx: &'a InferCtxt<'tcx>,
|
||||
span: Span,
|
||||
overloaded_span: Span,
|
||||
body_id: hir::HirId,
|
||||
param_env: ty::ParamEnv<'tcx>,
|
||||
|
||||
|
@ -103,7 +102,6 @@ impl<'a, 'tcx> Autoderef<'a, 'tcx> {
|
|||
Autoderef {
|
||||
infcx,
|
||||
span,
|
||||
overloaded_span: span,
|
||||
body_id,
|
||||
param_env,
|
||||
state: AutoderefSnapshot {
|
||||
|
@ -118,10 +116,6 @@ impl<'a, 'tcx> Autoderef<'a, 'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn with_overloaded_span(self, overloaded_span: Span) -> Self {
|
||||
Self { overloaded_span, ..self }
|
||||
}
|
||||
|
||||
fn overloaded_deref_ty(&mut self, ty: Ty<'tcx>) -> Option<Ty<'tcx>> {
|
||||
debug!("overloaded_deref_ty({:?})", ty);
|
||||
|
||||
|
@ -196,10 +190,6 @@ impl<'a, 'tcx> Autoderef<'a, 'tcx> {
|
|||
self.span
|
||||
}
|
||||
|
||||
pub fn overloaded_span(&self) -> Span {
|
||||
self.overloaded_span
|
||||
}
|
||||
|
||||
pub fn reached_recursion_limit(&self) -> bool {
|
||||
self.state.reached_recursion_limit
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue