about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAyush Kumar Mishra <ayush.k.mishra@xcelenergy.com>2020-04-21 22:29:20 +0530
committerAyush Kumar Mishra <ayush.k.mishra@xcelenergy.com>2020-04-21 22:29:20 +0530
commit1b362cd1d5f09f0031b2ce1b161152422a397a67 (patch)
tree275390db15bf9164a4291ecb17d3a6f0472abf09
parent365b3cc7818f737860a0d71d7ca180e06bb7475a (diff)
downloadrust-1b362cd1d5f09f0031b2ce1b161152422a397a67.tar.gz
rust-1b362cd1d5f09f0031b2ce1b161152422a397a67.zip
Minor refactoring
-rw-r--r--src/librustc_lexer/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_lexer/src/lib.rs b/src/librustc_lexer/src/lib.rs
index c7a803e3029..be85a34bd39 100644
--- a/src/librustc_lexer/src/lib.rs
+++ b/src/librustc_lexer/src/lib.rs
@@ -237,7 +237,7 @@ pub enum Base {
 pub fn strip_shebang(input: &str) -> Option<usize> {
     debug_assert!(!input.is_empty());
     let s: &str = &remove_whitespace(input);
-    if !s.starts_with("#!") || s.starts_with("#![") || s.starts_with("#! [") {
+    if !s.starts_with("#!") || s.starts_with("#![") {
         return None;
     }
     Some(input.find('\n').unwrap_or(input.len()))