From 8f7fd7540ce8bbaba0e7eec7d8894d7527b8e6c9 Mon Sep 17 00:00:00 2001 From: Sven Nilsen Date: Sat, 21 Jun 2014 20:56:29 +0200 Subject: [PATCH] Upgrade to latest Rust --- src/codegen/branchify.rs | 2 +- src/sdl2/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/codegen/branchify.rs b/src/codegen/branchify.rs index f8b50ce4..0c9df2c0 100644 --- a/src/codegen/branchify.rs +++ b/src/codegen/branchify.rs @@ -98,7 +98,7 @@ pub fn generate_branchified_method( let s = format!($($x)*); let result = writer.write(indentstr.as_bytes()) .and(writer.write(s.as_bytes())) - .and(writer.write(bytes!("\n"))); + .and(writer.write(b"\n")); match result { Ok(_) => {}, diff --git a/src/sdl2/lib.rs b/src/sdl2/lib.rs index 6db5a580..326f2d4f 100644 --- a/src/sdl2/lib.rs +++ b/src/sdl2/lib.rs @@ -6,6 +6,7 @@ #![feature(globs)] #![feature(macro_rules)] +#![feature(unsafe_destructor)] extern crate libc; extern crate collections;