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

Abstract the version number in the Rust codebase #3306

Closed
brson opened this issue Aug 30, 2012 · 4 comments
Closed

Abstract the version number in the Rust codebase #3306

brson opened this issue Aug 30, 2012 · 4 comments

Comments

@brson
Copy link
Contributor

brson commented Aug 30, 2012

The version number is repeated many times in the Rust repo, in Makefile.in, in rust linkage and use directives, and in the docs.

@z0w0
Copy link
Contributor

z0w0 commented Apr 29, 2013

What would be the best way to do this? I can't think of a nice way that doesn't involve having two copies of the source tree.

@brson
Copy link
Contributor Author

brson commented Apr 30, 2013

There's no language mechanism that exists yet to make this possible and it may not be worth applying a preprocessor to all our source code just to do this.

@z0w0
Copy link
Contributor

z0w0 commented May 3, 2013

If macros supported literals this could be solved using: #[link(vers = cfg!("vers"))];

@alexcrichton
Copy link
Member

Closing as a dupe of #5642. The other one has links to another bug, and it's been nominated (otherwise they're pretty much the same).

bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
Do not force trailing comma when using mixed layout
RalfJung pushed a commit to RalfJung/rust that referenced this issue Feb 25, 2024
jaisnan added a commit to jaisnan/rust-dev that referenced this issue Jul 29, 2024
…#3306)

Adds support for f16 and f128, i.e 
1. adding translation to `irep` .
2. generating arbitrary values for the new types
3. generating basic invariants (checking if safe) for new types
4. Adds sanity testing for arbitrary on the new types.

Resolves rust-lang#3303
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants