This file contains hidden or 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
macro_rules! match_err { | |
(@ [($err:expr) $(($name:ident ($ty:ty) ($code:expr)))*]) => {{ | |
let e = $err; | |
'match_err: loop { | |
$( | |
let e = match e.downcast::<$ty>() { | |
Ok($name) => break 'match_err Ok($code), | |
Err(e) => e | |
}; | |
)* |
This file contains hidden or 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
$ locate crt1.o | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib/crt1.o | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib/gcrt1.o | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib/crt1.o | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib/gcrt1.o | |
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/crt1.o | |
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/gcrt1.o | |
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/crt1.o | |
/Users/alex/Applications/ArduinoGalileo.app/Contents/Resources/Java/hardware/tools/x86/i586-poky-linux-uclibc/usr/lib/Scrt1.o | |
/Users/alex/Applications/ArduinoGalileo.app/Contents/Resources/Ja |
This file contains hidden or 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(trace_macros)] trace_macros!(true); | |
/// Given N tokens, recurses N times to generate N unique identifiers | |
/// then calls you back at the given macro | |
macro_rules! idents { | |
// finished recursing, do the callback | |
(@rec [] -> $ids:tt $mac:ident!($($params:tt)*)) => { | |
$mac!($($params)* $ids) | |
}; | |
// consume one token and generate one identifier |
This file contains hidden or 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
Compiling clap v2.27.1 (file:///home/haptics/proton/nri/overrides/clap) | |
Compiling nri v0.1.0 (file:///home/haptics/proton/nri) | |
warning: use of deprecated item: No longer required to propagate values | |
--> overrides/clap/src/macros.rs:745:19 | |
| | |
745 | $($n::$v => self.0.insert($c)),+ | |
| ^^^^^^ | |
| | |
::: overrides/clap/src/app/settings.rs | |
| |
This file contains hidden or 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
//! ```cargo | |
//! [dependencies] | |
//! clap = "2" | |
//! csv = "0.15" | |
//! error-chain = "0.11" | |
//! ``` | |
#[macro_use] extern crate clap; | |
extern crate csv; | |
#[macro_use] extern crate error_chain; |
This file contains hidden or 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
2017-10-22 22:24:48 -0400 | |
make | |
/usr/local/Cellar/cmake/3.9.4_1/bin/cmake -H/tmp/llvm-20171022-18158-vti5j9/llvm-5.0.0.src -B/tmp/llvm-20171022-18158-1buld3y --check-build-system CMakeFiles/Makefile.cmake 0 | |
/usr/local/Cellar/cmake/3.9.4_1/bin/cmake -E cmake_progress_start /tmp/llvm-20171022-18158-1buld3y/CMakeFiles /tmp/llvm-20171022-18158-1buld3y/CMakeFiles/progress.marks | |
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all | |
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f lib/Demangle/CMakeFiles/LLVMDemangle.dir/build.make lib/Demangle/CMakeFiles/LLVMDemangle.dir/depend | |
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f lib/Support/CMakeFiles/LLVMSupport.dir/build.make lib/Support/CMakeFiles/LLVMSupport.dir/depend | |
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f lib/TableGen/CMakeFiles/LLVMTableGen.dir/build.make lib/TableGen/CMakeFiles/LLVMTableGen.dir/depend |
This file contains hidden or 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
test [run-pass] run-pass/single-match-else.rs ... ok | |
failures: | |
---- [run-pass] run-pass/procedural_macro.rs stdout ---- | |
error: compilation failed! | |
status: exit code: 101 | |
command: target/debug/clippy-driver tests/run-pass/procedural_macro.rs -L target/debug/test_build_base --target=x86_64-apple-darwin --error-format json -L target/debug/test_build_base/procedural_macro.stage-id.run-pass.libaux -C prefer-dynamic -o target/debug/test_build_base/procedural_macro.stage-id -L target/debug/ -L target/debug/deps -Dwarnings | |
stdout: |
This file contains hidden or 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
(gdb) bt | |
#0 0x000000010038dfca in _ZN17compiler_builtins10probestack17__rust_probestackE () at probestack.rs:55 | |
#1 0x0000000000000000 in ?? () | |
Current language: auto; currently minimal |
This file contains hidden or 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
Program received signal EXC_BAD_ACCESS, Could not access memory. | |
Reason: KERN_PROTECTION_FAILURE at address: 0x00007fff5fb80e30 | |
0x000000010038dfca in _ZN17compiler_builtins10probestack17__rust_probestackE () at probestack.rs:55 | |
55 probestack.rs: No such file or directory. | |
in probestack.rs | |
(gdb) |
This file contains hidden or 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
durska:clippy alex$ RUST_BACKTRACE=1 TESTNAME=explicit_write cargo +nightly test | |
Compiling clippy v0.0.165 (file:///Users/alex/Programming/rust/clippy) | |
Compiling rustc-serialize v0.3.24 | |
Compiling getopts v0.2.15 | |
Compiling lazy_static v0.2.9 | |
thread '<unnamed>' panicked at 'timeout in poll?', /Users/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/jobserver-0.1.7/src/lib.rs:505:29 | |
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
stack backtrace: | |
0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace | |
1: std::sys_common::backtrace::_print |