rename a method
This commit is contained in:
parent
12d11e9a35
commit
018155c3a2
9 changed files with 10 additions and 10 deletions
|
@ -760,7 +760,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||
if let Some(call_span) =
|
||||
iter::successors(Some(expr.span), |s| s.parent_callsite())
|
||||
.find(|&s| sp.contains(s))
|
||||
&& sm.is_accessible_span(call_span)
|
||||
&& sm.is_span_accessible(call_span)
|
||||
{
|
||||
return Some((
|
||||
sp.with_hi(call_span.lo()),
|
||||
|
@ -773,7 +773,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||
return None;
|
||||
}
|
||||
if sp.contains(expr.span)
|
||||
&& sm.is_accessible_span(expr.span)
|
||||
&& sm.is_span_accessible(expr.span)
|
||||
{
|
||||
return Some((
|
||||
sp.with_hi(expr.span.lo()),
|
||||
|
|
|
@ -812,7 +812,7 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> {
|
|||
/// Builds the `type defined here` message.
|
||||
fn show_definition(&self, err: &mut Diagnostic) {
|
||||
let mut spans: MultiSpan = if let Some(def_span) = self.tcx.def_ident_span(self.def_id) {
|
||||
if self.tcx.sess.source_map().is_accessible_span(def_span) {
|
||||
if self.tcx.sess.source_map().is_span_accessible(def_span) {
|
||||
def_span.into()
|
||||
} else {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue