Skip to content

Commit 99cc1be

Browse files
committed
---
yaml --- r: 160507 b: refs/heads/auto c: 4dd1724 h: refs/heads/master i: 160505: b28dab1 160503: c86924e v: v3
1 parent dc3ca16 commit 99cc1be

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: f6607a20c4abbd03a806c1320d059e0911dd0cdb
13+
refs/heads/auto: 4dd17245769082d07c3f98100e5a7cf922813ec9
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libcore/char.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ pub const MAX: char = '\U0010ffff';
6868

6969
/// Converts from `u32` to a `char`
7070
#[inline]
71+
#[unstable = "pending decisions about costructors for primitives"]
7172
pub fn from_u32(i: u32) -> Option<char> {
7273
// catch out-of-bounds and surrogates
7374
if (i > MAX as u32) || (i >= 0xD800 && i <= 0xDFFF) {
@@ -146,6 +147,7 @@ pub fn to_digit(c: char, radix: uint) -> Option<uint> {
146147
/// Panics if given an `radix` > 36.
147148
///
148149
#[inline]
150+
#[unstable = "pending decisions about costructors for primitives"]
149151
pub fn from_digit(num: uint, radix: uint) -> Option<char> {
150152
if radix > 36 {
151153
panic!("from_digit: radix is to high (maximum 36)");
@@ -286,9 +288,11 @@ pub trait Char {
286288
/// # Panics
287289
///
288290
/// Panics if given a radix > 36.
291+
#[deprecated = "use the char::from_digit free function"]
289292
fn from_digit(num: uint, radix: uint) -> Option<Self>;
290293

291294
/// Converts from `u32` to a `char`
295+
#[deprecated = "use the char::from_u32 free function"]
292296
fn from_u32(i: u32) -> Option<char>;
293297

294298
/// Returns the hexadecimal Unicode escape of a character.
@@ -351,9 +355,11 @@ impl Char for char {
351355

352356
fn to_digit(&self, radix: uint) -> Option<uint> { to_digit(*self, radix) }
353357

358+
#[deprecated = "use the char::from_digit free function"]
354359
fn from_digit(num: uint, radix: uint) -> Option<char> { from_digit(num, radix) }
355360

356361
#[inline]
362+
#[deprecated = "use the char::from_u32 free function"]
357363
fn from_u32(i: u32) -> Option<char> { from_u32(i) }
358364

359365
fn escape_unicode(&self, f: |char|) { escape_unicode(*self, f) }

0 commit comments

Comments
 (0)