Skip to content

Give type parameters kind constraints, and check them. #132

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

Closed
froystig opened this issue Jul 28, 2010 · 2 comments
Closed

Give type parameters kind constraints, and check them. #132

froystig opened this issue Jul 28, 2010 · 2 comments
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) A-type-system Area: Type system

Comments

@froystig
Copy link
Contributor

Some items need to have information about the possible kind of the type parameters they accept. For instance, the following function:

fn vec1[copy T](&T x) -> vec[T] { ret vec(x); }

The typechecker should check that kind constraints are satisfied whenever type arguments are actually applied to items. Middle-end should make sure to use the kind constraint when calculating the kind of a type-parameter type.

@graydon
Copy link
Contributor

graydon commented Jan 27, 2011

Shifted to rustc.

@graydon
Copy link
Contributor

graydon commented Jul 28, 2011

Subsumed into #234, which is now wip. Closing this.

@graydon graydon closed this as completed Jul 28, 2011
oli-obk pushed a commit to oli-obk/rust that referenced this issue Jul 19, 2017
we cannot panic, thus `panicking` always returns false
kazcw pushed a commit to kazcw/rust that referenced this issue Oct 23, 2018
_mm256_cvtepi8_epi16
_mm256_cvtepi8_epi32
_mm256_cvtepi8_epi64
_mm256_cvtepi16_epi32
_mm256_cvtepi16_epi64
_mm256_cvtepi32_epi64
dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018
djtech-dev pushed a commit to djtech-dev/rust that referenced this issue Dec 9, 2021
Move MetadataValue methods to InstructionValue
bjorn3 pushed a commit to bjorn3/rust that referenced this issue Feb 27, 2022
Support -Cpanic=unwind without unwinding
jaisnan pushed a commit to jaisnan/rust-dev that referenced this issue Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

2 participants