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

[cpp cmd] BREAKING: Delete UB-causing rvalue variants of CommandPtr methods #4923

Merged
merged 4 commits into from
Jan 12, 2023

Conversation

Starlight220
Copy link
Member

This issue came to my attention a week ago on Discord.

This PR also rewords the command-already-composed error message to what is already used in Java; the confusing message hindered finding this bug.

I'm aware that we've already in-season and breaking changes shouldn't be done, but on the other hand this is a mistake that is very easy to make and quite difficult to diagnose. This PR does include breaking changes, but they're quite small in scope and make this type of mistake harder to make. Therefore, I think the benefit is worth breaking here.

@Starlight220 Starlight220 requested a review from a team as a code owner January 10, 2023 13:21
@Starlight220 Starlight220 added the breaking Introduces a breaking change. label Jan 10, 2023
@PeterJohnson PeterJohnson merged commit befd129 into wpilibsuite:main Jan 12, 2023
@Starlight220 Starlight220 linked an issue Jan 15, 2023 that may be closed by this pull request
@Starlight220 Starlight220 deleted the cmd-err branch January 16, 2023 10:35
Starlight220 added a commit to Starlight220/allwpilib that referenced this pull request Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Introduces a breaking change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Correct command-based error messages
3 participants