diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2018-12-03 19:45:06 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2018-12-06 23:18:06 +0100 |
| commit | 813b484d1e8185b746ab67b067fe3ca331b9b07d (patch) | |
| tree | 841d8106b45df05adec4285c161632631724967a /src/libsyntax_pos | |
| parent | 93294ea4565d209e43484cf9bb6ddd66bb7007ae (diff) | |
| download | rust-813b484d1e8185b746ab67b067fe3ca331b9b07d.tar.gz rust-813b484d1e8185b746ab67b067fe3ca331b9b07d.zip | |
Fix printing of spans with no TyCtxt
Diffstat (limited to 'src/libsyntax_pos')
| -rw-r--r-- | src/libsyntax_pos/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax_pos/lib.rs b/src/libsyntax_pos/lib.rs index 4d42b85ea75..4e3d1e89a72 100644 --- a/src/libsyntax_pos/lib.rs +++ b/src/libsyntax_pos/lib.rs @@ -611,7 +611,7 @@ impl serialize::UseSpecializedDecodable for Span { } } -fn default_span_debug(span: Span, f: &mut fmt::Formatter) -> fmt::Result { +pub fn default_span_debug(span: Span, f: &mut fmt::Formatter) -> fmt::Result { f.debug_struct("Span") .field("lo", &span.lo()) .field("hi", &span.hi()) |
