This repository has been archived by the owner on Apr 15, 2022. It is now read-only.
Use an associated constant for type name in Describe #16
Labels
blocked
The ticket is blocked on another ticket or an external dependency
enhancement
New feature or request
As of #15 the
Describe
trait has an associated functiontype_name
to get theTypeName
for a describable type. We'd prefer to use an associated constant, since a type's name should be fully known at compile time. However, to do that we need to change thetype_params
field ofTypeName
to be aCow<'static, [TypeName]>
, but there's currently a rustc bug rust-lang/rust#47032 that causes that code to not compile. Once rust-lang/rust#47032 has been fixed, we should switch to using an associated constant, and either deprecate or fully remove thetype_name
function.The text was updated successfully, but these errors were encountered: