Add companion-module core.rs that exports log levels and option/some/none everywhere.
This commit is contained in:
parent
8bde865d09
commit
a24c19e867
7 changed files with 19 additions and 17 deletions
|
|
@ -1,5 +1,3 @@
|
|||
use std;
|
||||
import option::*;
|
||||
|
||||
fn main() {
|
||||
let i: int =
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
use std;
|
||||
import option::*;
|
||||
|
||||
pure fn p(x: int) -> bool { true }
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
|
||||
use std;
|
||||
import option::*;
|
||||
|
||||
fn baz() -> ! { fail; }
|
||||
|
||||
fn foo() {
|
||||
|
|
|
|||
|
|
@ -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|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue