Skip to content

Commit 214a6c6

Browse files
committed
Fix compile errors and such
1 parent 0cf7d5d commit 214a6c6

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

src/librustc_resolve/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ impl<'a> Resolver<'a> {
13581358
span: span, name: ident.name, lexical: false, b1: b1, b2: b2, legacy: legacy,
13591359
});
13601360
if legacy {
1361-
self.record_use(name, ns, b1, span);
1361+
self.record_use(ident, ns, b1, span);
13621362
}
13631363
!legacy
13641364
}

src/libstd/os/macos/raw.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use os::raw::c_long;
3333
pub type pthread_t = usize;
3434

3535
#[repr(C)]
36-
#[derive(Clone, Debug)]
36+
#[derive(Clone)]
3737
#[stable(feature = "raw_ext", since = "1.1.0")]
3838
pub struct stat {
3939
#[stable(feature = "raw_ext", since = "1.1.0")]

src/libstd/os/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! OS-specific functionality.
1212
1313
#![stable(feature = "os", since = "1.0.0")]
14-
#![allow(missing_docs, bad_style)]
14+
#![allow(missing_docs, bad_style, missing_debug_implementations)]
1515

1616
#[cfg(any(target_os = "redox", unix))]
1717
#[stable(feature = "rust1", since = "1.0.0")]

src/libstd/sys/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
//! inter-dependencies within `std` that will be a challenging goal to
3131
//! achieve.
3232
33+
#![allow(missing_debug_implementations)]
34+
3335
pub use self::imp::*;
3436

3537
#[cfg(target_os = "redox")]

src/libstd/sys/unix/ext/net.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ impl SocketAddr {
141141
///
142142
/// A named address:
143143
///
144-
/// ```
144+
/// ```no_run
145145
/// use std::os::unix::net::UnixListener;
146146
///
147147
/// let socket = UnixListener::bind("/tmp/sock").unwrap();
@@ -173,7 +173,7 @@ impl SocketAddr {
173173
///
174174
/// With a pathname:
175175
///
176-
/// ```
176+
/// ```no_run
177177
/// use std::os::unix::net::UnixListener;
178178
/// use std::path::Path;
179179
///
@@ -186,7 +186,6 @@ impl SocketAddr {
186186
///
187187
/// ```
188188
/// use std::os::unix::net::UnixDatagram;
189-
/// use std::path::Path;
190189
///
191190
/// let socket = UnixDatagram::unbound().unwrap();
192191
/// let addr = socket.local_addr().expect("Couldn't get local address");
@@ -624,7 +623,7 @@ impl UnixListener {
624623
///
625624
/// # Examples
626625
///
627-
/// ```
626+
/// ```no_run
628627
/// use std::os::unix::net::UnixListener;
629628
///
630629
/// let listener = match UnixListener::bind("/path/to/the/socket") {

src/libstd/sys_common/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
//! `std::sys` from the standard library.
2424
2525
#![allow(missing_docs)]
26+
#![allow(missing_debug_implementations)]
2627

2728
use sync::Once;
2829
use sys;

0 commit comments

Comments
 (0)