about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2022-07-22 08:50:31 -0700
committerJubilee Young <workingjubilee@gmail.com>2022-07-22 08:54:40 -0700
commitbcf780e2ba00dbe5a81502ef541dbc0f4fb76ebb (patch)
tree95cdf7f7be8a4846fa43305a5cdb898495000feb /compiler/rustc_interface/src/errors.rs
parent246f66a905c2815f2c9b9c3d6b1e0649f3360ef8 (diff)
downloadrust-bcf780e2ba00dbe5a81502ef541dbc0f4fb76ebb.tar.gz
rust-bcf780e2ba00dbe5a81502ef541dbc0f4fb76ebb.zip
Recover error strings on Unix from_lossy_utf8
Some language settings can result in unreliable UTF-8 being produced.
This can result in failing to emit the error string, panicking instead.
from_lossy_utf8 allows us to assume these strings usually will be fine.
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions