Skip to content

Commit e5463b9

Browse files
committed
Add comments to span debugger
1 parent 5109d1a commit e5463b9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/librustc/driver/session.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub fn debugging_opts_map() -> ~[(&'static str, &'static str, u64)] {
9696
("no-landing-pads", "omit landing pads for unwinding",
9797
NO_LANDING_PADS),
9898
("debug-llvm", "enable debug output from LLVM", DEBUG_LLVM),
99-
("show-span", "show spans", SHOW_SPAN),
99+
("show-span", "show spans for compiler debugging", SHOW_SPAN),
100100
("count-type-sizes", "count the sizes of aggregate types",
101101
COUNT_TYPE_SIZES),
102102
("meta-stats", "gather metadata statistics", META_STATS),

src/librustc/front/show_span.rs

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
//! Span debugger
12+
//!
13+
//! This module shows spans for all expressions in the crate
14+
//! to help with compiler debugging.
15+
1116
use syntax::ast;
1217
use syntax::visit;
1318
use syntax::visit::Visitor;

0 commit comments

Comments
 (0)