mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
session: opt for enabling directionality markers
Add an option for enabling and disabling Fluent's directionality isolation markers in output. Disabled by default as these can render in some terminals and applications. Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
parent
865386e9dc
commit
ba718bbeee
2 changed files with 2 additions and 2 deletions
|
@ -621,7 +621,7 @@ fn check_code(cx: &LateContext<'_>, text: &str, edition: Edition, span: Span) {
|
|||
let filename = FileName::anon_source_code(&code);
|
||||
|
||||
let sm = Lrc::new(SourceMap::new(FilePathMapping::empty()));
|
||||
let fallback_bundle = rustc_errors::fallback_fluent_bundle()
|
||||
let fallback_bundle = rustc_errors::fallback_fluent_bundle(false)
|
||||
.expect("failed to load fallback fluent bundle");
|
||||
let emitter = EmitterWriter::new(
|
||||
Box::new(io::sink()),
|
||||
|
|
|
@ -165,7 +165,7 @@ fn report_clippy_ice(info: &panic::PanicInfo<'_>, bug_report_url: &str) {
|
|||
// Separate the output with an empty line
|
||||
eprintln!();
|
||||
|
||||
let fallback_bundle = rustc_errors::fallback_fluent_bundle()
|
||||
let fallback_bundle = rustc_errors::fallback_fluent_bundle(false)
|
||||
.expect("failed to load fallback fluent bundle");
|
||||
let emitter = Box::new(rustc_errors::emitter::EmitterWriter::stderr(
|
||||
rustc_errors::ColorConfig::Auto,
|
||||
|
|
Loading…
Reference in a new issue