mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-13 15:26:24 +00:00
Fix order of elaborated queries
This commit is contained in:
parent
0e47140eaf
commit
c7a1d29695
3 changed files with 9 additions and 12 deletions
|
@ -268,7 +268,7 @@ pub enum Elaboration {
|
|||
typ: String,
|
||||
source: String,
|
||||
offset_line: u32,
|
||||
queries_in_instantiation: Vec<InferredQuery>,
|
||||
queries_in_instantiation: InferredQueries,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -301,6 +301,7 @@ impl Program {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct InferredQueries(Vec<InferredQuery>);
|
||||
|
||||
impl InferredQueries {
|
||||
|
@ -555,7 +556,7 @@ impl<'a> QueryCtx<'a> {
|
|||
typ,
|
||||
source: def_source.to_owned(),
|
||||
offset_line: start.line,
|
||||
queries_in_instantiation,
|
||||
queries_in_instantiation: InferredQueries(queries_in_instantiation),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue