Skip to content

Commit

Permalink
Merge branch 'main' into feat/vec_iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
julio4 authored Jan 3, 2025
2 parents a0106b6 + 825b42d commit 2af5ce4
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions corelib/src/prelude/v2023_01.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ use crate::traits::{
Felt252DictValue, Into, Mul, Neg, Not, PanicDestruct, PartialEq, PartialOrd, Rem, Sub, TryInto,
TupleSize0Copy, TupleSize0Drop,
};
use crate::iter::{IntoIterator, Iterator};
use crate::zeroable::{NonZero, Zeroable};
use crate::{
BoolBitAnd, BoolBitOr, BoolBitXor, BoolFelt252DictValue, BoolIntoFelt252, BoolNot,
Expand Down
1 change: 1 addition & 0 deletions corelib/src/prelude/v2023_10.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pub use crate::traits::{
Add, BitAnd, BitNot, BitOr, BitXor, Copy, Default, Destruct, Div, DivRem, Drop,
Felt252DictValue, Into, Mul, Neg, Not, PanicDestruct, PartialEq, PartialOrd, Rem, Sub, TryInto,
};
pub use crate::iter::{IntoIterator, Iterator};
pub use crate::zeroable::NonZero;
pub use crate::{
RangeCheck, SegmentArena, assert, bool, felt252, keccak, math, starknet, to_byte_array, usize,
Expand Down
1 change: 1 addition & 0 deletions corelib/src/prelude/v2024_07.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub use crate::traits::{
Add, Copy, Default, Destruct, Div, DivRem, Drop, Felt252DictValue, Into, Mul, Neg, Not,
PanicDestruct, PartialEq, PartialOrd, Rem, Sub, TryInto,
};
pub use crate::iter::{IntoIterator, Iterator};
pub use crate::{assert, bool, felt252, starknet, usize};

pub use crate::zeroable::NonZero;
1 change: 0 additions & 1 deletion corelib/src/test/array_test.cairo
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use crate::iter::{IntoIterator, Iterator};
use crate::test::test_utils::assert_eq;

#[test]
Expand Down
2 changes: 0 additions & 2 deletions corelib/src/test/language_features/for_test.cairo
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use crate::iter::IntoIterator;

#[test]
fn test_for_loop_array_sum() {
let mut sum = 0;
Expand Down
2 changes: 0 additions & 2 deletions corelib/src/test/option_test.cairo
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use crate::iter::{IntoIterator, Iterator};

#[test]
fn test_option_some_expect() {
assert!(Option::Some(42).expect('') == 42);
Expand Down
3 changes: 1 addition & 2 deletions crates/cairo-lang-plugins/src/plugins/compile_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ impl MacroPlugin for CompileErrorPlugin {
let ast::Expr::String(err_message) = compilation_error_arg else {
return PluginResult::diagnostic_only(PluginDiagnostic::error(
&compilation_error_arg,
"`compiler_error!` argument must be an unnamed string argument."
.to_string(),
"`compile_error!` argument must be an unnamed string argument.".to_string(),
));
};
return PluginResult::diagnostic_only(PluginDiagnostic::error(
Expand Down
2 changes: 1 addition & 1 deletion crates/cairo-lang-plugins/src/test_data/compile_error
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ compile_error!();
^^^^^^^^^^^^^^^^^


error: `compiler_error!` argument must be an unnamed string argument.
error: `compile_error!` argument must be an unnamed string argument.
--> test_src/lib.cairo:3:16
compile_error!(1);
^
Expand Down
Binary file added docs/other/gas_blog_post.pdf
Binary file not shown.

0 comments on commit 2af5ce4

Please sign in to comment.