Skip to content

Instantly share code, notes, and snippets.

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
..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
#![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};
#![allow(unstable)]
use std::fmt;
use std::fmt::rt::Flag;
struct PadAdapter<'a, 'b: 'a> {
fmt: &'a mut fmt::Formatter<'b>,
on_newline: bool,
}
#![allow(unstable)]
use std::fmt;
use std::fmt::rt::Flag;
struct PadAdapter<'a, 'b: 'a> {
fmt: &'a mut fmt::Formatter<'b>,
on_newline: bool,
}
@sfackler
sfackler / cmp.rs
Last active August 29, 2015 14:02 — forked from alexcrichton/cmp.rs
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;
}
#[feature(macro_rules)];
use spec::test;
#[macro_escape]
mod spec {
macro_rules! my_macro (
() => (println!("hello"));
)
#[feature(macro_rules)];
use spec::test;
use spec::my_macro;
#[feature(macro_escape)]
mod spec {
#[macro_export]
macro_rules! my_macro (
() => (println!("hello"));
@sfackler
sfackler / gist:8271819
Last active January 2, 2016 07:39 — forked from krdln/gist:8271696
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);
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) {}