Rename bb_items_ambiguity_error as ambiguity_error.

Because it involves `next_items` as well as `bb_items`.
This commit is contained in:
Nicholas Nethercote 2022-03-19 07:49:49 +11:00
parent d21b4f30c1
commit 354bd1071c

View File

@ -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]>,