Skip to content

Instantly share code, notes, and snippets.

#![license = "MIT"]
extern crate error;
use std::sync::Arc;
use error::Error;
pub type IronResult<T> = Result<T, Box<Error>>;
pub struct Request;
#![license = "MIT"]
extern crate error;
use std::sync::Arc;
use error::Error;
pub type IronResult<T> = Result<T, Box<Error>>;
pub struct Request;
@reem
reem / lib.rs
Created September 3, 2014 16:45
#![license = "MIT"]
#![deny(missing_doc)]
#![deny(warnings)]
#![feature(unboxed_closures, overloaded_calls)]
//! Exposes `replace_map`, for replacing values at mutable memory locations.
use std::ptr;
@reem
reem / lib.rs
Created September 11, 2014 22:02
#![license = "MIT"]
//#![deny(missing_doc)]
#![deny(warnings)]
//! Crate comment goes here
extern crate typemap;
local_data_key!(LocalEventQueue, Arc<EventQueue>)
@reem
reem / lib.rs
Created September 12, 2014 01:14
#![feature(macro_rules)]
#![license = "MIT"]
//#![deny(missing_doc)]
#![deny(warnings)]
//! Crate comment goes here
extern crate typemap;
extern crate "unsafe-any" as uany;
@reem
reem / lib.rs
Created September 12, 2014 04:01
#![license = "MIT"]
#![deny(missing_doc)]
#![deny(warnings)]
//! Zippers for walking and editing data structures.
pub trait Zipper<Data, Direction> {
/// Moves the Zipper to a new location. Should return false if the move
/// is impossible.
fn go(&mut self, Direction) -> bool;
use std::str::{mod, SendStr, Slice, Owned};
use std::collections::hashmap::{HashMap, Entries, Occupied, Vacant};
use std::cell::UnsafeCell;
use std::sync;
use std::mem;
use std::io;
pub trait Marker {
@reem
reem / fail
Created October 7, 2014 11:44
error: linking with `cc` failed: exit code: 1
note: cc '-m64' '-L' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib' '-o' '/Users/Jonathan/hackreactor/iron/target/404' '/Users/Jonathan/hackreactor/iron/target/404.o' '-Wl,-force_load,/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a' '-nodefaultlibs' '-fno-lto' '-Wl,-dead_strip' '/Users/Jonathan/hackreactor/iron/target/libiron-15fdf3e4240d3ccd.rlib' '/Users/Jonathan/hackreactor/iron/target/deps/libplugin-f845a6ab531c9346.rlib' '/Users/Jonathan/hackreactor/iron/target/deps/libreplace-map-d1de898a4eb569a5.rlib' '/Users/Jonathan/hackreactor/iron/target/deps/libphantom-da5bb593d3eb3a9e.rlib' '/Users/Jonathan/hackreactor/iron/target/deps/libtypemap-3fdac74be380d9e4.rlib' '-L' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib' '-lnative-4e7c5e5c' '/Users/Jonathan/hackreactor/iron/target/deps/libcontent_type-b3fc4f01bc3dcbfb.rlib' '-L' '/Users/Jonathan/hackreactor/iron/target/deps' '-lgenerator-e170cac01c08bdc6' '/Users/Jonathan/hackreactor/iron/target/deps/
use std::str::{mod, SendStr, Slice, Owned};
use std::collections::hashmap::{HashMap, Entries, Occupied, Vacant};
use std::cell::UnsafeCell;
use std::sync;
use std::mem;
use std::io;
pub trait Marker {
@reem
reem / gist
Created October 11, 2014 07:46
task 'rustc' failed at 'no entry found for key', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libstd/collections/hashmap/map.rs:1093
stack backtrace:
1: 0x10dbc8d69 - rt::backtrace::imp::write::hd2d3b636c19898a59Kq
2: 0x10dbcc081 - failure::on_fail::h81686b612f31dab9N1q
3: 0x10de41e55 - unwind::begin_unwind_inner::h4e3cb6f9f8acbab0Lud
4: 0x10a7b3f4e - unwind::begin_unwind::h16369091900694436626
5: 0x10acd13c0 - middle::ty::type_contents::tc_ty::h4c2d0a81e4ff02285iF
6: 0x10acd0afc - middle::ty::type_contents::tc_ty::h4c2d0a81e4ff02285iF
7: 0x10aa586d6 - middle::ty::type_contents::h815b89d15b77d6d60hF