Skip to content

Commit

Permalink
Add comments to span debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
sanxiyn committed Feb 7, 2014
1 parent 5109d1a commit e5463b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/driver/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ pub fn debugging_opts_map() -> ~[(&'static str, &'static str, u64)] {
("no-landing-pads", "omit landing pads for unwinding",
NO_LANDING_PADS),
("debug-llvm", "enable debug output from LLVM", DEBUG_LLVM),
("show-span", "show spans", SHOW_SPAN),
("show-span", "show spans for compiler debugging", SHOW_SPAN),
("count-type-sizes", "count the sizes of aggregate types",
COUNT_TYPE_SIZES),
("meta-stats", "gather metadata statistics", META_STATS),
Expand Down
5 changes: 5 additions & 0 deletions src/librustc/front/show_span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

//! Span debugger
//!
//! This module shows spans for all expressions in the crate
//! to help with compiler debugging.
use syntax::ast;
use syntax::visit;
use syntax::visit::Visitor;
Expand Down

1 comment on commit e5463b9

@huonw
Copy link

@huonw huonw commented on e5463b9 Feb 7, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

❤️ the span police

Please sign in to comment.