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

Relegate Box<slice> to an input-only type #616

Open
Manishearth opened this issue Aug 1, 2024 · 0 comments
Open

Relegate Box<slice> to an input-only type #616

Manishearth opened this issue Aug 1, 2024 · 0 comments
Labels
techdebt Internal issue with minimal external impact

Comments

@Manishearth
Copy link
Contributor

Now that we have input-only types, Box<slice> should be relegated to an input-only type

This should be done with a new TyPosition::SliceLifetime associated type, which can be Lifetime or Option<Lifetime>, and is Option<Lifetime> only for input types.

(This would forbid it from occurring in structs, much like callbacks, until we add input-only structs)

cc @robertbastian

@Manishearth Manishearth added the techdebt Internal issue with minimal external impact label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
techdebt Internal issue with minimal external impact
Projects
None yet
Development

No branches or pull requests

1 participant