File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ impl<T: Debug> Fir<T> {
118118 // FIXME: Check `to` as well
119119 }
120120 Kind :: Assignment { to, from : _ } => {
121- check ! ( to => Kind :: TypedValue { .. } , node) ;
121+ check ! ( to => Kind :: TypedValue { .. } | Kind :: Binding { .. } , node) ;
122122 // FIXME: Check `from` as well
123123 }
124124 Kind :: Instantiation {
Original file line number Diff line number Diff line change @@ -254,9 +254,9 @@ impl<T> Index<&OriginIdx> for Fir<T> {
254254
255255#[ derive( Debug , Clone ) ]
256256pub struct Node < T = ( ) > {
257- pub data : T ,
258257 pub origin : OriginIdx ,
259258 pub kind : Kind ,
259+ pub data : T ,
260260}
261261
262262/// An instance of [`Fir`] is similar to a graph, containing [`Node`]s and relationships binding them together.
You can’t perform that action at this time.
0 commit comments