Skip to content

Commit 178cffe

Browse files
authored
Rollup merge of #97994 - kyoto7250:fix_hir_link, r=cjgillot
feat(fix): update some links in `hir.rs` This PR fixes some links in `hir.rs`. The relative paths seem to be different from when this comment was committed. ref: - related commit 1e6adad - current page https://doc.rust-lang.org/beta/nightly-rustc/rustc_hir/hir/enum.QPath.html https://doc.rust-lang.org/beta/nightly-rustc/rustc_hir/hir/enum.ExprKind.html#variant.MethodCall Thank you in advance.
2 parents c82bc1e + 3685a1e commit 178cffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_hir/src/hir.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1885,7 +1885,7 @@ pub enum ExprKind<'hir> {
18851885
/// To resolve the called method to a `DefId`, call [`type_dependent_def_id`] with
18861886
/// the `hir_id` of the `MethodCall` node itself.
18871887
///
1888-
/// [`type_dependent_def_id`]: ../ty/struct.TypeckResults.html#method.type_dependent_def_id
1888+
/// [`type_dependent_def_id`]: ../../rustc_middle/ty/struct.TypeckResults.html#method.type_dependent_def_id
18891889
MethodCall(&'hir PathSegment<'hir>, &'hir [Expr<'hir>], Span),
18901890
/// A tuple (e.g., `(a, b, c, d)`).
18911891
Tup(&'hir [Expr<'hir>]),
@@ -1982,7 +1982,7 @@ pub enum ExprKind<'hir> {
19821982
///
19831983
/// To resolve the path to a `DefId`, call [`qpath_res`].
19841984
///
1985-
/// [`qpath_res`]: ../rustc_middle/ty/struct.TypeckResults.html#method.qpath_res
1985+
/// [`qpath_res`]: ../../rustc_middle/ty/struct.TypeckResults.html#method.qpath_res
19861986
#[derive(Debug, HashStable_Generic)]
19871987
pub enum QPath<'hir> {
19881988
/// Path to a definition, optionally "fully-qualified" with a `Self`

0 commit comments

Comments
 (0)