1
Fork 0

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
This commit is contained in:
bors 2020-10-07 11:51:51 +00:00
commit a14bf4862d
5 changed files with 95 additions and 20 deletions

View file

@ -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`