librustc: Make unqualified identifier searches terminate at the nearest module scope. r=tjc
This commit is contained in:
parent
3a5b641720
commit
2db3abddcd
251 changed files with 1353 additions and 454 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue