Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit bbf497b

Browse files
committed
Add doc comments
1 parent f69a2a6 commit bbf497b

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/librustc_ast/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ pub enum ExprKind {
11651165
/// and the remaining elements are the rest of the arguments.
11661166
/// Thus, `x.foo::<Bar, Baz>(a, b, c, d)` is represented as
11671167
/// `ExprKind::MethodCall(PathSegment { foo, [Bar, Baz] }, [x, a, b, c, d])`.
1168-
/// The `Span` is the span of the function, without the dot and receiver
1168+
/// This `Span` is the span of the function, without the dot and receiver
11691169
/// (e.g. `foo(a, b)` in `x.foo(a, b)`
11701170
MethodCall(PathSegment, Vec<P<Expr>>, Span),
11711171
/// A tuple (e.g., `(a, b, c, d)`).

src/librustc_middle/mir/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,8 @@ pub enum TerminatorKind<'tcx> {
11311131
/// `true` if this is from a call in HIR rather than from an overloaded
11321132
/// operator. True for overloaded function call.
11331133
from_hir_call: bool,
1134+
/// This `Span` is the span of the function, without the dot and receiver
1135+
/// (e.g. `foo(a, b)` in `x.foo(a, b)`
11341136
fn_span: Span,
11351137
},
11361138

src/librustc_mir_build/hair/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ crate enum ExprKind<'tcx> {
146146
// Whether this is from a call in HIR, rather than from an overloaded
147147
// operator. True for overloaded function call.
148148
from_hir_call: bool,
149+
/// This `Span` is the span of the function, without the dot and receiver
150+
/// (e.g. `foo(a, b)` in `x.foo(a, b)`
149151
fn_span: Span,
150152
},
151153
Deref {

0 commit comments

Comments
 (0)