about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-01-15 14:41:12 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-01-22 10:14:01 +1100
commit807c8687de342bd11a7038df54946f4abcc03d2c (patch)
treed9384f76cf338fdddf64a795abbb316554f6fc67 /compiler/rustc_errors/src
parentf00c088393a995bfaf174938b7838cc69433e4fe (diff)
downloadrust-807c8687de342bd11a7038df54946f4abcc03d2c.tar.gz
rust-807c8687de342bd11a7038df54946f4abcc03d2c.zip
Count "unused extern" errors as lints rather than normal errors.
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index 17bcc31c006..e47daf4afa1 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -1162,7 +1162,7 @@ impl DiagCtxt {
         let mut inner = self.inner.borrow_mut();
 
         if loud && lint_level.is_error() {
-            inner.err_count += 1;
+            inner.lint_err_count += 1;
             inner.panic_if_treat_err_as_bug();
         }