about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-08-23 12:53:29 -0700
committerAlex Crichton <alex@alexcrichton.com>2017-08-25 16:08:35 -0700
commit97f2c37435b76c59ff60164b30a02f09641f798f (patch)
treef7c3f44c48d2b1470b14bce97aab4f910a1c8cd9 /src/rustllvm/RustWrapper.cpp
parent64b0b2bfebf857f25f826ca9ebb07630287bc4d0 (diff)
downloadrust-97f2c37435b76c59ff60164b30a02f09641f798f.tar.gz
rust-97f2c37435b76c59ff60164b30a02f09641f798f.zip
rustc: Change the return of a query's `try_get`
This alters the return value of the `try_get` function so the error contains a
diagnostic rather than a `CycleError`. This way consumers are forced to take
*some* action (else they get a bug to an un-emitted diagnostic). This action
could be to emit the error itself, or in some cases delay the diagnostic as a
bug and continue.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions