Skip to content

Commit

Permalink
core: Export to_str trait from top level. Closes #3175
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Aug 13, 2012
1 parent 6e93d67 commit 28cd0ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libcore/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import vec::{immutable_copyable_vector, iter_trait_extensions, vec_concat};
import iter::{base_iter, extended_iter, copyable_iter, times, timesi};
import num::num;
import ptr::ptr;
import to_str::to_str;

export path, option, some, none, unreachable;
export extensions;
Expand All @@ -24,6 +25,7 @@ export immutable_copyable_vector, iter_trait_extensions, vec_concat;
export base_iter, copyable_iter, extended_iter;
export tuple_ops, extended_tuple_ops;
export ptr;
export to_str;

// The following exports are the core operators and kinds
// The compiler has special knowlege of these so we must not duplicate them
Expand Down
6 changes: 6 additions & 0 deletions src/test/run-pass/trait-to-str.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#[no_core];

use core;

import core::{str, int, vec};

trait to_str {
fn to_str() -> ~str;
}
Expand Down

0 comments on commit 28cd0ad

Please sign in to comment.