Skip to content

Generated #[deny(safe_packed_borrows)] is not compatible with #![forbid(future_incompatible)] #281

@yoshuawuyts

Description

@yoshuawuyts

The compiler's built-in #[deny(future_incompatible)] seems to be incompatible with pin-project-internal. It seems #[deny(safe_packed_borrows)] will be disallowed in the future, but pin-project generates code that uses that lint under certain circumstances. Given the Rust 2021 edition may turn all 2018 warnings into errors, this may become a problem.

I'm not exactly sure what triggers this, but adding the lint to the current main of tide surfaces the error. Though I feel I've seen this happen before when working on other crates. I'm not sure what the right outcome here is, but thought it might be important enough to raise. Thanks!

#34 seems related.

Screenshot

Screenshot 2020-09-26 19 20 16

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-pin-projectionArea: #[pin_project]C-bugCategory: related to a bug.C-enhancementCategory: A new feature or an improvement for an existing one

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions