librustc: Make unqualified identifier searches terminate at the nearest module scope. r=tjc
This commit is contained in:
parent
fd872284bb
commit
a8d37af247
250 changed files with 1342 additions and 453 deletions
|
@ -20,6 +20,7 @@ The `ToBytes` and `IterBytes` traits
|
|||
|
||||
use io;
|
||||
use io::Writer;
|
||||
use option::{None, Option, Some};
|
||||
use str;
|
||||
|
||||
pub type Cb = fn(buf: &[const u8]) -> bool;
|
||||
|
@ -181,6 +182,8 @@ pub mod x32 {
|
|||
|
||||
#[cfg(target_word_size = "64")]
|
||||
pub mod x64 {
|
||||
use to_bytes::{Cb, IterBytes};
|
||||
|
||||
pub impl uint: IterBytes {
|
||||
#[inline(always)]
|
||||
pure fn iter_bytes(&self, lsb0: bool, f: Cb) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue