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

type_name doesn't get correct type_name with const generics. #65372

Closed
crlf0710 opened this issue Oct 13, 2019 · 0 comments · Fixed by #68111
Closed

type_name doesn't get correct type_name with const generics. #65372

crlf0710 opened this issue Oct 13, 2019 · 0 comments · Fixed by #68111
Assignees
Labels
A-const-generics Area: const generics (parameters and arguments) A-intrinsics Area: Intrinsics C-bug Category: This is a bug. F-const_generics `#![feature(const_generics)]` requires-nightly This issue requires a nightly compiler in some way. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@crlf0710
Copy link
Member

Example code:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=2dd38f47a052e3545fad6cd1249d6a6a

dbg!(std::any::type_name::<Test<isize, {3}>>());
=>
[src/main.rs:11] std::any::type_name::<Test<isize, { 3 }>>() = "playground::Test<isize, >"
@jonas-schievink jonas-schievink added A-const-generics Area: const generics (parameters and arguments) F-const_generics `#![feature(const_generics)]` requires-nightly This issue requires a nightly compiler in some way. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-bug Category: This is a bug. A-intrinsics Area: Intrinsics labels Oct 13, 2019
@varkor varkor self-assigned this Jan 11, 2020
@bors bors closed this as completed in cbaecee Jan 25, 2020
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) A-intrinsics Area: Intrinsics C-bug Category: This is a bug. F-const_generics `#![feature(const_generics)]` requires-nightly This issue requires a nightly compiler in some way. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants