// Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. //! Misc low level stuff // NOTE: Remove this module after an snapshot #[allow(missing_doc)]; use any::Any; use kinds::Send; use rt::task; pub trait FailWithCause { fn fail_with(cause: Self, file: &'static str, line: uint) -> !; } impl FailWithCause for T { fn fail_with(msg: T, file: &'static str, line: uint) -> ! { task::begin_unwind(msg, file, line) } }