]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
authornils <48135649+Nilstrieb@users.noreply.github.com>
Wed, 11 Jan 2023 16:30:54 +0000 (17:30 +0100)
committerGitHub <noreply@github.com>
Wed, 11 Jan 2023 16:30:54 +0000 (17:30 +0100)
Improve fluent error messages

These have been really frustrating me while migrating diagnostics.

1  2 
compiler/rustc_errors/src/lib.rs

index 66e5c41f56c28b9555783c1af7ca21124eccf380,0b5bfdc8e8985e141d046390b529f0e9decf1f16..535812fb0e228f7e413c219293395bdbde4ad7f7
@@@ -40,7 -44,9 +44,8 @@@ use rustc_span::source_map::SourceMap
  use rustc_span::HashStableContext;
  use rustc_span::{Loc, Span};
  
 -use std::any::Any;
  use std::borrow::Cow;
+ use std::error::Report;
  use std::fmt;
  use std::hash::Hash;
  use std::num::NonZeroUsize;