about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSeo Sanghyeon <sanxiyn@gmail.com>2014-02-07 20:13:07 +0900
committerSeo Sanghyeon <sanxiyn@gmail.com>2014-02-07 20:13:07 +0900
commite5463b996c84b34c6f7cb55a7e9e5cfdc29ca028 (patch)
tree30bef8e9e32ed0d01d178fb730728b5a24be190f
parent5109d1adcefa314e75493e8271826d08e2dffa62 (diff)
downloadrust-e5463b996c84b34c6f7cb55a7e9e5cfdc29ca028.tar.gz
rust-e5463b996c84b34c6f7cb55a7e9e5cfdc29ca028.zip
Add comments to span debugger
-rw-r--r--src/librustc/driver/session.rs2
-rw-r--r--src/librustc/front/show_span.rs5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/librustc/driver/session.rs b/src/librustc/driver/session.rs
index 4e386fa343d..6fb7e749475 100644
--- a/src/librustc/driver/session.rs
+++ b/src/librustc/driver/session.rs
@@ -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),
diff --git a/src/librustc/front/show_span.rs b/src/librustc/front/show_span.rs
index a5bc8e0243b..2c076aac095 100644
--- a/src/librustc/front/show_span.rs
+++ b/src/librustc/front/show_span.rs
@@ -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;