diff options
| author | Michael Sullivan <sully@msully.net> | 2012-06-04 14:31:25 -0700 |
|---|---|---|
| committer | Michael Sullivan <sully@msully.net> | 2012-06-04 16:35:32 -0700 |
| commit | 6d9dd055d15a631a9fb685eb4c9bc0e6d8ddd64a (patch) | |
| tree | 4b674c83c5b697ba9d631fdef0336bca38bef3ef /src/rustdoc/path_pass.rs | |
| parent | 4d5d43beaee01fbec830365b12d893ac3ca6b7ad (diff) | |
| download | rust-6d9dd055d15a631a9fb685eb4c9bc0e6d8ddd64a.tar.gz rust-6d9dd055d15a631a9fb685eb4c9bc0e6d8ddd64a.zip | |
Get rid of warnings from instantiating typarams with non-implicitly copyable types.
Diffstat (limited to 'src/rustdoc/path_pass.rs')
| -rw-r--r-- | src/rustdoc/path_pass.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rustdoc/path_pass.rs b/src/rustdoc/path_pass.rs index e40c19c6e02..41d97275c55 100644 --- a/src/rustdoc/path_pass.rs +++ b/src/rustdoc/path_pass.rs @@ -16,6 +16,7 @@ type ctxt = { mut path: [str] }; +#[warn(no_non_implicitly_copyable_typarams)] fn run(srv: astsrv::srv, doc: doc::doc) -> doc::doc { let ctxt = { srv: srv, @@ -37,6 +38,7 @@ fn fold_item(fold: fold::fold<ctxt>, doc: doc::itemdoc) -> doc::itemdoc { } } +#[warn(no_non_implicitly_copyable_typarams)] fn fold_mod(fold: fold::fold<ctxt>, doc: doc::moddoc) -> doc::moddoc { let is_topmod = doc.id() == ast::crate_node_id; @@ -102,4 +104,4 @@ fn should_record_native_fn_paths() { let doc = run(srv, doc); assert doc.cratemod().nmods()[0].fns[0].path() == ["a"]; } -} \ No newline at end of file +} |
