File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
compiler/noirc_evaluator/src/ssa/checks Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ impl DependencyContext {
327
327
function. dfg [ block] . instructions ( ) . iter ( ) . for_each ( |instruction| {
328
328
if let Instruction :: Call { func, arguments } = & function. dfg [ * instruction] {
329
329
if let Value :: Function ( callee) = & function. dfg [ * func] {
330
- if all_functions[ & callee] . runtime ( ) . is_brillig ( ) {
330
+ if all_functions[ callee] . runtime ( ) . is_brillig ( ) {
331
331
// Skip already visited locations (happens often in unrolled functions)
332
332
let call_stack = function. dfg . get_instruction_call_stack ( * instruction) ;
333
333
let location = call_stack. last ( ) ;
Original file line number Diff line number Diff line change @@ -248,15 +248,12 @@ pub(crate) fn module_def_id_relative_path(
248
248
interner,
249
249
)
250
250
} else {
251
- let Some ( module_full_path ) = relative_module_full_path (
251
+ relative_module_full_path (
252
252
module_def_id,
253
253
current_module_id,
254
254
current_module_parent_id,
255
255
interner,
256
- ) else {
257
- return None ;
258
- } ;
259
- module_full_path
256
+ ) ?
260
257
} ;
261
258
262
259
let path = if defining_module. is_some ( ) || !matches ! ( module_def_id, ModuleDefId :: ModuleId ( ..) ) {
You can’t perform that action at this time.
0 commit comments