Skip to content

Commit

Permalink
removing dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
xunilrj committed Jul 24, 2024
1 parent 61523e6 commit 00d39d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
9 changes: 1 addition & 8 deletions sway-core/src/ir_generation/const_eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1336,13 +1336,10 @@ fn const_eval_intrinsic(
_ => Err(ConstEvalError::CannotBeEvaluatedToConst {
span: intrinsic.span.clone(),
}),
_ => Err(ConstEvalError::CannotBeEvaluatedToConst {
span: intrinsic.span.clone(),
}),
},
_ => Err(ConstEvalError::CannotBeEvaluatedToConst {
span: intrinsic.span.clone(),
})
}),
}
}
Intrinsic::SliceElem => {
Expand Down Expand Up @@ -1404,7 +1401,6 @@ mod tests {
None,
));

dbg!(2);
let r = crate::compile_to_ast(
&handler,
&engines,
Expand All @@ -1415,15 +1411,12 @@ mod tests {
None,
);

dbg!(2);
let (errors, _warnings) = handler.consume();

dbg!(1);
if !errors.is_empty() {
panic!("{:#?}", errors);
}

dbg!(1);
let f = r.unwrap();
let f = f.typed.unwrap();

Expand Down
6 changes: 3 additions & 3 deletions sway-core/src/semantic_analysis/cei_pattern_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,9 +647,9 @@ fn effects_of_intrinsic(intr: &sway_ast::Intrinsic) -> HashSet<Effect> {
| Not
| EncodeBufferEmpty
| EncodeBufferAppend
| EncodeBufferAsRawSlice => HashSet::new(),
Slice => todo!(),
SliceElem => todo!(),
| EncodeBufferAsRawSlice
| Slice
| SliceElem => HashSet::new(),
}
}

Expand Down

0 comments on commit 00d39d8

Please sign in to comment.