File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -466,12 +466,12 @@ pub fn name_from_pat(p: &hir::Pat) -> String {
466466
467467pub fn print_const ( cx : & DocContext < ' _ > , n : & ' tcx ty:: Const < ' _ > ) -> String {
468468 match n. val {
469- ty:: ConstKind :: Unevaluated ( def_id , _, promoted) => {
470- let mut s = if let Some ( def_id) = def_id . as_local ( ) {
469+ ty:: ConstKind :: Unevaluated ( def , _, promoted) => {
470+ let mut s = if let Some ( def_id) = def . did . as_local ( ) {
471471 let hir_id = cx. tcx . hir ( ) . as_local_hir_id ( def_id) ;
472472 print_const_expr ( cx, cx. tcx . hir ( ) . body_owned_by ( hir_id) )
473473 } else {
474- inline:: print_inlined_const ( cx, def_id )
474+ inline:: print_inlined_const ( cx, def . did )
475475 } ;
476476 if let Some ( promoted) = promoted {
477477 s. push_str ( & format ! ( "::{:?}" , promoted) )
You can’t perform that action at this time.
0 commit comments