From 2b0a15494ae24f7f131c8cbe14ca00638b1ae5f9 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 4 Aug 2014 14:15:47 -0700 Subject: [PATCH] rustdoc: Put field instantiation in declaration order. cc #12466 --- src/librustdoc/html/render.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index 47e9147061283..d35d074daeadb 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -745,9 +745,9 @@ impl<'a> SourceCollector<'a> { let desc = format!("Source to the Rust file `{}`.", filename); let page = layout::Page { title: title.as_slice(), - description: desc.as_slice(), ty: "source", root_path: root_path.as_slice(), + description: desc.as_slice(), }; try!(layout::render(&mut w as &mut Writer, &self.cx.layout, &page, &(""), &Source(contents))); @@ -1078,9 +1078,9 @@ impl Context { this.layout.krate); let page = layout::Page { ty: "mod", - description: desc.as_slice(), root_path: this.root_path.as_slice(), title: title.as_slice(), + description: desc.as_slice(), }; let html_dst = &this.dst.join("stability.html"); let mut html_out = BufferedWriter::new(try!(File::create(html_dst))); @@ -1139,9 +1139,9 @@ impl Context { }; let page = layout::Page { ty: tyname, - description: desc.as_slice(), root_path: cx.root_path.as_slice(), title: title.as_slice(), + description: desc.as_slice(), }; markdown::reset_headers();