diff options
| author | bors <bors@rust-lang.org> | 2021-02-03 18:01:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-02-03 18:01:37 +0000 |
| commit | 120b2a704a60d4341286bd82f6e638c65ca169b6 (patch) | |
| tree | 254339ce4319d192bb0a801668102587787a6d72 /compiler/rustc_errors/src/styled_buffer.rs | |
| parent | 186f7ae5b04d31d8ccd1746ac63cdf1ab4bc2354 (diff) | |
| parent | 46174188e8d8b6b42debbd0939a95d14b91c514f (diff) | |
| download | rust-120b2a704a60d4341286bd82f6e638c65ca169b6.tar.gz rust-120b2a704a60d4341286bd82f6e638c65ca169b6.zip | |
Auto merge of #81718 - m-ou-se:rollup-3ftbymt, r=m-ou-se
Rollup of 5 pull requests Successful merges: - #80394 (make const_err a future incompat lint) - #81532 (Remove incorrect `delay_span_bug`) - #81692 (Update clippy) - #81715 (Reduce tab formatting assertions to debug only) - #81716 (Fix non-existent-field ICE for generic fields.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_errors/src/styled_buffer.rs')
| -rw-r--r-- | compiler/rustc_errors/src/styled_buffer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/styled_buffer.rs b/compiler/rustc_errors/src/styled_buffer.rs index a4dd0f391bd..ef71ee36ea3 100644 --- a/compiler/rustc_errors/src/styled_buffer.rs +++ b/compiler/rustc_errors/src/styled_buffer.rs @@ -15,7 +15,7 @@ impl StyledBuffer { pub fn render(&self) -> Vec<Vec<StyledString>> { // Tabs are assumed to have been replaced by spaces in calling code. - assert!(self.text.iter().all(|r| !r.contains(&'\t'))); + debug_assert!(self.text.iter().all(|r| !r.contains(&'\t'))); let mut output: Vec<Vec<StyledString>> = vec![]; let mut styled_vec: Vec<StyledString> = vec![]; |
