Skip to content
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

Make sure classes can be compared #2601

Closed
catamorphism opened this issue Jun 14, 2012 · 1 comment
Closed

Make sure classes can be compared #2601

catamorphism opened this issue Jun 14, 2012 · 1 comment
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows
Milestone

Comments

@catamorphism
Copy link
Contributor

This is apropos of a FIXME in test/run-pass/binops.rs that says "uncomment this code when we can compare resources". When resources get replaced with classes, we'll need to be able to compare classes.

@catamorphism
Copy link
Contributor Author

I have a patch ready (awaiting a snapshot) that implements == and != for classes. For classes with dtors, equality means pointer equality, but for classes without dtors, it means structural equality. I'm not sure whether the comparison operators should be defined on classes.

@catamorphism catamorphism removed their assignment Jun 16, 2014
RalfJung pushed a commit to RalfJung/rust that referenced this issue Oct 22, 2022
Add Windows InitOnceBeginInitialize and InitOnceComplete shims

Fixes rust-lang#2595
Aaron1011 pushed a commit to Aaron1011/rust that referenced this issue Jan 6, 2023
Add Windows InitOnceBeginInitialize and InitOnceComplete shims

Fixes rust-lang#2595
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Signed-off-by: Felipe R. Monteiro <felisous@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows
Projects
None yet
Development

No branches or pull requests

1 participant