1
Fork 0

librustc: Make unqualified identifier searches terminate at the nearest module scope. r=tjc

This commit is contained in:
Patrick Walton 2013-01-08 19:37:25 -08:00
parent 3a5b641720
commit 2db3abddcd
251 changed files with 1353 additions and 454 deletions

View file

@ -27,6 +27,7 @@ use cmp::{Eq, Ord};
use libc;
use libc::size_t;
use io::WriterUtil;
use option::{None, Option, Some};
use ptr;
use str;
use to_str::ToStr;
@ -1949,6 +1950,7 @@ pub mod raw {
use libc;
use ptr;
use str::raw;
use str::{as_buf, is_utf8, len, reserve_at_least};
use vec;
/// Create a Rust string from a null-terminated *u8 buffer
@ -2129,6 +2131,9 @@ impl ~str: Trimmable {
#[cfg(notest)]
pub mod traits {
use ops::Add;
use str::append;
impl ~str : Add<&str,~str> {
#[inline(always)]
pure fn add(&self, rhs: & &self/str) -> ~str {
@ -2308,10 +2313,11 @@ impl &str: StrSlice {
#[cfg(test)]
mod tests {
use char;
use debug;
use libc::c_char;
use libc;
use ptr;
use str::raw;
use str::*;
use vec;
#[test]