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

Allow crate link attributes to contain nested meta items #607

Closed
brson opened this issue Jul 1, 2011 · 0 comments
Closed

Allow crate link attributes to contain nested meta items #607

brson opened this issue Jul 1, 2011 · 0 comments
Assignees
Labels
A-linkage Area: linking into static, shared libraries and binaries

Comments

@brson
Copy link
Contributor

brson commented Jul 1, 2011

It's currently impossible to define a link attribute that has nested meta items, #[link(foo(bar))];, even though this is a valid way to write an attribute. There are unfinished branches in two methods, link::build_link_meta (that prevents translation), and attr::eq (that prevents the attribute from being matched in a use statement), that need to be filled in.

Unfortunately it's not possible to formulate a test case for this within the current test framework, so instead of writing potentially broken code, I've just made these scenarios fail.

brson added a commit that referenced this issue Jul 1, 2011
@ghost ghost assigned nikomatsakis Mar 15, 2012
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
pdietl pushed a commit to pdietl/rust that referenced this issue Apr 23, 2020
Specify behavior of int->float and f64->f32 casts
bors pushed a commit to rust-lang-ci/rust that referenced this issue Oct 26, 2020
ZuseZ4 added a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
…-lang#657)

* Introduce rmc::any and rmc::any_raw and deprecate rmc::nondet

We decided to replace the old method rmc::nondet because its behavior
wasn't clear. For some types it would respect the type invariants but
not for others. Additionally, there was no way for the user to specify
how to create safe non-deterministic values.

Users will be able to control how RMC generate symbolic values to their
variables.

- `rmc::any::<T>()` will provide a safe way to generate values
that respect any invariant specified to type T (Given by the
implementation of Arbitrary trait.)

- `rmc::any_raw::<T>()` will provide any possible bit value for the
memory layout of the type. This is an unsafe method and users must
ensure correctness after this call.

Co-authored-by: Zyad Hassan <88045115+zhassan-aws@users.noreply.github.com>
Co-authored-by: Adrian Palacios <73246657+adpaco-aws@users.noreply.github.com>
GuillaumeGomez pushed a commit to GuillaumeGomez/rust that referenced this issue Jan 24, 2025
Remove extra whitespace at the end of some line strings
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
Projects
None yet
Development

No branches or pull requests

3 participants