Skip to content

Commit ba718bb

Browse files
committed
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>
1 parent 865386e commit ba718bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/doc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ fn check_code(cx: &LateContext<'_>, text: &str, edition: Edition, span: Span) {
621621
let filename = FileName::anon_source_code(&code);
622622

623623
let sm = Lrc::new(SourceMap::new(FilePathMapping::empty()));
624-
let fallback_bundle = rustc_errors::fallback_fluent_bundle()
624+
let fallback_bundle = rustc_errors::fallback_fluent_bundle(false)
625625
.expect("failed to load fallback fluent bundle");
626626
let emitter = EmitterWriter::new(
627627
Box::new(io::sink()),

src/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ fn report_clippy_ice(info: &panic::PanicInfo<'_>, bug_report_url: &str) {
165165
// Separate the output with an empty line
166166
eprintln!();
167167

168-
let fallback_bundle = rustc_errors::fallback_fluent_bundle()
168+
let fallback_bundle = rustc_errors::fallback_fluent_bundle(false)
169169
.expect("failed to load fallback fluent bundle");
170170
let emitter = Box::new(rustc_errors::emitter::EmitterWriter::stderr(
171171
rustc_errors::ColorConfig::Auto,

0 commit comments

Comments
 (0)