about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorZack M. Davis <code@zackmdavis.net>2017-11-12 19:13:07 -0800
committerZack M. Davis <code@zackmdavis.net>2017-11-12 19:34:27 -0800
commit5cc488d2500999ef4b934c90f155022b25dcdd19 (patch)
treeda009dab79aa7543c7c91fc77df33a1ed09a0def /src/rustllvm/RustWrapper.cpp
parent7f43981ebfbfd771d4e60b44f270125fe3cb4902 (diff)
downloadrust-5cc488d2500999ef4b934c90f155022b25dcdd19.tar.gz
rust-5cc488d2500999ef4b934c90f155022b25dcdd19.zip
deduplicate projection error (E0271) messages
The `ErrorId` variant takes a u16 so that `DiagnosticMessageId` can retain
its `Copy` status (the present author's first choice having been the "EXXX"
code as a string).

The duplicated "type mismatch resolving `{}`" literal is unfortunate, but
the `struct_span_err!` macro (which we want to mark that error code as
used) is fussy about taking a literal, and the one-time-diagnostics set
needs an owned string.

This is concerning #33941 and probably #45805!
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions