about summary refs log tree commit diff
path: root/src/rustdoc
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2012-02-02 12:37:17 +0100
committerMarijn Haverbeke <marijnh@gmail.com>2012-02-03 14:07:35 +0100
commit3bcd4fe6fa137287df34bed19eed5851f44aa703 (patch)
treeeb6acd4c1c50c6bbd7af1cf5b889bafaffac3f85 /src/rustdoc
parenta02f332602e504573977c3419ce0f239d954f5ec (diff)
downloadrust-3bcd4fe6fa137287df34bed19eed5851f44aa703.tar.gz
rust-3bcd4fe6fa137287df34bed19eed5851f44aa703.zip
Start on in-crate monomorphizing
Adds a --monomorpize flag to rustc to turn it on. You probably don't
want to use it yet, since it's broken in a whole bunch of ways, but it
successfully monomorphizes simple generic functions called from within
the crate.

Issue #1736
Diffstat (limited to 'src/rustdoc')
-rw-r--r--src/rustdoc/astsrv.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rustdoc/astsrv.rs b/src/rustdoc/astsrv.rs
index d4c5720b016..439bfd81dc7 100644
--- a/src/rustdoc/astsrv.rs
+++ b/src/rustdoc/astsrv.rs
@@ -62,6 +62,8 @@ fn build_ctxt(sess: session::session, ast: @ast::crate) -> ctxt {
     }
 }
 
+// FIXME: this whole structure should not be duplicated here. makes it
+// painful to add or remove options.
 fn build_session() -> session::session {
     let sopts: @session::options = @{
         crate_type: session::lib_crate,
@@ -84,6 +86,7 @@ fn build_session() -> session::session {
         parse_only: false,
         no_trans: false,
         no_asm_comments: false,
+        monomorphize: false,
         warn_unused_imports: false
     };
     driver::build_session(sopts, ".", diagnostic::emit)