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

Sync rust 25-03-2024 #11

Closed
wants to merge 26 commits into from
Closed

Conversation

GuillaumeGomez
Copy link
Collaborator

No description provided.

@GuillaumeGomez
Copy link
Collaborator Author

Waiting for rust-lang/gcc#44 for this to be fixed.

@GuillaumeGomez GuillaumeGomez force-pushed the sync branch 2 times, most recently from 83a228b to 94afe2f Compare March 28, 2024 09:52
RalfJung and others added 24 commits April 2, 2024 11:52
To match `derive(Diagnostic)`.

Also rename `into_diagnostic` as `into_diag`.
Avoiding the naming didn't have any meaningful perf impact.
The dead_code lint was previously eroneously missing those.
Since this lint bug has been fixed, the unused fields need
to be feature gated.
We already use `Instance` at declaration sites when available to glean
additional information about possible abstractions of the type in use.
This does the same when possible at callsites as well.

The primary purpose of this change is to allow CFI to alter how it
generates type information for indirect calls through `Virtual`
instances.
The payload of coverage statements was historically a structure with several
fields, so it was boxed to avoid bloating `StatementKind`.

Now that the payload is a single relatively-small enum, we can replace
`Box<Coverage>` with just `CoverageKind`.

This patch also adds a size assertion for `StatementKind`, to avoid
accidentally bloating it in the future.
@antoyo
Copy link
Owner

antoyo commented Jul 5, 2024

Superceeded by rust-lang#535.

@antoyo antoyo closed this Jul 5, 2024
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.

10 participants