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

Make io::with_str_writer pure #3758

Closed
erickt opened this issue Oct 13, 2012 · 2 comments
Closed

Make io::with_str_writer pure #3758

erickt opened this issue Oct 13, 2012 · 2 comments

Comments

@erickt
Copy link
Contributor

erickt commented Oct 13, 2012

If io::with_str_writer was pure, it could then be used safely with to_str::ToStr.

@erickt
Copy link
Contributor Author

erickt commented Oct 16, 2012

And with this, we should also make these similar functions pure:

io::with_bytes_reader
io::with_bytes_writer
io::with_str_reader

@catamorphism
Copy link
Contributor

Fixed in b18a151 -- thanks @erickt !

RalfJung pushed a commit to RalfJung/rust that referenced this issue Aug 5, 2024
Add `miri_start` support

This PR uses a function with the exported symbol `miri_start` as a drop-in alternative to `#[start]`. So the signature stays the same as suggested in [this comment](rust-lang/miri#3498 (comment)). <del>I’ve also removed Miri’s restriction  to only work on bin crates as I don’t think this is necessary anymore.</del>

Closes rust-lang#3758
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

2 participants