From d1e5e72f7d25cc60ccfc54d3cd3e1ef3efa3dab9 Mon Sep 17 00:00:00 2001 From: Ellen Date: Sat, 24 Jul 2021 17:32:02 +0100 Subject: [PATCH] change doc comment --- compiler/rustc_hir/src/hir.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_hir/src/hir.rs b/compiler/rustc_hir/src/hir.rs index 04c29c50e75..f3f2b83c821 100644 --- a/compiler/rustc_hir/src/hir.rs +++ b/compiler/rustc_hir/src/hir.rs @@ -1424,7 +1424,7 @@ pub type Lit = Spanned; /// explicit discriminant values for enum variants. /// /// You can check if this anon const is a default in a const param -/// `const N: usize = { ... }` with [Map::opt_const_param_default_param_hir_id] +/// `const N: usize = { ... }` with `tcx.hir().opt_const_param_default_param_hir_id(..)` #[derive(Copy, Clone, PartialEq, Eq, Encodable, Debug, HashStable_Generic)] pub struct AnonConst { pub hir_id: HirId,