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 feature(const_fn_trait_ref_impls) #101803

Closed
1 of 3 tasks
onestacked opened this issue Sep 14, 2022 · 3 comments
Closed
1 of 3 tasks

Tracking Issue for feature(const_fn_trait_ref_impls) #101803

onestacked opened this issue Sep 14, 2022 · 3 comments
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC 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

@onestacked
Copy link
Contributor

onestacked commented Sep 14, 2022

Feature gate: #![feature(const_fn_trait_ref_impls)]

This is a tracking issue for the implementation of const Fn* on references of const Fn* Items.

Public API

impl<A, F: ?Sized> const Fn*<A> for &(mut) F
    where
        F: ~const Fn*<A>;

Steps / History

Unresolved Questions

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

@onestacked onestacked added C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Sep 14, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this issue Sep 15, 2022
…s, r=fee1-dead

Constify impl Fn* &(mut) Fn*

Tracking Issue: [101803](rust-lang#101803)

Feature gate: `#![feature(const_fn_trait_ref_impls)]`

This feature allows using references to Fn* Items as Fn* Items themself in a const context.
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this issue Sep 15, 2022
…s, r=fee1-dead

Constify impl Fn* &(mut) Fn*

Tracking Issue: [101803](rust-lang#101803)

Feature gate: `#![feature(const_fn_trait_ref_impls)]`

This feature allows using references to Fn* Items as Fn* Items themself in a const context.
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this issue Sep 15, 2022
…s, r=fee1-dead

Constify impl Fn* &(mut) Fn*

Tracking Issue: [101803](rust-lang#101803)

Feature gate: `#![feature(const_fn_trait_ref_impls)]`

This feature allows using references to Fn* Items as Fn* Items themself in a const context.
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this issue Sep 16, 2022
…s, r=fee1-dead

Constify impl Fn* &(mut) Fn*

Tracking Issue: [101803](rust-lang#101803)

Feature gate: `#![feature(const_fn_trait_ref_impls)]`

This feature allows using references to Fn* Items as Fn* Items themself in a const context.
@raldone01
Copy link
Contributor

raldone01 commented Sep 22, 2022

cc @fee1-dead
This feature is awesome.
However I noticed that it works without using the feature gate at all.
I create a minimal repo to reproduce:
https://github.com/raldone01/const_fn_trait_ref_impls_feature_gate_not_required_question_mark

@fee1-dead
Copy link
Member

These feature gates do not actually matter, as they will be insta-stable after const_trait_impl gets stable. As long as you are not able to use this without having const_trait_impl enabled, it is fine.

@onestacked onestacked changed the title Tracking Issue for const_fn_trait_ref_impls Tracking Issue for feature(const_fn_trait_ref_impls) Oct 13, 2022
@onestacked onestacked changed the title Tracking Issue for feature(const_fn_trait_ref_impls) Tracking Issue for feature(const_fn_trait_ref_impls) Oct 13, 2022
@onestacked onestacked changed the title Tracking Issue for feature(const_fn_trait_ref_impls) Tracking Issue for feature(const_fn_trait_ref_impls) Oct 13, 2022
@fee1-dead fee1-dead added the F-const_trait_impl `#![feature(const_trait_impl)]` label Mar 24, 2023
@RalfJung
Copy link
Member

RalfJung commented Sep 8, 2024

This got removed in #110393

@RalfJung RalfJung closed this as completed Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC 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

4 participants