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

Matching a struct pattern should autoderef #661

Closed
marijnh opened this issue Jul 11, 2011 · 3 comments
Closed

Matching a struct pattern should autoderef #661

marijnh opened this issue Jul 11, 2011 · 3 comments

Comments

@marijnh
Copy link
Contributor

marijnh commented Jul 11, 2011

Either that, or we need a syntax for dereferencing in a pattern.

@ghost ghost assigned marijnh Jul 11, 2011
@msullivan
Copy link
Contributor

Perhaps the answer is to introduce "box patterns"?

@pcwalton
Copy link
Contributor

What sully said; box patterns seem to me to be more broadly useful anyway (consider boxed tags, etc.)

@marijnh
Copy link
Contributor Author

marijnh commented Jul 12, 2011

I think stars are still free in pattern syntax. expr_assign(*{span...}, _) seems cute.

@marijnh marijnh removed their assignment Jun 16, 2014
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
marysaka pushed a commit to sunriseos/rust that referenced this issue Oct 20, 2019
bjorn3 added a commit to bjorn3/rust that referenced this issue Jan 24, 2023
ZuseZ4 pushed 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
- Change `#[kani::proof]` expansion so it doesn't include `#[no_mangle]` but includes `[allow(dead_code)]`. (rust-lang#661 and rust-lang#689).

- Add a check for harnesses with arguments and merge the checks into one function (rust-lang#1919). 

Co-authored-by: Zyad Hassan <[email protected]>
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