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

Add extra assertions to tl:optional #3169

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

powerboat9
Copy link
Contributor

This isn't producing any extra errors on my end, but the extra checks should at least be good to have.

@powerboat9 powerboat9 force-pushed the add-asserts branch 2 times, most recently from c60118a to 754d183 Compare September 18, 2024 20:09
@powerboat9
Copy link
Contributor Author

powerboat9 commented Sep 18, 2024

Assumed the UB was present in both master and #3150, this is probably applicable in the latter

gcc/rust/ChangeLog:

	* util/optional.h
	(optional): Add assertions to dereference operator overloads
	when C++14 is available.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Copy link
Member

@CohenArthur CohenArthur left a comment

Choose a reason for hiding this comment

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

thanks! looks good!

@CohenArthur CohenArthur added this pull request to the merge queue Sep 24, 2024
Merged via the queue into Rust-GCC:master with commit 1a9f70b Sep 24, 2024
12 checks passed
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.

2 participants