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

Classes: make sure exports work as expected #2286

Closed
catamorphism opened this issue Apr 25, 2012 · 1 comment
Closed

Classes: make sure exports work as expected #2286

catamorphism opened this issue Apr 25, 2012 · 1 comment
Labels
A-linkage Area: linking into static, shared libraries and binaries A-resolve Area: Name/path resolution done by `rustc_resolve` specifically A-type-system Area: Type system
Milestone

Comments

@catamorphism
Copy link
Contributor

I think if we export C and C is a class, that should also export C's public fields and methods, by default, by analogy with how we handle enums. Make sure that's actually true.

@ghost ghost assigned catamorphism Apr 25, 2012
@catamorphism
Copy link
Contributor Author

Already worked. Tested in e0da0dd

@catamorphism catamorphism removed their assignment Jun 16, 2014
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 22, 2022
Support `gettimeofday` on more than macos

This appears to be in linux and in openbsd as well:

* https://github.com/torvalds/linux/blob/master/lib/vdso/gettimeofday.c
* https://github.com/openbsd/src/blob/master/sys/sys/time.h#L439

Note that std currently says [different syscalls are used on mac vs linux](https://doc.rust-lang.org/std/time/struct.SystemTime.html#platform-specific-behavior) but this is not part of[ std's contract](https://doc.rust-lang.org/std/io/index.html#platform-specific-behavior) and third party code could call the syscall directly on different platforms.
jieyouxu added a commit to jieyouxu/rust that referenced this issue Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linkage Area: linking into static, shared libraries and binaries A-resolve Area: Name/path resolution done by `rustc_resolve` specifically A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

1 participant