Skip to content

Commit 3613b0b

Browse files
committed
Move the core::char module to its own directory
1 parent b2027ef commit 3613b0b

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/libcore/char.rs renamed to src/libcore/char/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
#![allow(non_snake_case)]
1616
#![stable(feature = "core_char", since = "1.2.0")]
1717

18-
use char_private::is_printable;
18+
mod printable;
19+
20+
use self::printable::is_printable;
1921
use convert::TryFrom;
2022
use fmt::{self, Write};
2123
use slice;

src/etc/char_private.py renamed to src/libcore/char/printable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def main():
187187
// option. This file may not be copied, modified, or distributed
188188
// except according to those terms.
189189
190-
// NOTE: The following code was generated by "src/etc/char_private.py",
190+
// NOTE: The following code was generated by "src/libcore/char/printable.py",
191191
// do not edit directly!
192192
193193
fn check(x: u16, singletonuppers: &[(u8, u8)], singletonlowers: &[u8],

src/libcore/char_private.rs renamed to src/libcore/char/printable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// NOTE: The following code was generated by "src/etc/char_private.py",
11+
// NOTE: The following code was generated by "src/libcore/char/printable.py",
1212
// do not edit directly!
1313

1414
fn check(x: u16, singletonuppers: &[(u8, u8)], singletonlowers: &[u8],

src/libcore/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ pub mod unicode;
187187
pub mod heap;
188188

189189
// note: does not need to be public
190-
mod char_private;
191190
mod iter_private;
192191
mod tuple;
193192
mod unit;

0 commit comments

Comments
 (0)