-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Can't define types as resources #601
Comments
Resources are nominal types. The use case you show just isn't how they work. |
Ah, ok. Patrick straightened me out on the resource use case. |
keeperofdakeys
pushed a commit
to keeperofdakeys/rust
that referenced
this issue
Dec 12, 2017
Added the sync() function from unistd.h This fixes rust-lang#601.
pdietl
pushed a commit
to pdietl/rust
that referenced
this issue
Apr 23, 2020
Remove unneeded | from AssignmentExpression
ZuseZ4
pushed a commit
to EnzymeAD/rust
that referenced
this issue
Mar 7, 2023
* Don't overflow bit size * Improve activity analysis * Fixup * Fix activity * Fix enzyme test * Handle pointer return
celinval
added a commit
to celinval/rust-dev
that referenced
this issue
Jun 4, 2024
RMC code generation was creating artifacts even if rustc was run with -Z no-codegen. I changed the codegen to check for this option before writing the json files. This issue was uncovered by my change to move the rmc flags to rmc-rustc. This script is used during compiletest. In the check stage, the test runs rustc with --no-codegen.
GuillaumeGomez
pushed a commit
to GuillaumeGomez/rust
that referenced
this issue
Jan 24, 2025
Update GCC version
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following doesn't work:
Then I would expect to be able to:
Currently I don't see any way to make polymorphic resources.
The text was updated successfully, but these errors were encountered: