This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time: 0.008 parsing | |
time: 0.000 recursion limit | |
time: 0.000 crate injection | |
time: 0.000 plugin loading | |
time: 0.000 plugin registration | |
time: 0.039 expansion | |
time: 0.000 maybe building test harness | |
time: 0.000 maybe creating a macro crate | |
time: 0.000 checking for inline asm in case the target doesn't support it | |
time: 0.000 complete gated feature checking |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
..bc/libc-test ❯ cargo rustc --target x86_64-apple-ios -- -C link-args=-mios-simulator-version-min=7.0 [libc/master>] | |
Compiling libc-test v0.1.0 (file:///Volumes/git/rust/libc/libc-test) | |
error: linking with `cc` failed: exit code: 1 | |
note: "cc" "-arch" "x86_64" "-Wl,-syslibroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk" "-L" "/Users/sfackler/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-ios/lib" "/Volumes/git/rust/libc/libc-test/target/x86_64-apple-ios/debug/libc_test.0.o" "-o" "/Volumes/git/rust/libc/libc-test/target/x86_64-apple-ios/debug/libc_test" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Volumes/git/rust/libc/libc-test/target/x86_64-apple-ios/debug" "-L" "/Vol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(test, big_misc, thread_sleep, std_misc)] | |
extern crate test; | |
use std::io::prelude::*; | |
use std::cmp; | |
use std::iter; | |
use std::time::Duration; | |
use std::thread; | |
use std::io::{self, ErrorKind}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![allow(unstable)] | |
use std::fmt; | |
use std::fmt::rt::Flag; | |
struct PadAdapter<'a, 'b: 'a> { | |
fmt: &'a mut fmt::Formatter<'b>, | |
on_newline: bool, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![allow(unstable)] | |
use std::fmt; | |
use std::fmt::rt::Flag; | |
struct PadAdapter<'a, 'b: 'a> { | |
fmt: &'a mut fmt::Formatter<'b>, | |
on_newline: bool, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub trait Eq { | |
fn eq(&self, other: &Self) -> bool; | |
} | |
// equality operators are wired to this trait | |
#[lang = "partial_eq"] | |
pub trait PartialEq { | |
fn eq(&self, other: &Self) -> bool; | |
fn ne(&self, other: &Self) -> bool; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[feature(macro_rules)]; | |
use spec::test; | |
#[macro_escape] | |
mod spec { | |
macro_rules! my_macro ( | |
() => (println!("hello")); | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[feature(macro_rules)]; | |
use spec::test; | |
use spec::my_macro; | |
#[feature(macro_escape)] | |
mod spec { | |
#[macro_export] | |
macro_rules! my_macro ( | |
() => (println!("hello")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::util; | |
enum List { | |
Cons(int, ~List), | |
Nil | |
} | |
impl List { | |
fn prepend(&mut self, x : int) { | |
let new = ~util::replace(self, Nil); | |
*self = Cons(x, new); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub trait ApplicationDelegate { | |
fn application_did_quit(&mut self, _timestamp: u32) {} | |
} | |
pub struct MouseMotionEventInfo; | |
pub struct MouseButtonEventInfo; | |
pub struct MouseWheelEventInfo; | |
pub trait MouseDelegate { | |
fn mouse_did_move(&mut self, _info: &MouseMotionEventInfo) {} |