diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-07-02 12:47:32 -0700 | 
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-07-17 14:57:51 -0700 | 
| commit | 99b33f721954bc5290f9201c8f64003c294d0571 (patch) | |
| tree | 786c9bf75d54512d0a80f6975ad40516ab432c3a /src/libsyntax/parse/comments.rs | |
| parent | b4e674f6e662bc80f2e7a5a1a9834f2152f08d32 (diff) | |
| download | rust-99b33f721954bc5290f9201c8f64003c294d0571.tar.gz rust-99b33f721954bc5290f9201c8f64003c294d0571.zip | |
librustc: Remove all uses of "copy".
Diffstat (limited to 'src/libsyntax/parse/comments.rs')
| -rw-r--r-- | src/libsyntax/parse/comments.rs | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs index 01af33b13b8..83af5bade3a 100644 --- a/src/libsyntax/parse/comments.rs +++ b/src/libsyntax/parse/comments.rs @@ -22,7 +22,7 @@ use std::io; use std::str; use std::uint; -#[deriving(Eq)] +#[deriving(Clone, Eq)] pub enum cmnt_style { isolated, // No code on either side of each line of the comment trailing, // Code exists to the left of the comment @@ -30,6 +30,7 @@ pub enum cmnt_style { blank_line, // Just a manual blank line "\n\n", for layout } +#[deriving(Clone)] pub struct cmnt { style: cmnt_style, lines: ~[~str], @@ -324,6 +325,7 @@ fn consume_comment(rdr: @mut StringReader, debug!("<<< consume comment"); } +#[deriving(Clone)] pub struct lit { lit: ~str, pos: BytePos | 
