Skip to content

Commit 2890b58

Browse files
committed
Merge pull request #63 from pnkfelix/misc-updates-for-newer-rustc
Misc updates for newer rustc
2 parents f2651e7 + 0e9e5a5 commit 2890b58

File tree

10 files changed

+15
-17
lines changed

10 files changed

+15
-17
lines changed

src/codegen/branchify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[macro_escape];
1+
#![macro_escape]
22

33
use std::io::BufferedWriter;
44
use std::io::{File, Writer};

src/codegen/keycode.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use std::io::{IoResult,Writer};
2-
use std::vec::Vec;
32
use super::get_writer;
43

54
struct Key {

src/codegen/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#[feature(macro_rules)];
2-
#[crate_id = "codegen#0.1"];
1+
#![feature(macro_rules)]
2+
#![crate_id = "codegen#0.1"]
33

44
use std::os;
55
use std::io::BufferedWriter;

src/codegen/scancode.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use std::io::{IoResult,Writer};
2-
use std::vec::Vec;
32
use super::get_writer;
43

54
struct ScanCode {

src/sdl2/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#[crate_id="sdl2#0.0.1"];
2-
#[crate_type = "lib"];
1+
#![crate_id="sdl2#0.0.1"]
2+
#![crate_type = "lib"]
33

4-
#[desc = "SDL2 bindings"];
5-
#[license = "MIT"];
4+
#![desc = "SDL2 bindings"]
5+
#![license = "MIT"]
66

7-
#[feature(globs)];
7+
#![feature(globs)]
88

99
extern crate collections;
1010

src/sdl2/mouse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub enum SystemCursor {
7171
HandCursor = ll::SDL_SYSTEM_CURSOR_HAND,
7272
}
7373

74-
#[deriving(Eq)]
74+
#[deriving(Eq)] #[allow(raw_pointer_deriving)]
7575
pub struct Cursor {
7676
raw: *ll::SDL_Cursor,
7777
owned: bool

src/sdl2/pixels.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub mod ll {
8787
pub fn SDL_MapRGBA(format: *SDL_PixelFormat, r: uint8_t, g: uint8_t, b: uint8_t, a: uint8_t) -> uint32_t;
8888
}
8989
}
90-
#[deriving(Eq)]
90+
#[deriving(Eq)] #[allow(raw_pointer_deriving)]
9191
pub struct Palette {
9292
raw: *ll::SDL_Palette
9393
}
@@ -130,7 +130,7 @@ impl rand::Rand for Color {
130130
}
131131
}
132132

133-
#[deriving(Eq)]
133+
#[deriving(Eq)] #[allow(raw_pointer_deriving)]
134134
pub struct PixelFormat {
135135
raw: *ll::SDL_PixelFormat
136136
}

src/sdl2/render.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ enum RendererParent {
214214
Surface(~surface::Surface),
215215
}
216216

217-
#[deriving(Eq)]
217+
#[deriving(Eq)] #[allow(raw_pointer_deriving)]
218218
pub struct Renderer {
219219
raw: *ll::SDL_Renderer,
220220
priv parent: RendererParent,
@@ -522,7 +522,7 @@ pub struct TextureQuery {
522522
height: int
523523
}
524524

525-
#[deriving(Eq)]
525+
#[deriving(Eq)] #[allow(raw_pointer_deriving)]
526526
pub struct Texture {
527527
raw: *ll::SDL_Texture,
528528
owned: bool

src/sdl2/surface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pub enum SurfaceFlag {
8383
DontFree = ll::SDL_DONTFREE as int
8484
}
8585

86-
#[deriving(Eq)]
86+
#[deriving(Eq)] #[allow(raw_pointer_deriving)]
8787
pub struct Surface {
8888
raw: *ll::SDL_Surface,
8989
owned: bool

src/sdl2/video.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ impl Drop for GLContext {
337337
}
338338

339339

340-
#[deriving(Eq)]
340+
#[deriving(Eq)] #[allow(raw_pointer_deriving)]
341341
pub struct Window {
342342
raw: *ll::SDL_Window,
343343
owned: bool

0 commit comments

Comments
 (0)