We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
first_token
1 parent bd23d68 commit b4fdf64Copy full SHA for b4fdf64
compiler/rustc_lexer/src/lib.rs
@@ -221,6 +221,7 @@ pub fn strip_shebang(input: &str) -> Option<usize> {
221
}
222
223
/// Parses the first token from the provided input string.
224
+#[inline]
225
pub fn first_token(input: &str) -> Token {
226
debug_assert!(!input.is_empty());
227
Cursor::new(input).advance_token()
0 commit comments