-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Clarify example for unconditional_recursion #14385
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
Clarify example for unconditional_recursion #14385
Conversation
r? @Alexendoo rustbot has assigned @Alexendoo. Use |
Maybe you could also fix /// This is a hard to find infinite recursion that will crash any code
/// using it.
by using something like "Infinite recursion in trait implementation will crash or loop forever, and are hard to find.". In the example, compiling in release mode will loop forever as the recursive call is transformed into a tail recursive one, while compiling in debug mode will crash because of a stack overflow. |
315ba6a
to
95545de
Compare
Done, thanks for pointing |
r? Clippy |
Failed to set assignee to
|
95545de
to
63e7815
Compare
Thanks! |
Clarify example for unconditional_recursion
changelog: none