about summary refs log tree commit diff
path: root/compiler/rustc_errors
diff options
context:
space:
mode:
authorthe8472 <the8472@users.noreply.github.com>2021-09-22 19:03:22 +0200
committerGitHub <noreply@github.com>2021-09-22 19:03:22 +0200
commit5948a7b40799d0c0ab4dd171375a335402686ff6 (patch)
treed9de0161d54c1f87a2d3493d09729c15d926fd4e /compiler/rustc_errors
parent1deef1f75d0761256578508c1b398718e121d094 (diff)
parentc9fe0938767c8803330367806db8ba1ce81c7843 (diff)
downloadrust-5948a7b40799d0c0ab4dd171375a335402686ff6.tar.gz
rust-5948a7b40799d0c0ab4dd171375a335402686ff6.zip
Rollup merge of #89046 - oli-obk:fix_oflo, r=estebank
"Fix" an overflow in byte position math

r? `@estebank`

help! I fixed the ICE only to brick the diagnostic.

I mean, it was wrong previously (using an already expanded macro span), but it is really bad now XD
Diffstat (limited to 'compiler/rustc_errors')
-rw-r--r--compiler/rustc_errors/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index 03e8534ef28..60a48b5a2d9 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -13,9 +13,11 @@
 #[macro_use]
 extern crate rustc_macros;
 
+#[macro_use]
+extern crate tracing;
+
 pub use emitter::ColorConfig;
 
-use tracing::debug;
 use Level::*;
 
 use emitter::{is_case_difference, Emitter, EmitterWriter};