Replace references to "global tag" with "tag"

This commit is contained in:
Richard Feldman 2022-04-25 15:46:32 -04:00
parent 470dddc17b
commit 85e7969c2d
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798
61 changed files with 229 additions and 230 deletions

View file

@ -512,7 +512,7 @@ fn test_at_path<'a>(
render_as: RenderAs::Tag,
alternatives: vec![Ctor {
tag_id: TagId(0),
name: CtorName::Tag(TagName::Global(RECORD_TAG_NAME.into())),
name: CtorName::Tag(TagName::Tag(RECORD_TAG_NAME.into())),
arity: destructs.len(),
}],
};
@ -532,7 +532,7 @@ fn test_at_path<'a>(
IsCtor {
tag_id: 0,
ctor_name: CtorName::Tag(TagName::Global(RECORD_TAG_NAME.into())),
ctor_name: CtorName::Tag(TagName::Tag(RECORD_TAG_NAME.into())),
union,
arguments,
}
@ -685,7 +685,7 @@ fn to_relevant_branch_help<'a>(
tag_id,
..
} => {
debug_assert!(test_name == &CtorName::Tag(TagName::Global(RECORD_TAG_NAME.into())));
debug_assert!(test_name == &CtorName::Tag(TagName::Tag(RECORD_TAG_NAME.into())));
let sub_positions = destructs.into_iter().enumerate().map(|(index, destruct)| {
let pattern = match destruct.typ {
DestructType::Guard(guard) => guard.clone(),