Skip to content
This repository was archived by the owner on Nov 26, 2020. It is now read-only.

Commit 37e4549

Browse files
committed
Updated to recent nightly Rust
As of rustc 1.0.0-nightly (ea6f65c5f 2015-01-06 19:47:08 +0000)
1 parent 23361c3 commit 37e4549

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

fauxgen/gio.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
#![crate_type = "lib"]
2222

23-
#![feature(associated_types)]
2423
#![feature(unboxed_closures)]
2524

2625
extern crate grust;

fauxgen/gobject.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
#![crate_type = "lib"]
2222

23-
#![feature(associated_types)]
24-
2523
extern crate grust;
2624
extern crate "grust-GLib-2_0" as glib;
2725

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
#![crate_name = "grust"]
2020
#![crate_type = "lib"]
2121

22-
#![feature(associated_types)]
23-
#![feature(macro_rules)]
24-
#![feature(unboxed_closures)]
2522
#![feature(unsafe_destructor)]
2623

2724
extern crate libc;

src/wrap.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ pub unsafe trait Wrapper {
3434
}
3535

3636
#[inline]
37-
pub unsafe fn from_raw<'a, T, Sized? U>(ptr: *const <T as Wrapper>::Raw,
38-
life_anchor: &'a U)
37+
pub unsafe fn from_raw<'a, T, U: ?Sized>(ptr: *const <T as Wrapper>::Raw,
38+
life_anchor: &'a U)
3939
-> &'a T
4040
where T: Wrapper
4141
{
4242
mem::copy_lifetime(life_anchor, &*(ptr as *const T))
4343
}
4444

4545
#[inline]
46-
pub unsafe fn from_raw_mut<'a, T, Sized? U>(ptr: *mut <T as Wrapper>::Raw,
47-
_life_anchor: &'a U)
48-
-> &'a mut T
46+
pub unsafe fn from_raw_mut<'a, T, U: ?Sized>(ptr: *mut <T as Wrapper>::Raw,
47+
_life_anchor: &'a U)
48+
-> &'a mut T
4949
where T: Wrapper
5050
{
5151
mem::transmute(&*(ptr as *mut T))

0 commit comments

Comments
 (0)