Skip to content

#![feature(negative_impls)] breaks the guarantee for Unpin provided by pin-projectΒ #340

@taiki-e

Description

@taiki-e

pin-project provides an appropriate Unpin implementation by default. Since overlapping implementations are prohibited, this ensures that users cannot add inappropriate Unpin implementations.

However, currently, this guarantee can be broken by using #[feature(negative_impls)]: playground

Thanks @danielhenrymantilla for pointing out the interaction with this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-unpinArea: Unpin and UnsafeUnpinC-upstream-bugCategory: This is a bug of compiler or dependencies (the fix may require action in the upstream)I-unsoundA soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions