Skip to content

Auto-Move on#2411

Closed
ActionsPerMinute wants to merge 2 commits into
rust-lang:mainfrom
ActionsPerMinute:main
Closed

Auto-Move on#2411
ActionsPerMinute wants to merge 2 commits into
rust-lang:mainfrom
ActionsPerMinute:main

Conversation

@ActionsPerMinute

Copy link
Copy Markdown

feature to allow rustlings to automatically move on to the next exercise, so the flow is not interrupted

@senekor

senekor commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

I'm sceptical if this is a good idea. It's easy to remove or comment out lines such that an exercise compiles, even though it is not yet solved.

@ActionsPerMinute

Copy link
Copy Markdown
Author

I'm sceptical if this is a good idea. It's easy to remove or comment out lines such that an exercise compiles, even though it is not yet solved.

I mean, that's true for all rustlings, you can go through the whole thing commenting out the asserts. Whether it auto moves to the next exercise is orthogonal to that fact. You can do that with this feature or without this feature. If you wanted to solve that, you'd put the asserts in a different file from where the exercises were.

For those that want to do the exercises properly, this streamlines the experience.

@senekor

senekor commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

I mean accidentally. If the auto-move is turned on and the exercise compiles accidentally, or because the user is trying something out by "cutting" non-compiling lines and pasting them somewhere else, rustlings would move on to the next exercise, which is not what the user wants. Getting back to the previous exercise is more tedious.

I agree that we don't need to worry about people cheating at the exercises.

@ActionsPerMinute

Copy link
Copy Markdown
Author

So, you have to save the file; or at least the way I'm using rust you have to.. You'd do all the moving in the editor, then the saving of the file would be like the "submit" of the attempt. Rustlings only evaluates when the file is saved, not during the file edit. At least, it does for me, I don't know if other editors continually save all changes

@mo8it

mo8it commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Closing because I agree with @senekor about accidential skipping.

Another source of confusion:
You solve an exercise and Rustlings automatically moves to the next one but you don't notice it and start questioning why it is not solved yet. Some exercises are similar so they will have similar errors. They also have similar names. So it is easy to miss.

@mo8it mo8it closed this Jun 15, 2026
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