diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-12-20 12:18:55 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-12-20 14:09:50 -0800 |
| commit | 214a6c61666202ab073fceaeab13885027c8c3f2 (patch) | |
| tree | d8e0dfb4fc85d0b7e5d1ce431f46d5494845d163 | |
| parent | 0cf7d5dcaeec4dc5b8c3715ad7c062ec447842bf (diff) | |
| download | rust-214a6c61666202ab073fceaeab13885027c8c3f2.tar.gz rust-214a6c61666202ab073fceaeab13885027c8c3f2.zip | |
Fix compile errors and such
| -rw-r--r-- | src/librustc_resolve/lib.rs | 2 | ||||
| -rw-r--r-- | src/libstd/os/macos/raw.rs | 2 | ||||
| -rw-r--r-- | src/libstd/os/mod.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/mod.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/unix/ext/net.rs | 7 | ||||
| -rw-r--r-- | src/libstd/sys_common/mod.rs | 1 |
6 files changed, 9 insertions, 7 deletions
diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs index 18d7499e751..f73227681c5 100644 --- a/src/librustc_resolve/lib.rs +++ b/src/librustc_resolve/lib.rs @@ -1358,7 +1358,7 @@ impl<'a> Resolver<'a> { span: span, name: ident.name, lexical: false, b1: b1, b2: b2, legacy: legacy, }); if legacy { - self.record_use(name, ns, b1, span); + self.record_use(ident, ns, b1, span); } !legacy } diff --git a/src/libstd/os/macos/raw.rs b/src/libstd/os/macos/raw.rs index 0b96295f9e6..8f9b29462c4 100644 --- a/src/libstd/os/macos/raw.rs +++ b/src/libstd/os/macos/raw.rs @@ -33,7 +33,7 @@ use os::raw::c_long; pub type pthread_t = usize; #[repr(C)] -#[derive(Clone, Debug)] +#[derive(Clone)] #[stable(feature = "raw_ext", since = "1.1.0")] pub struct stat { #[stable(feature = "raw_ext", since = "1.1.0")] diff --git a/src/libstd/os/mod.rs b/src/libstd/os/mod.rs index 58f1604de1c..e45af867055 100644 --- a/src/libstd/os/mod.rs +++ b/src/libstd/os/mod.rs @@ -11,7 +11,7 @@ //! OS-specific functionality. #![stable(feature = "os", since = "1.0.0")] -#![allow(missing_docs, bad_style)] +#![allow(missing_docs, bad_style, missing_debug_implementations)] #[cfg(any(target_os = "redox", unix))] #[stable(feature = "rust1", since = "1.0.0")] diff --git a/src/libstd/sys/mod.rs b/src/libstd/sys/mod.rs index e4b0d980c92..14da376efa9 100644 --- a/src/libstd/sys/mod.rs +++ b/src/libstd/sys/mod.rs @@ -30,6 +30,8 @@ //! inter-dependencies within `std` that will be a challenging goal to //! achieve. +#![allow(missing_debug_implementations)] + pub use self::imp::*; #[cfg(target_os = "redox")] diff --git a/src/libstd/sys/unix/ext/net.rs b/src/libstd/sys/unix/ext/net.rs index e822488c018..1ba4a104e51 100644 --- a/src/libstd/sys/unix/ext/net.rs +++ b/src/libstd/sys/unix/ext/net.rs @@ -141,7 +141,7 @@ impl SocketAddr { /// /// A named address: /// - /// ``` + /// ```no_run /// use std::os::unix::net::UnixListener; /// /// let socket = UnixListener::bind("/tmp/sock").unwrap(); @@ -173,7 +173,7 @@ impl SocketAddr { /// /// With a pathname: /// - /// ``` + /// ```no_run /// use std::os::unix::net::UnixListener; /// use std::path::Path; /// @@ -186,7 +186,6 @@ impl SocketAddr { /// /// ``` /// use std::os::unix::net::UnixDatagram; - /// use std::path::Path; /// /// let socket = UnixDatagram::unbound().unwrap(); /// let addr = socket.local_addr().expect("Couldn't get local address"); @@ -624,7 +623,7 @@ impl UnixListener { /// /// # Examples /// - /// ``` + /// ```no_run /// use std::os::unix::net::UnixListener; /// /// let listener = match UnixListener::bind("/path/to/the/socket") { diff --git a/src/libstd/sys_common/mod.rs b/src/libstd/sys_common/mod.rs index 5c07e36508c..634d6258885 100644 --- a/src/libstd/sys_common/mod.rs +++ b/src/libstd/sys_common/mod.rs @@ -23,6 +23,7 @@ //! `std::sys` from the standard library. #![allow(missing_docs)] +#![allow(missing_debug_implementations)] use sync::Once; use sys; |
