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

rustc should delete the source file on a type error #950

Closed
pcwalton opened this issue Sep 21, 2011 · 7 comments
Closed

rustc should delete the source file on a type error #950

pcwalton opened this issue Sep 21, 2011 · 7 comments
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@pcwalton
Copy link
Contributor

This feature was added to GHC; we should support it for feature parity.

See https://twitter.com/bos31337/status/116372971509121025 for more information.

Note that when a type error occurs during macro expansion, we should probably delete the file that called the macro, not the macro itself. Alternately, we could ask the user which file we should delete.

@eevee
Copy link

eevee commented Sep 21, 2011

Interrupting the user during a compile is unacceptable. To be sure no incorrect code plagues the user's filesystem, you should delete both files.

@kingcons
Copy link

I second eevee.

@paulstansifer
Copy link
Contributor

If there's an internal error in the typechecker, the compiler should delete itself.

@paulstansifer
Copy link
Contributor

Oops, pressed the wrong button. I need to go throw away my computer now.

@eevee
Copy link

eevee commented Sep 21, 2011

Nah, just your mouse.

If the compiler detects grammatically-incorrect prose in comments, should it delete the file or the user account?

@marijnh
Copy link
Contributor

marijnh commented Sep 21, 2011

Following the visionary example of iOS, we should explore autocorrection. If an unresolved variable is within a certain edit distance of a known one, silently update the source code with the 'right' name.

@graydon
Copy link
Contributor

graydon commented Feb 15, 2012

Cute but I actually had to read it a couple times to recognize you were joking. Long day of dull triage. Closing.

@graydon graydon closed this as completed Feb 15, 2012
coastalwhite pushed a commit to coastalwhite/rust that referenced this issue Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

6 participants