Skip to content

Commit e461664

Browse files
committed
Add FIXME comments referencing rust-lang#6894 and rust-lang#8888
1 parent 14ec6db commit e461664

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/libstd/num/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ pub trait Primitive: Clone
344344
+ Div<Self,Self>
345345
+ Rem<Self,Self> {
346346
// FIXME (#5527): These should be associated constants
347-
// FIXME (#8888): Removing `unused_self` requires #8888 to be fixed.
347+
// FIXME (#8888): `ForType` should be a language feature. See also: #6894
348348
fn bits(_: ForType<Self>) -> uint;
349349
fn bytes(_: ForType<Self>) -> uint;
350350
fn is_signed(_: ForType<Self>) -> bool;
@@ -388,7 +388,7 @@ pub trait Float: Real
388388
fn is_normal(&self) -> bool;
389389
fn classify(&self) -> FPCategory;
390390

391-
// FIXME (#8888): Removing `unused_self` requires #8888 to be fixed.
391+
// FIXME (#8888): `ForType` should be a language feature. See also: #6894
392392
fn mantissa_digits(_: ForType<Self>) -> uint;
393393
fn digits(_: ForType<Self>) -> uint;
394394
fn epsilon() -> Self;

src/libstd/util.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ impl Void {
9696
///
9797
/// assert_eq!(A::a(ForType::<int>), 6);
9898
/// ~~~
99+
// FIXME (#8888): This should really be part of the language. See also: #6894
99100
pub struct ForType<T>;
100101

101102
#[cfg(test)]
@@ -176,7 +177,7 @@ mod tests {
176177
}
177178

178179
impl A for int {
179-
fn a(_: ForType<int>) -> uint { 6 }
180+
fn a(_: ForType<int33>) -> uint { 6 }
180181
}
181182

182183
assert_eq!(A::a(ForType::<int>), 6);

0 commit comments

Comments
 (0)