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 11:12:16 -08:00
parent fd872284bb
commit a8d37af247
250 changed files with 1342 additions and 453 deletions

View file

@ -20,8 +20,10 @@ Cross-platform file path handling
use cmp::Eq;
use libc;
use option::{None, Option, Some};
use ptr;
use str;
use to_str::ToStr;
#[deriving_eq]
pub struct WindowsPath {
@ -751,6 +753,8 @@ pub pure fn normalize(components: &[~str]) -> ~[~str] {
// Various windows helpers, and tests for the impl.
pub mod windows {
use libc;
use option::{None, Option, Some};
use to_str::ToStr;
#[inline(always)]
pub pure fn is_sep(u: u8) -> bool {
@ -793,7 +797,8 @@ pub mod windows {
#[cfg(test)]
mod tests {
use path::windows;
use option::{None, Some};
use path::{PosixPath, WindowsPath, windows};
use str;
#[test]