diff options
| author | bors <bors@rust-lang.org> | 2013-09-24 15:45:57 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-09-24 15:45:57 -0700 |
| commit | a7d68adbdd75300a4a10b2dcc59e1048f613db48 (patch) | |
| tree | 848fdb582c80f1e1fa4d62373bb139fa3799b722 /src/libstd | |
| parent | e3624ed968905b789b35c2301eb3c8057c05b3b3 (diff) | |
| parent | 4b266f1c0df9732bbdea44b0df3d459d4cf2756d (diff) | |
| download | rust-a7d68adbdd75300a4a10b2dcc59e1048f613db48.tar.gz rust-a7d68adbdd75300a4a10b2dcc59e1048f613db48.zip | |
auto merge of #9336 : alexcrichton/rust/issue-7981, r=catamorphism
Progress on #7981 This doesn't completely close the issue because `struct A;` is still allowed, and it's a much larger change to disallow that. I'm also not entirely sure that we want to disallow that. Regardless, punting that discussion to the issue instead.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/rt/io/mod.rs | 2 | ||||
| -rw-r--r-- | src/libstd/rt/uv/file.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt/io/mod.rs b/src/libstd/rt/io/mod.rs index 6b405b0948a..70fcf442f3f 100644 --- a/src/libstd/rt/io/mod.rs +++ b/src/libstd/rt/io/mod.rs @@ -472,7 +472,7 @@ pub trait Writer { pub trait Stream: Reader + Writer { } -impl<T: Reader + Writer> Stream for T; +impl<T: Reader + Writer> Stream for T {} pub enum SeekStyle { /// Seek from the beginning of the stream diff --git a/src/libstd/rt/uv/file.rs b/src/libstd/rt/uv/file.rs index ada558036cf..54cb40c9873 100644 --- a/src/libstd/rt/uv/file.rs +++ b/src/libstd/rt/uv/file.rs @@ -22,7 +22,7 @@ use libc::{c_int}; use option::{None, Some, Option}; pub struct FsRequest(*uvll::uv_fs_t); -impl Request for FsRequest; +impl Request for FsRequest {} pub struct RequestData { complete_cb: Option<FsCallback> |
