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

extra::tempfile::mkdtemp should return an RAII wrapper, not a Path #9763

Closed
ben0x539 opened this issue Oct 8, 2013 · 2 comments
Closed

extra::tempfile::mkdtemp should return an RAII wrapper, not a Path #9763

ben0x539 opened this issue Oct 8, 2013 · 2 comments

Comments

@ben0x539
Copy link
Contributor

ben0x539 commented Oct 8, 2013

There is not a lot of ways to use the path to a supposedly temporary filesystem entry correctly without some RAII'd logic to remove the entry in the case of failure. Pretty much all callers have to use finally, which I gather we aren't too happy with because of rightwards drift, or roll their own RAII, which seems like it could be provided out of the box.

@hatahet
Copy link
Contributor

hatahet commented Oct 24, 2013

Should this be closed, given that #9764 was closed?

@catamorphism
Copy link
Contributor

Yes, #9802 fixed this. Thanks!

flip1995 pushed a commit to flip1995/rust that referenced this issue Nov 21, 2022
Fix `explicit_auto_deref` fp

fixes rust-lang#9763
fixes rust-lang#9811

changelog: `explicit_auto_deref`: Don't lint when the target type is a projection with generic arguments
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