You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: typecheck/src/generics/mono.rs
+15-34Lines changed: 15 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -95,11 +95,13 @@
95
95
// how does that affect our generator? something like multimapper where we take in Foo[T], a Map { Foo[T]: Foo[int], Foo[string] } and return vec![foo[int], foo[string]]?
96
96
// do we return the generic version? no, right?
97
97
98
-
use fir::{Kind,MultiMapper,Node,OriginIdx,RefIdx};
98
+
use fir::{Fir,Incomplete,Kind,MultiMapper,Node,OriginIdx,RefIdx};
99
99
use flatten::FlattenData;
100
100
101
+
usesuper::substitutions;
102
+
101
103
pubstructMonomorphize{
102
-
to_mono:(),
104
+
input: substitutions::Output,
103
105
}
104
106
105
107
#[derive(Debug)]
@@ -108,36 +110,15 @@ pub struct Error;
108
110
// FIXME: This can probably benefit from using a different `U` here - something like T -> U becomes FlattenData -> (MonodIdx, FlattenData)
109
111
// Also the `From: T` in Mapper should probably be a `From: (&Node, T)` - so that we get all the info possible
0 commit comments