We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6b1857 commit eccc2feCopy full SHA for eccc2fe
src/librustc_save_analysis/lib.rs
@@ -702,7 +702,7 @@ impl<'tcx> SaveContext<'tcx> {
702
Res::Def(HirDefKind::ConstParam, def_id) => {
703
Some(Ref { kind: RefKind::Variable, span, ref_id: id_from_def_id(def_id) })
704
}
705
- Res::Def(HirDefKind::Ctor(_, ..), def_id) => {
+ Res::Def(HirDefKind::Ctor(..), def_id) => {
706
// This is a reference to a tuple struct or an enum variant where the def_id points
707
// to an invisible constructor function. That is not a very useful
708
// def, so adjust to point to the tuple struct or enum variant itself.
0 commit comments