@@ -453,13 +453,13 @@ macro_rules! step {
453453// TODO: Should we merge the spans of the input idents to produce the output span?
454454macro_rules! const_step {
455455 ( [ $( $input: ident : $Input: ident) ,* ] => $output: expr) => {
456- step!( _, [ $( $input) ,* ] => match ( $( $input. inner . as_ref( ) , ) * ) {
456+ step!( _, [ $( $input) ,* ] => match ( $( $input. as_ref( ) , ) * ) {
457457 ( $( Value :: ConstLit ( Const :: $Input( $input, ..) ) , ) * ) => Spanned :: empty( Arc :: new( Value :: ConstLit ( $output) ) ) ,
458458 _ => return None ,
459459 } )
460460 } ;
461461 ( [ $( $input: ident , $style: ident : $Input: ident) ,* ] => $output: expr) => {
462- step!( _, [ $( $input) ,* ] => match ( $( $input. inner . as_ref( ) , ) * ) {
462+ step!( _, [ $( $input) ,* ] => match ( $( $input. as_ref( ) , ) * ) {
463463 ( $( Value :: ConstLit ( Const :: $Input( $input, $style) ) , ) * ) => Spanned :: empty( Arc :: new( Value :: ConstLit ( $output) ) ) ,
464464 _ => return None ,
465465 } )
@@ -617,10 +617,10 @@ fn prim_step(prim: Prim) -> Option<PrimStep> {
617617 } ) ,
618618
619619 Prim :: Array8Find | Prim :: Array16Find | Prim :: Array32Find | Prim :: Array64Find => {
620- step ! ( context, [ _, _, pred, array] => match array. inner . as_ref( ) {
620+ step ! ( context, [ _, _, pred, array] => match array. as_ref( ) {
621621 Value :: ArrayLit ( elems) => {
622622 for elem in elems {
623- match context. fun_app( pred. clone( ) , elem. clone( ) ) . inner . as_ref( ) {
623+ match context. fun_app( pred. clone( ) , elem. clone( ) ) . as_ref( ) {
624624 Value :: ConstLit ( Const :: Bool ( true ) ) => {
625625 // TODO: Is elem.span right here?
626626 return Some ( Spanned { span: elem. span( ) , inner: Arc :: new( Value :: prim( Prim :: OptionSome , [ elem. clone( ) ] ) ) } )
@@ -676,7 +676,7 @@ impl<'arena, 'env> ElimContext<'arena, 'env> {
676676 pub fn force ( & self , value : & ArcValue < ' arena > ) -> ArcValue < ' arena > {
677677 let mut forced_value = value. clone ( ) ;
678678 // Attempt to force flexible values until we don't see any more.
679- while let Value :: Stuck ( Head :: FlexibleVar ( var) , spine) = forced_value. inner . as_ref ( ) {
679+ while let Value :: Stuck ( Head :: FlexibleVar ( var) , spine) = forced_value. as_ref ( ) {
680680 match self . flexible_exprs . get_global ( * var) {
681681 // Apply the spine to the solution. This might uncover another
682682 // flexible value so we'll continue looping.
@@ -841,7 +841,7 @@ impl<'arena, 'env> ElimContext<'arena, 'env> {
841841
842842 /// Find the representation type of a format description.
843843 pub fn format_repr ( & self , format : & ArcValue < ' arena > ) -> ArcValue < ' arena > {
844- match format. inner . as_ref ( ) {
844+ match format. as_ref ( ) {
845845 Value :: FormatRecord ( labels, formats) | Value :: FormatOverlap ( labels, formats) => {
846846 Spanned {
847847 span : format. span ( ) ,
@@ -1044,7 +1044,7 @@ impl<'in_arena, 'out_arena, 'env> QuoteContext<'in_arena, 'out_arena, 'env> {
10441044 pub fn quote ( & mut self , value : & ArcValue < ' in_arena > ) -> Term < ' out_arena > {
10451045 let value = self . elim_context ( ) . force ( value) ;
10461046 let span = value. span ( ) ;
1047- match value. inner . as_ref ( ) {
1047+ match value. as_ref ( ) {
10481048 Value :: Stuck ( head, spine) => {
10491049 let head_expr = match head {
10501050 Head :: Prim ( prim) => Term :: Prim ( span, * prim) ,
@@ -1241,7 +1241,7 @@ impl<'arena, 'env> ConversionContext<'arena, 'env> {
12411241 let value0 = self . elim_context ( ) . force ( value0) ;
12421242 let value1 = self . elim_context ( ) . force ( value1) ;
12431243
1244- match ( value0. inner . as_ref ( ) , value1. inner . as_ref ( ) ) {
1244+ match ( value0. as_ref ( ) , value1. as_ref ( ) ) {
12451245 // `ReportedError`s result from errors that have already been
12461246 // reported, so we prevent them from triggering more errors.
12471247 ( Value :: Stuck ( Head :: Prim ( Prim :: ReportedError ) , _) , _)
0 commit comments