diff options
| author | bors <bors@rust-lang.org> | 2020-10-07 11:51:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-10-07 11:51:51 +0000 |
| commit | a14bf4862df2749917a3eed7a44d420b8fa4e55d (patch) | |
| tree | 2180edc04a7a5b3603db713a0cbe614f90d7516e /compiler/rustc_parse/src/parser/mod.rs | |
| parent | 8ae3b509768774a9d351b939d18d5cb421b6ed3b (diff) | |
| parent | 219c66c55c86db51a1a278c2d3cb7f8a1f4426e9 (diff) | |
| download | rust-a14bf4862df2749917a3eed7a44d420b8fa4e55d.tar.gz rust-a14bf4862df2749917a3eed7a44d420b8fa4e55d.zip | |
Auto merge of #77595 - petrochenkov:asmident, r=oli-obk
builtin_macros: Fix use of interpolated identifiers in `asm!` Fixes https://github.com/rust-lang/rust/issues/77584
Diffstat (limited to 'compiler/rustc_parse/src/parser/mod.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs index 7340c574480..070fc140ec4 100644 --- a/compiler/rustc_parse/src/parser/mod.rs +++ b/compiler/rustc_parse/src/parser/mod.rs @@ -386,7 +386,7 @@ impl<'a> Parser<'a> { next } - crate fn unexpected<T>(&mut self) -> PResult<'a, T> { + pub fn unexpected<T>(&mut self) -> PResult<'a, T> { match self.expect_one_of(&[], &[]) { Err(e) => Err(e), // We can get `Ok(true)` from `recover_closing_delimiter` |
