about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-09-18 10:21:39 +0200
committerGitHub <noreply@github.com>2018-09-18 10:21:39 +0200
commit22d38123ba1515cb107ab08905e9b2a231d6628c (patch)
treeb572a43549a0928f6671ab08934907875312aed3 /src/rustllvm/RustWrapper.cpp
parentcdd90343b383eaa00d05c7d332ed8a92bda30892 (diff)
parent82e17504143e7f26427269fabfb99129a602c8b9 (diff)
downloadrust-22d38123ba1515cb107ab08905e9b2a231d6628c.tar.gz
rust-22d38123ba1515cb107ab08905e9b2a231d6628c.zip
Rollup merge of #54232 - pnkfelix:add-way-to-disable-diagnostic-buffering, r=nikomatsakis
add `-Z dont-buffer-diagnostics`

Add `-Z dont-buffer-diagnostics`, a way to force NLL to immediately its diagnostics.

This is mainly intended for developers who want to see the error in its original context in the control flow. Two uses cases for that are:

  1. `-Z treat-err-as-bug` (which then allows extraction of a stack-trace to the origin of the error)

  2. RUST_LOG=... rustc, in which case it is often useful to see the logging statements that occurred immediately prior to the point where the diagnostic was signalled.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions