about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-02-09 19:01:37 +0000
committerbors <bors@rust-lang.org>2015-02-09 19:01:37 +0000
commit134e00be7751a9fdc820981962e4fd7ea97bfff6 (patch)
tree84ef58cd6e5aeddb28618679b562181486f664a7 /src/libsyntax
parent0ba9e1fa52627404a1e5b90f745f96a872a0c564 (diff)
parentf0e1e09dd90ee7ac9360f6c97d6b49ded8d9a7f2 (diff)
downloadrust-134e00be7751a9fdc820981962e4fd7ea97bfff6.tar.gz
rust-134e00be7751a9fdc820981962e4fd7ea97bfff6.zip
Auto merge of #21876 - nick29581:driver-args, r=huonw
This allows people to write tools which are drop-in replacements for rustc by implementing `CompilerCalls` and three lines of code, rather than having to copy+paste a bunch of args parsing code.

r? @alexcrichton 
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/diagnostics/registry.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/diagnostics/registry.rs b/src/libsyntax/diagnostics/registry.rs
index 4caef247aeb..62d48189c43 100644
--- a/src/libsyntax/diagnostics/registry.rs
+++ b/src/libsyntax/diagnostics/registry.rs
@@ -10,6 +10,7 @@
 
 use std::collections::HashMap;
 
+#[derive(Clone)]
 pub struct Registry {
     descriptions: HashMap<&'static str, &'static str>
 }