We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 214159a commit 4e791b0Copy full SHA for 4e791b0
crates/cairo-lang-lowering/src/cache/mod.rs
@@ -159,14 +159,14 @@ pub fn generate_crate_cache<'db>(
159
.iter()
160
.filter_map(|id| {
161
db.function_body(*id).ok()?;
162
- let multi = match lower_semantic_function(db, *id).map(Arc::new) {
+ let multi = match lower_semantic_function(db, *id) {
163
Ok(multi) => multi,
164
Err(err) => return Some(Err(err)),
165
};
166
167
Some(Ok((
168
DefsFunctionWithBodyIdCached::new(*id, &mut ctx.semantic_ctx),
169
- MultiLoweringCached::new((*multi).clone(), &mut ctx),
+ MultiLoweringCached::new(multi, &mut ctx),
170
)))
171
})
172
.collect::<Maybe<Vec<_>>>()?;
0 commit comments