Skip to content

Instantly share code, notes, and snippets.

#![feature(macro_rules)]
extern crate civet;
use std::io::{IoResult,ChanReader,ChanWriter,Reader};
use std::collections::HashMap;
use civet::{Config,Server,Request,Response};
macro_rules! http_write(
extern crate debug;
extern crate native;
use std::rt::task::{Task, Execute};
use std::any::Any;
use std::rt::task::BlockedTask;
use std::task::TaskOpts;
use std::rt::rtio::LocalIo;
use native::io::IoFactory;
@wycats
wycats / output
Last active August 29, 2015 14:02
✗ ./test RUST_BACKTRACE=1
Args { fail: false, first: hello, second: [world, and, stuff], reference: Some(Inner { text: Heyo }) }
There are not many persons who know what wonders are opened to them in the
stories and visions of their youth; for when as children we listen and dream,
we think but half-formed thoughts, and when as men we try to remember, we are
dulled and prosaic with the poison of life. But some of us awake in the night
with strange phantasms of enchanted hills and gardens, of fountains that sing
in the sun, of golden cliffs overhanging murmuring seas, of plains that stretch
✗ RUST_BACKTRACE=1 ./test
failed at 'called `Option::get_mut_ref()` on a `None` value', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libcore/option.rs:469
stack backtrace:
1: 0x47bd80 - rt::backtrace::imp::write::h6bc482a91e850a6bWrx::v0.11.0.pre
2: 0x45f830 - rt::unwind::begin_unwind_inner::h0c987df59e660255X1w::v0.11.0.pre
3: 0x45eb60 - rt::unwind::begin_unwind_fmt::hab4ea20b6306f10470w::v0.11.0.pre
4: 0x47bc90 - rust_begin_unwind
5: 0x4bfc80 - failure::begin_unwind::h274c645ee0d8103btZv::v0.11.0.pre
6: 0x472030 - rt::rtio::LocalIo<'a>::borrow::h842cb4f2d84fdb8b5bv::v0.11.0.pre
7: 0x4723d0 - io::stdio::src::h11364002286917177819::v0.11.0.pre
extern crate debug;
use std::mem::transmute;
use std::raw::Closure;
use std::rt::task::Task;
use std::rt::local::Local;
use std::any::{Any, AnyRefExt};
struct RawUnwinder {
unwinding: bool,
extern crate term;
use term::Terminal;
enum AdequateTerminal<T> {
Color(Box<Terminal<T>>)
}
struct Shell<T> {
terminal: AdequateTerminal<T>
}
impl <T: Writer + Send> Shell<T> {
extern crate term;
use term::Terminal;
enum AdequateTerminal<T> {
Color(Box<Terminal<T>>)
}
struct Shell<T> {
terminal: AdequateTerminal<T>
}
impl <T: Writer + Send> Shell<T> {
extern crate term;
use term::Terminal;
enum AdequateTerminal<T> {
Color(Box<Terminal<T>>)
}
struct Shell<T> {
terminal: AdequateTerminal<T>
}
impl <T: Writer + Send> Shell<T> {
extern crate term;
use term::Terminal;
enum AdequateTerminal<T> {
Color(Box<Terminal<T>>)
}
struct Shell<T> {
terminal: AdequateTerminal<T>
}
impl <T: Writer + Send> Shell<T> {
extern crate term;
use term::Terminal;
struct ShellConfig {
color: int,
verbose: int,
tty: bool,
}
enum AdequateTerminal<T> {
Color(Box<Terminal<T>>)