Fix compile errors and such
This commit is contained in:
parent
0cf7d5dcae
commit
214a6c6166
@ -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
|
||||
}
|
||||
|
@ -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")]
|
||||
|
@ -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")]
|
||||
|
@ -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")]
|
||||
|
@ -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") {
|
||||
|
@ -23,6 +23,7 @@
|
||||
//! `std::sys` from the standard library.
|
||||
|
||||
#![allow(missing_docs)]
|
||||
#![allow(missing_debug_implementations)]
|
||||
|
||||
use sync::Once;
|
||||
use sys;
|
||||
|
Loading…
x
Reference in New Issue
Block a user