diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-10-15 11:24:20 +0200 | 
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2021-10-15 11:28:23 +0200 | 
| commit | 44570143989cdd529aff488b8fa5534c4802fbce (patch) | |
| tree | 6ac2b6660b1055c06b20475a05eec0f9359d1143 /compiler/rustc_data_structures/src/base_n.rs | |
| parent | 72d66064e77281536588189a916af28a1819b313 (diff) | |
| download | rust-44570143989cdd529aff488b8fa5534c4802fbce.tar.gz rust-44570143989cdd529aff488b8fa5534c4802fbce.zip | |
Revert "Auto merge of #89709 - clemenswasser:apply_clippy_suggestions_2, r=petrochenkov"
The PR had some unforseen perf regressions that are not as easy to find. Revert the PR for now. This reverts commit 6ae8912a3e7d2c4c775024f58a7ba4b1aedc4073, reversing changes made to 86d6d2b7389fe1b339402c1798edae8b695fc9ef.
Diffstat (limited to 'compiler/rustc_data_structures/src/base_n.rs')
| -rw-r--r-- | compiler/rustc_data_structures/src/base_n.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_data_structures/src/base_n.rs b/compiler/rustc_data_structures/src/base_n.rs index 81e2501ecbe..3c7bea27124 100644 --- a/compiler/rustc_data_structures/src/base_n.rs +++ b/compiler/rustc_data_structures/src/base_n.rs @@ -14,7 +14,7 @@ const BASE_64: &[u8; MAX_BASE as usize] = #[inline] pub fn push_str(mut n: u128, base: usize, output: &mut String) { - debug_assert!((2..=MAX_BASE).contains(&base)); + debug_assert!(base >= 2 && base <= MAX_BASE); let mut s = [0u8; 128]; let mut index = 0; | 
