Skip to content

Commit a24c449

Browse files
committed
Fix nits
1 parent 27dfd33 commit a24c449

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

src/librustc/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// TODO list:
12-
// 1. Check that const fns cannot be defined in a trait or trait impl.
13-
// (This used to be enforced in the parser.) Make sure there are test cases.
14-
1511
//! The Rust compiler.
1612
//!
1713
//! # Note

src/test/compile-fail/const-fn-mismatch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// Test that we can't declare a const fn in an impl -- right now it's
12-
// just not allowed at all, though eventualy it'd make sense to allow
12+
// just not allowed at all, though eventually it'd make sense to allow
1313
// it if the trait fn is const (but right now no trait fns can be
1414
// const).
1515

src/test/compile-fail/const-fn-stability.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-
// Test that we can't call random fns in a const fn or do other bad things.
11+
// Test use of const fn without feature gate.
1212

1313
const fn foo() -> usize { 0 } //~ ERROR const fn is unstable
1414

0 commit comments

Comments
 (0)