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
@ -621,7 +621,7 @@ fn has_needless_main(code: String, edition: Edition) -> bool {
|
||||
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 New Issue
Block a user