diff options
| author | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-07-11 16:51:19 +0900 |
|---|---|---|
| committer | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-07-11 16:51:19 +0900 |
| commit | 018155c3a218b819b70d1dc57b08fe3bc7b2ec3c (patch) | |
| tree | 2ebe8ab227bd73c12a0445f6706a7179f75e904e /compiler/rustc_errors/src | |
| parent | 12d11e9a35ccb380388c0568ed1d8735d89f51c3 (diff) | |
| download | rust-018155c3a218b819b70d1dc57b08fe3bc7b2ec3c.tar.gz rust-018155c3a218b819b70d1dc57b08fe3bc7b2ec3c.zip | |
rename a method
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index f4624c07636..e59a74e380a 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -1558,7 +1558,7 @@ pub fn add_elided_lifetime_in_path_suggestion( insertion_span: Span, ) { diag.span_label(path_span, format!("expected lifetime parameter{}", pluralize!(n))); - if !source_map.is_accessible_span(insertion_span) { + if !source_map.is_span_accessible(insertion_span) { // Do not try to suggest anything if generated by a proc-macro. return; } |
