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

Tracking Issue for const Derefs #88955

Open
1 of 3 tasks
fee1-dead opened this issue Sep 15, 2021 · 0 comments
Open
1 of 3 tasks

Tracking Issue for const Derefs #88955

fee1-dead opened this issue Sep 15, 2021 · 0 comments
Labels
C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. F-const_trait_impl `#![feature(const_trait_impl)]` T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@fee1-dead
Copy link
Member

fee1-dead commented Sep 15, 2021

Feature gate: #![feature(const_deref)]

This is a tracking issue for implementing const Deref{,Mut} in the standard library.

Public API

// alloc::borrow

impl<B: ?Sized + ToOwned> const Deref for Cow<'_, B>
where
    B::Owned: ~const Borrow<B> {
    type Target = B;
}

// core::mem::manually_drop
impl<T: ?Sized> const Deref for ManuallyDrop<T> {
    type Target = T;
}
impl<T: ?Sized> const DerefMut for ManuallyDrop<T> {
    type Target = T;
}

// core::ops::deref
impl<T: ?Sized> const Deref for &mut T {
    type Target = T;
}
impl<T: ?Sized> const Deref for &T {
    type Target = T;
}

Steps / History

Unresolved Questions

  • None yet.
@fee1-dead fee1-dead added C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Sep 15, 2021
@fee1-dead fee1-dead added the F-const_trait_impl `#![feature(const_trait_impl)]` label Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. F-const_trait_impl `#![feature(const_trait_impl)]` T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

1 participant