Add companion-module core.rs that exports log levels and option/some/none everywhere.

This commit is contained in:
Graydon Hoare 2011-12-20 12:29:59 -08:00
parent 8bde865d09
commit a24c19e867
7 changed files with 19 additions and 17 deletions

View file

@ -1,5 +1,3 @@
use std;
import option::*;
fn main() {
let i: int =

View file

@ -1,5 +1,4 @@
use std;
import option::*;
pure fn p(x: int) -> bool { true }

View file

@ -1,7 +1,4 @@
use std;
import option::*;
fn baz() -> ! { fail; }
fn foo() {

View file

@ -1,13 +1,9 @@
// Tests that trans_path checks whether a
// pattern-bound var is an upvar (when translating
// the for-each body)
use std;
import option::*;
import uint;
fn foo(src: uint) {
alt some(src) {
some(src_id) {
uint::range(0u, 10u) {|i|