diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-06-09 20:31:12 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-06-10 17:30:12 -0400 |
| commit | bbf497b0eb2caec0e8c9ffba7f37dc84885e2e90 (patch) | |
| tree | 78405485cdd8c0b10af27dcc20c09714979812eb /src | |
| parent | f69a2a6cbd38a13c039fd1f1114424fe0e55b14a (diff) | |
| download | rust-bbf497b0eb2caec0e8c9ffba7f37dc84885e2e90.tar.gz rust-bbf497b0eb2caec0e8c9ffba7f37dc84885e2e90.zip | |
Add doc comments
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_ast/ast.rs | 2 | ||||
| -rw-r--r-- | src/librustc_middle/mir/mod.rs | 2 | ||||
| -rw-r--r-- | src/librustc_mir_build/hair/mod.rs | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/src/librustc_ast/ast.rs b/src/librustc_ast/ast.rs index 5012fbb30b0..9016d35ea0e 100644 --- a/src/librustc_ast/ast.rs +++ b/src/librustc_ast/ast.rs @@ -1165,7 +1165,7 @@ pub enum ExprKind { /// and the remaining elements are the rest of the arguments. /// Thus, `x.foo::<Bar, Baz>(a, b, c, d)` is represented as /// `ExprKind::MethodCall(PathSegment { foo, [Bar, Baz] }, [x, a, b, c, d])`. - /// The `Span` is the span of the function, without the dot and receiver + /// This `Span` is the span of the function, without the dot and receiver /// (e.g. `foo(a, b)` in `x.foo(a, b)` MethodCall(PathSegment, Vec<P<Expr>>, Span), /// A tuple (e.g., `(a, b, c, d)`). diff --git a/src/librustc_middle/mir/mod.rs b/src/librustc_middle/mir/mod.rs index 6ffed524400..98746d63fac 100644 --- a/src/librustc_middle/mir/mod.rs +++ b/src/librustc_middle/mir/mod.rs @@ -1131,6 +1131,8 @@ pub enum TerminatorKind<'tcx> { /// `true` if this is from a call in HIR rather than from an overloaded /// operator. True for overloaded function call. from_hir_call: bool, + /// This `Span` is the span of the function, without the dot and receiver + /// (e.g. `foo(a, b)` in `x.foo(a, b)` fn_span: Span, }, diff --git a/src/librustc_mir_build/hair/mod.rs b/src/librustc_mir_build/hair/mod.rs index 140b8bbe15e..d3ec5595365 100644 --- a/src/librustc_mir_build/hair/mod.rs +++ b/src/librustc_mir_build/hair/mod.rs @@ -146,6 +146,8 @@ crate enum ExprKind<'tcx> { // Whether this is from a call in HIR, rather than from an overloaded // operator. True for overloaded function call. from_hir_call: bool, + /// This `Span` is the span of the function, without the dot and receiver + /// (e.g. `foo(a, b)` in `x.foo(a, b)` fn_span: Span, }, Deref { |
