about summary refs log tree commit diff
path: root/src/libsyntax/parse/lexer/comments.rs
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2018-05-31 16:53:30 -0600
committerMark Simulacrum <mark.simulacrum@gmail.com>2018-06-09 16:57:19 -0600
commit60058e5dbe1ef466010cc34aa31e84ccf1ebb330 (patch)
tree36fdd01517e9e017824a2856e38827da9410e5ef /src/libsyntax/parse/lexer/comments.rs
parent61d88318aa66669fba061e9af529365172d63cd0 (diff)
downloadrust-60058e5dbe1ef466010cc34aa31e84ccf1ebb330.tar.gz
rust-60058e5dbe1ef466010cc34aa31e84ccf1ebb330.zip
Crate-ify and delete unused code in syntax::parse
Diffstat (limited to 'src/libsyntax/parse/lexer/comments.rs')
-rw-r--r--src/libsyntax/parse/lexer/comments.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer/comments.rs b/src/libsyntax/parse/lexer/comments.rs
index 7ead1ceeed0..7da0d816d0f 100644
--- a/src/libsyntax/parse/lexer/comments.rs
+++ b/src/libsyntax/parse/lexer/comments.rs
@@ -40,7 +40,7 @@ pub struct Comment {
     pub pos: BytePos,
 }
 
-pub fn is_doc_comment(s: &str) -> bool {
+fn is_doc_comment(s: &str) -> bool {
     (s.starts_with("///") && super::is_doc_comment(s)) || s.starts_with("//!") ||
     (s.starts_with("/**") && is_block_doc_comment(s)) || s.starts_with("/*!")
 }