-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added failure for bad types in building an executable. #7129
Conversation
177e84f
to
022c26c
Compare
I'm guessing Suggestion: if config.outputting_function {
// Emulated builtins are not supported when compiling an executable.
return Err(BuildError::DisallowedBuiltinForExecutable(generic_ty.clone()));
} |
022c26c
to
b25d7ff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @ilyalesokhin-starkware)
crates/cairo-lang-runnable-utils/src/builder.rs
line 377 at r1 (raw file):
Previously, ilyalesokhin-starkware wrote…
I'm guessing
!config.outputting_function
means test mode, but it a bad name in that case.
Maybe add another configuration flag?
Done.
Previously, orizi wrote…
What about the conditioning on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 3 files at r1.
Reviewable status: 1 of 3 files reviewed, all discussions resolved
b25d7ff
to
fddb99b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 3 files reviewed, all discussions resolved (waiting on @ilyalesokhin-starkware)
crates/cairo-lang-runnable-utils/src/builder.rs
line 377 at r1 (raw file):
Previously, ilyalesokhin-starkware wrote…
What about the conditioning on
outputting_function
? at least explain it.
it basically means that emulation makes no sense if we are actually using the output builtin.
trying to add some more info.
Done maybe?
Previously, orizi wrote…
"if we use the output builtin, no emulated builtins are allowed." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 3 files reviewed, all discussions resolved (waiting on @ilyalesokhin-starkware)
crates/cairo-lang-runnable-utils/src/builder.rs
line 377 at r1 (raw file):
Previously, ilyalesokhin-starkware wrote…
"if we use the output builtin, no emulated builtins are allowed."
what does this mean?
if we use the output builtin (which is the meaning of the outputting_function
flag) - we it means we are actually proving something - so no emulation is required.
Previously, orizi wrote…
the comment above also I would argue that the name of the flag is wrong if it means that this is going to be proved |
fddb99b
to
9e78ef6
Compare
9e78ef6
to
9ddf275
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 3 files reviewed, all discussions resolved (waiting on @ilyalesokhin-starkware)
crates/cairo-lang-runnable-utils/src/builder.rs
line 377 at r1 (raw file):
Previously, ilyalesokhin-starkware wrote…
the comment above
outputting_function
does not say anything about proving.also I would argue that the name of the flag is wrong if it means that this is going to be proved
how about now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r4, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @orizi)
crates/cairo-lang-runnable-utils/src/builder.rs
line 377 at r1 (raw file):
Previously, orizi wrote…
how about now?
Nice
commit-id:db822d43
9ddf275
to
b82100f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r5, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @orizi)
Stack: