From c1b1ea6bef631b494eb83a460f02279493506753 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Thu, 15 Feb 2024 01:12:36 +0900 Subject: [PATCH] Rename variables (#414) --- macro/src/dialect/operation.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/macro/src/dialect/operation.rs b/macro/src/dialect/operation.rs index 6b2bf55244..f07940c900 100644 --- a/macro/src/dialect/operation.rs +++ b/macro/src/dialect/operation.rs @@ -285,12 +285,12 @@ impl<'a> Operation<'a> { } fn collect_results( - def: Record<'a>, + definition: Record<'a>, same_size: bool, attribute_sized: bool, ) -> Result<(Vec, usize), Error> { Self::collect_elements( - &Self::dag_constraints(def, "results")? + &Self::dag_constraints(definition, "results")? .into_iter() .map(|(name, constraint)| (name, TypeConstraint::new(constraint))) .collect::>(), @@ -391,10 +391,10 @@ impl<'a> Operation<'a> { definition .values() .filter_map(|value| { - let Ok(def) = Record::try_from(value) else { + let Ok(definition) = Record::try_from(value) else { return None; }; - def.subclass_of("Attr").then_some(def) + definition.subclass_of("Attr").then_some(definition) }) .map(|definition| { if definition.subclass_of("DerivedAttr") {