diff options
| author | David Wood <david.wood@huawei.com> | 2022-04-03 04:53:01 +0100 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2022-04-05 07:01:03 +0100 |
| commit | ba718bbeeee95407f73f6c05c75284ff68d10fb6 (patch) | |
| tree | ad40cf5ef32728f3c563a24e15ff35a4c8741002 | |
| parent | 865386e9dcac24966ac09062e910482346cd40f4 (diff) | |
| download | rust-ba718bbeeee95407f73f6c05c75284ff68d10fb6.tar.gz rust-ba718bbeeee95407f73f6c05c75284ff68d10fb6.zip | |
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>
| -rw-r--r-- | clippy_lints/src/doc.rs | 2 | ||||
| -rw-r--r-- | src/driver.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/doc.rs b/clippy_lints/src/doc.rs index e08e9e49993..92cf82bcd6a 100644 --- a/clippy_lints/src/doc.rs +++ b/clippy_lints/src/doc.rs @@ -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()), diff --git a/src/driver.rs b/src/driver.rs index f04535b2bea..bc1b0d74575 100644 --- a/src/driver.rs +++ b/src/driver.rs @@ -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, |
