diff --git a/src/librustc_lexer/src/lib.rs b/src/librustc_lexer/src/lib.rs index c7a803e3029c..be85a34bd395 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 { 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()))