Skip to content

Using insta in doctest #339

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

Closed
irevoire opened this issue Jan 27, 2023 · 2 comments
Closed

Using insta in doctest #339

irevoire opened this issue Jan 27, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@irevoire
Copy link

irevoire commented Jan 27, 2023

Hey, I was playing with insta and tried to use it on my doctest.
I noticed it was able to emit diffs but not apply them, is this expected?
Is that something insta could support?


EDIT: Just realised there was a warning indicating that this feature is not supported.
It would be nice tho'

@mitsuhiko
Copy link
Owner

I would love to support it but unfortunately the line information emitted by rustc is wrong. I believe this issue tracks this: rust-lang/rust#79417

@mitsuhiko mitsuhiko added the enhancement New feature or request label Jan 27, 2023
@max-sixty
Copy link
Collaborator

Will plan to close as waiting on rustc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants