diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-02-05 13:52:22 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-02-05 13:52:22 +0000 |
| commit | e27495c015c3df7f82cc15c73968f836c10cc9e9 (patch) | |
| tree | b17250d860abc0d8d664d8e5bc0ec3c9edcc5d68 /compiler/rustc_errors/src | |
| parent | 820bfffc25fee9866aa8176529091e04b8824f09 (diff) | |
| download | rust-e27495c015c3df7f82cc15c73968f836c10cc9e9.tar.gz rust-e27495c015c3df7f82cc15c73968f836c10cc9e9.zip | |
Couple of changes to run rustc in miri
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/emitter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/emitter.rs b/compiler/rustc_errors/src/emitter.rs index d0b4211c351..a9fa2e47641 100644 --- a/compiler/rustc_errors/src/emitter.rs +++ b/compiler/rustc_errors/src/emitter.rs @@ -1764,7 +1764,7 @@ impl HumanEmitter { let column_width = if let Some(width) = self.diagnostic_width { width.saturating_sub(code_offset) - } else if self.ui_testing { + } else if self.ui_testing || cfg!(miri) { DEFAULT_COLUMN_WIDTH } else { termize::dimensions() |
