diff options
| author | Brian Anderson <banderson@mozilla.com> | 2014-04-25 01:08:02 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-05-02 23:00:58 -0700 |
| commit | a5be12ce7e88c1d28de1c98215991127d1e765f0 (patch) | |
| tree | 30f160f43a354c79a6795c638c3302d234ec0b52 /src/libsyntax/ext/deriving/primitive.rs | |
| parent | a67307e2a56b0d6bc57c3dc18f58e79744e98434 (diff) | |
| download | rust-a5be12ce7e88c1d28de1c98215991127d1e765f0.tar.gz rust-a5be12ce7e88c1d28de1c98215991127d1e765f0.zip | |
Replace most ~exprs with 'box'. #11779
Diffstat (limited to 'src/libsyntax/ext/deriving/primitive.rs')
| -rw-r--r-- | src/libsyntax/ext/deriving/primitive.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/deriving/primitive.rs b/src/libsyntax/ext/deriving/primitive.rs index 9978a2edce9..5066a395b41 100644 --- a/src/libsyntax/ext/deriving/primitive.rs +++ b/src/libsyntax/ext/deriving/primitive.rs @@ -38,7 +38,7 @@ pub fn expand_deriving_from_primitive(cx: &mut ExtCtxt, Literal(Path::new(vec!("i64")))), ret_ty: Literal(Path::new_(vec!("std", "option", "Option"), None, - vec!(~Self), + vec!(box Self), true)), // #[inline] liable to cause code-bloat attributes: attrs.clone(), @@ -55,7 +55,7 @@ pub fn expand_deriving_from_primitive(cx: &mut ExtCtxt, Literal(Path::new(vec!("u64")))), ret_ty: Literal(Path::new_(vec!("std", "option", "Option"), None, - vec!(~Self), + vec!(box Self), true)), // #[inline] liable to cause code-bloat attributes: attrs, |
