about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorBenjamin Herr <ben@0x539.de>2016-03-24 00:35:26 +0100
committerBenjamin Herr <ben@0x539.de>2016-03-31 22:04:23 +0200
commitfc7ec6b61438f5a7fef5afd4830f009acd02d8f2 (patch)
treeee6363c077b024d01f17a54f7cbb47dbd9e329d6 /src/rustllvm/RustWrapper.cpp
parent3399d19a2c9503d991e4a315118b2d6146f66046 (diff)
downloadrust-fc7ec6b61438f5a7fef5afd4830f009acd02d8f2.tar.gz
rust-fc7ec6b61438f5a7fef5afd4830f009acd02d8f2.zip
librustc: add {span_,}bug! macros
... as single "internal compiler error" entry point.

The macros pass `file!()`, `line!()` and `format_args!(...)` on to a
cold, never-inlined function, ultimately calling `bug()` or `span_bug()`
on the `Handler` from `session::diagnostic()` via the tcx in tls or,
failing that, panicking directly.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions