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

feat: Remind the user of the hint option #425

Merged
merged 1 commit into from
Jul 8, 2020

Conversation

alexxroche
Copy link
Contributor

Suggestion from AbdouSeck #424 (comment) for when the student's code has errors.

(Works for me, but I haven't done extensive testing to check how this could impact other exercises, so this should be reviewed by someone more competent than me, before merging.)

Suggestion from AbdouSeck rust-lang#424 (comment)
for when the student's code has errors.
@AbdouSeck AbdouSeck self-assigned this Jun 13, 2020
Copy link
Contributor

@AbdouSeck AbdouSeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change should catch exercises where the code compiles but the output panics. One caveat with this patch is that it only makes the learner aware that their code panics. It does not mark the exercise as incomplete. I cannot currently think of an easy way to force panicking code to be marked as incomplete when the exercise is not a Test exercise. But there should be a way to get that done.

For now, though, I would approve this and hopefully we'll engage in more discussion to see if there is any merit to marking a Compile mode exercise as incomplete if the learner's code panics.

Thanks!

Abdou

@shadows-withal shadows-withal changed the title Remind the user of the hint option feat: Remind the user of the hint option Jul 8, 2020
@shadows-withal shadows-withal merged commit 9f61db5 into rust-lang:master Jul 8, 2020
shadows-withal pushed a commit that referenced this pull request Jul 8, 2020
Suggestion from AbdouSeck #424 (comment)
for when the student's code has errors.
dlemel8 pushed a commit to dlemel8/rustlings that referenced this pull request Aug 2, 2020
Suggestion from AbdouSeck rust-lang#424 (comment)
for when the student's code has errors.
ppp3 pushed a commit to ppp3/rustlings that referenced this pull request May 23, 2022
Suggestion from AbdouSeck rust-lang#424 (comment)
for when the student's code has errors.
ppp3 pushed a commit to ppp3/rustlings that referenced this pull request May 23, 2022
Suggestion from AbdouSeck rust-lang#424 (comment)
for when the student's code has errors.
dmoore04 pushed a commit to dmoore04/rustlings that referenced this pull request Sep 11, 2022
Suggestion from AbdouSeck rust-lang#424 (comment)
for when the student's code has errors.
dmoore04 pushed a commit to dmoore04/rustlings that referenced this pull request Sep 11, 2022
Suggestion from AbdouSeck rust-lang#424 (comment)
for when the student's code has errors.
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

Successfully merging this pull request may close these issues.

3 participants