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 {
466
466
467
467
pub fn print_const ( cx : & DocContext < ' _ > , n : & ' tcx ty:: Const < ' _ > ) -> String {
468
468
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 ( ) {
471
471
let hir_id = cx. tcx . hir ( ) . as_local_hir_id ( def_id) ;
472
472
print_const_expr ( cx, cx. tcx . hir ( ) . body_owned_by ( hir_id) )
473
473
} else {
474
- inline:: print_inlined_const ( cx, def_id )
474
+ inline:: print_inlined_const ( cx, def . did )
475
475
} ;
476
476
if let Some ( promoted) = promoted {
477
477
s. push_str ( & format ! ( "::{:?}" , promoted) )
You can’t perform that action at this time.
0 commit comments