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

fix ~ZeroSizeType rvalues #13382

Closed
wants to merge 1 commit into from
Closed

fix ~ZeroSizeType rvalues #13382

wants to merge 1 commit into from

Conversation

thestinger
Copy link
Contributor

Closes #13360

@thestinger thestinger deleted the zero_size branch April 14, 2014 03:49
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 18, 2022
…, r=lowr

fix: reorder dyn bounds on render

Fixes rust-lang#13368

rust-lang#13192 changed the order of dyn bounds, violating the [contract](https://github.com/rust-lang/rust-analyzer/blob/3a69435af7a1e6273744085cb251adb2b9c30a03/crates/hir-ty/src/display.rs#L896-L901) with `write_bounds_like_dyn_trait()` on render. The projection bounds are expected to come right after the trait bound they are accompanied with.

Although the reordering procedure can be made a bit more efficient, I opted for relying only on the [invariants](https://github.com/rust-lang/rust-analyzer/blob/3a69435af7a1e6273744085cb251adb2b9c30a03/crates/hir-ty/src/lower.rs#L995-L998) currently documented in `lower_dyn_trait()`. It's not the hottest path and dyn bounds tend to be short so I believe it shouldn't hurt performance noticeably.
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 24, 2024
[`missing_panics_doc`] Fix rust-lang#13381

Fix rust-lang#13381

Makes `missing_panics_doc` act like other "panicking" lints (`unwrap_used`, `panic`, etc) in constant environments.

changelog: Ignore `missing_panics_doc` in constant environments
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.

rustc attempts to free ~ZeroSizeType
1 participant