-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Relational binops on unit type are nonsensical #576
Comments
It looks like it just considers every relational operation over unit to be true. |
|
Oh. Oops. The cmp glue considers everything to be true, and there is cmp glue for ==, <, <=. |
So maybe the compare glue should consider < to be false. |
Closed by #663. |
keeperofdakeys
pushed a commit
to keeperofdakeys/rust
that referenced
this issue
Dec 12, 2017
Solaris: Add ports support, correct some types, add some errnos This should benefit Illumos too...
marysaka
pushed a commit
to sunriseos/rust
that referenced
this issue
Oct 20, 2019
celinval
added a commit
to celinval/rust-dev
that referenced
this issue
Jun 4, 2024
- Support to --lib-c is not well tested. Keep it as experiemental. - Change how CBMC behaves when a function that is not defined is reachable. This mitigates issues rust-lang#576. We should still add an unimplemented assertion so we can flip the results of other checks to undetermined.
antoyo
pushed a commit
to antoyo/rust
that referenced
this issue
Jan 13, 2025
stabilize `lang_tests_common` config parsing logic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following is currently what holds for relational binops on ()
Now, because we have relational binops over structural types, we have to either have relational binops over all types, or make structural comparisons much more complicated. But the implementation for unit is arbitrary. Suggest the following
The text was updated successfully, but these errors were encountered: