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

tests for cleanup in guards #3478

Closed
nikomatsakis opened this issue Sep 13, 2012 · 8 comments
Closed

tests for cleanup in guards #3478

nikomatsakis opened this issue Sep 13, 2012 · 8 comments
Assignees
Labels
A-codegen Area: Code generation P-low Low priority

Comments

@nikomatsakis
Copy link
Contributor

I realized I forgot to ensure that there are tests for cleanup of by-value bindings in match guards. For example, if the guard should fail, or be false, we have to be sure we don't leak. Similarly, just testing that if the guard is taken, cleanup occurs---there may not be good dedicated tests for that either.

@ghost ghost assigned nikomatsakis Sep 13, 2012
@pnkfelix
Copy link
Member

Not critical for 0.6; de-milestoning

@catamorphism
Copy link
Contributor

Nominating for milestone 5, production-ready.

@graydon
Copy link
Contributor

graydon commented Jun 20, 2013

accepted for well-covered milestone

@pnkfelix
Copy link
Member

Nominating for discussion with @nikomatsakis present.

@pnkfelix
Copy link
Member

pnkfelix commented Feb 6, 2014

P-low, not a blocker.

@emberian
Copy link
Member

I don't see any tests for this still, though I'm not sure if this is refering to the no-longer-allowed ability to move from the matched value in the guard (which does have tests).

@steveklabnik
Copy link
Member

/cc @nikomatsakis : what do you think of what @cmr is saying?

@steveklabnik
Copy link
Member

Triage: this ticket is incredibly old at this point. I'm going to assume @cmr is right. @nikomatsakis if you think that's wrong, please re-open with the correct context.

RalfJung pushed a commit to RalfJung/rust that referenced this issue Apr 20, 2024
implement support for __rust_alloc_error_handler

Fixes rust-lang/miri#3439
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation P-low Low priority
Projects
None yet
Development

No branches or pull requests

7 participants