about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorTakayuki Maeda <takoyaki0316@gmail.com>2022-07-11 16:51:19 +0900
committerTakayuki Maeda <takoyaki0316@gmail.com>2022-07-11 16:51:19 +0900
commit018155c3a218b819b70d1dc57b08fe3bc7b2ec3c (patch)
tree2ebe8ab227bd73c12a0445f6706a7179f75e904e /compiler/rustc_span/src
parent12d11e9a35ccb380388c0568ed1d8735d89f51c3 (diff)
downloadrust-018155c3a218b819b70d1dc57b08fe3bc7b2ec3c.tar.gz
rust-018155c3a218b819b70d1dc57b08fe3bc7b2ec3c.zip
rename a method
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/source_map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_span/src/source_map.rs b/compiler/rustc_span/src/source_map.rs
index 66ed32dced6..afbb88e9233 100644
--- a/compiler/rustc_span/src/source_map.rs
+++ b/compiler/rustc_span/src/source_map.rs
@@ -597,7 +597,7 @@ impl SourceMap {
         local_begin.sf.src.is_some() && local_end.sf.src.is_some()
     }
 
-    pub fn is_accessible_span(&self, sp: Span) -> bool {
+    pub fn is_span_accessible(&self, sp: Span) -> bool {
         self.span_to_source(sp, |src, start_index, end_index| {
             Ok(src.get(start_index..end_index).is_some())
         })