1
Fork 0

encode generics_of of fields and ty params

This commit is contained in:
Ellen 2021-08-06 14:20:59 +01:00
parent 1f94abcda6
commit 2c004a2287
6 changed files with 82 additions and 2 deletions

View file

@ -918,12 +918,12 @@ fn should_encode_generics(def_kind: DefKind) -> bool {
| DefKind::AnonConst
| DefKind::OpaqueTy
| DefKind::Impl
| DefKind::Field
| DefKind::TyParam
| DefKind::Closure
| DefKind::Generator => true,
DefKind::Mod
| DefKind::Field
| DefKind::ForeignMod
| DefKind::TyParam
| DefKind::ConstParam
| DefKind::Macro(..)
| DefKind::Use