Skip to content

Propose a 2025H2 goal for comprehensive niche checks #333

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

1c3t3a
Copy link
Member

@1c3t3a 1c3t3a commented Jul 15, 2025

This is a follow-up goal to the previous one that I did in H1. It's continuing the work by making the checks more efficient (broader coverage) and cover all niches.

cc @saethlin, @RalfJung who helped me with the previous goal

Rendered

@1c3t3a 1c3t3a force-pushed the niche-check-h2-goal branch 2 times, most recently from cd2512b to 7504415 Compare July 16, 2025 09:16
@1c3t3a 1c3t3a force-pushed the niche-check-h2-goal branch from 7504415 to dd1dcbe Compare July 16, 2025 09:21

### The status quo

While [Miri](google.com/search?q=miri+rust&oq=miri+rust&gs_lcrp=EgZjaHJvbWUqDQgAEAAYkQIYgAQYigUyDQgAEAAYkQIYgAQYigUyCAgBEAAYFhgeMggIAhCAMQABgWGB4yBggEEEUYPDIGCAUQRRg8MgYIBhBFGDwyBggHEEUYQNIBCDI1MzJqMGo3qAIAsAIA&sourceid=chrome&ie=UTF-8)
Copy link
Member

Choose a reason for hiding this comment

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

Why does this not just link to the Miri repo...?

we e.g. inject the check for every use of an invalid enum, we already observe UB,
and the compiler may insert a `trunc` of the discriminant value when trying to
get the value. The UB may already have happened. Similar, any check for an
argument marked `nonnull` will be optimized out by the compiler.
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand this paragraph...

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