about summary refs log tree commit diff
path: root/src/librustdoc/markdown_index_pass.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2013-01-08 14:00:45 -0800
committerNiko Matsakis <niko@alum.mit.edu>2013-01-09 14:59:07 -0800
commit2b92962aa29b0116015f99c1666ecf6288303c65 (patch)
treeb4d84abe1587cddd4db8fcece762f43a89f4bec7 /src/librustdoc/markdown_index_pass.rs
parent11a307294a83c2651405137763c9d620ab3fc7e7 (diff)
downloadrust-2b92962aa29b0116015f99c1666ecf6288303c65.tar.gz
rust-2b92962aa29b0116015f99c1666ecf6288303c65.zip
A collection of refactorings that I found it hard/tiresome to divide:
- Make `extern fn()` assignable to any closure type, rather than
  a subtype.
- Remove unused int_ty_set and float_ty_set
- Refactor variable unification and make it more DRY
- Do fn sub/lub/glb on the level of fn_sig
- Rename infer::to_str::ToStr to infer::to_str::InferStr
- Capitalize names of various types
- Correct hashing of FnMeta
- Convert various records-of-fns into structs-of-fns.  This is both
  eliminating use of deprecated features and more forwards compatible
  with fn reform.

r=pcwalton
Diffstat (limited to 'src/librustdoc/markdown_index_pass.rs')
-rw-r--r--src/librustdoc/markdown_index_pass.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/markdown_index_pass.rs b/src/librustdoc/markdown_index_pass.rs
index 881352c9c77..1f4e1be62fc 100644
--- a/src/librustdoc/markdown_index_pass.rs
+++ b/src/librustdoc/markdown_index_pass.rs
@@ -26,7 +26,7 @@ use core::str;
 use std::par;
 
 pub fn mk_pass(+config: config::Config) -> Pass {
-    {
+    Pass {
         name: ~"markdown_index",
         f: fn~(srv: astsrv::Srv, +doc: doc::Doc) -> doc::Doc {
             run(srv, doc, config)