diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-03-19 07:49:49 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-03-19 08:04:06 +1100 |
| commit | 354bd1071c0d7a8a636a211b9934a188fd64dabe (patch) | |
| tree | 7d0cc460743ce3e26e55a82c318049bdf4be744b | |
| parent | d21b4f30c1d96cdb9f46fb8435ee292b274a07c1 (diff) | |
| download | rust-354bd1071c0d7a8a636a211b9934a188fd64dabe.tar.gz rust-354bd1071c0d7a8a636a211b9934a188fd64dabe.zip | |
Rename `bb_items_ambiguity_error` as `ambiguity_error`.
Because it involves `next_items` as well as `bb_items`.
| -rw-r--r-- | compiler/rustc_expand/src/mbe/macro_parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_expand/src/mbe/macro_parser.rs b/compiler/rustc_expand/src/mbe/macro_parser.rs index 7b5835fce54..98b63e4b525 100644 --- a/compiler/rustc_expand/src/mbe/macro_parser.rs +++ b/compiler/rustc_expand/src/mbe/macro_parser.rs @@ -779,7 +779,7 @@ impl TtParser { (_, _) => { // Too many possibilities! - return self.bb_items_ambiguity_error( + return self.ambiguity_error( macro_name, next_items, bb_items, @@ -792,7 +792,7 @@ impl TtParser { } } - fn bb_items_ambiguity_error<'root, 'tt>( + fn ambiguity_error<'root, 'tt>( &self, macro_name: Ident, next_items: SmallVec<[MatcherPosHandle<'root, 'tt>; 1]>, |
