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 unsized const parameter types: feature(unsized_const_params) #128028

Open
5 tasks
BoxyUwU opened this issue Jul 21, 2024 · 0 comments
Open
5 tasks
Labels
A-const-generics Area: const generics (parameters and arguments) C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC F-unsized_const_params `#![feature(unsized_const_params)]` T-lang Relevant to the language team, which will review and decide on the PR/issue.

Comments

@BoxyUwU
Copy link
Member

BoxyUwU commented Jul 21, 2024

This is a tracking issue for supporting unsized types in const generics.
The feature gate for the issue is #![feature(unsized_const_params)].

About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.

Steps

Most of the work here will be coordinated in the #project-const-generics stream on zulip.

Unresolved Questions

  • Can we forbid references and support !Sized types some other way

Implementation history

cc @rust-lang/project-const-generics

@BoxyUwU BoxyUwU added T-lang Relevant to the language team, which will review and decide on the PR/issue. C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC A-const-generics Area: const generics (parameters and arguments) F-unsized_const_params `#![feature(unsized_const_params)]` labels Jul 21, 2024
@BoxyUwU BoxyUwU changed the title Tracking Issue for unsized const parameter types Tracking Issue for unsized const parameter types: feature(unsized_const_params) Jul 21, 2024
@rust-lang rust-lang deleted a comment Jul 28, 2024
workingjubilee added a commit to workingjubilee/rustc that referenced this issue Sep 23, 2024
Handle unsized consts with type `str`  in v0 symbol mangling

This PR fixes rust-lang#116303 by handling consts with type `str` in v0 symbol mangling as partial support for unsized consts.

This PR is related to `#![feature(adt_const_params)]` (rust-lang#95174) and `#![feature(unsized_const_params)]` (rust-lang#128028).

r? `@BoxyUwU`
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Sep 23, 2024
Handle unsized consts with type `str`  in v0 symbol mangling

This PR fixes rust-lang#116303 by handling consts with type `str` in v0 symbol mangling as partial support for unsized consts.

This PR is related to `#![feature(adt_const_params)]` (rust-lang#95174) and `#![feature(unsized_const_params)]` (rust-lang#128028).

r? ``@BoxyUwU``
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Sep 23, 2024
Rollup merge of rust-lang#130344 - Jaic1:fix-116306, r=BoxyUwU

Handle unsized consts with type `str`  in v0 symbol mangling

This PR fixes rust-lang#116303 by handling consts with type `str` in v0 symbol mangling as partial support for unsized consts.

This PR is related to `#![feature(adt_const_params)]` (rust-lang#95174) and `#![feature(unsized_const_params)]` (rust-lang#128028).

r? ``@BoxyUwU``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-const-generics Area: const generics (parameters and arguments) C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC F-unsized_const_params `#![feature(unsized_const_params)]` T-lang Relevant to the language team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

1 participant