]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #9636 : alexcrichton/rust/rustdoc, r=huonw
authorbors <bors@rust-lang.org>
Tue, 1 Oct 2013 11:31:31 +0000 (04:31 -0700)
committerbors <bors@rust-lang.org>
Tue, 1 Oct 2013 11:31:31 +0000 (04:31 -0700)
Commits have all the juicy details.

Import thing to note in this pull request is that `rustdoc html crate.rs` becomes `rustdoc crate.rs`

1  2 
src/librustdoc/html/render.rs
src/librustdoc/rustdoc.rs

Simple merge
index 57aa62d313cc73442a6ab04c23518eb65bab4ab4,61a27e49f6663dbc1778f22717e119ae973f9732..a7eac9f268d3c70003601b3b09f00453b17a1e33
@@@ -234,11 -302,11 +302,11 @@@ fn json_output(crate: clean::Crate, res
      // FIXME #8335: yuck, Rust -> str -> JSON round trip! No way to .encode
      // straight to the Rust JSON representation.
      let crate_json_str = do std::io::with_str_writer |w| {
-         crate.encode(&mut extra::json::Encoder(w));
+         crate.encode(&mut json::Encoder(w));
      };
-     let crate_json = match extra::json::from_str(crate_json_str) {
+     let crate_json = match json::from_str(crate_json_str) {
          Ok(j) => j,
 -        Err(_) => fail!("Rust generated JSON is invalid??")
 +        Err(_) => fail2!("Rust generated JSON is invalid??")
      };
  
      json.insert(~"crate", crate_json);