diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-02-14 12:28:07 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-02-19 22:11:13 +0000 |
| commit | 90626979170da2d6c5ec1622b3d7a9512df9eb71 (patch) | |
| tree | 760826399d3140baa9e10b3316c73cfdc87930bb /compiler/rustc_const_eval/src | |
| parent | e29a1530f670d66f617f7aac8601920a87263ac6 (diff) | |
| download | rust-90626979170da2d6c5ec1622b3d7a9512df9eb71.tar.gz rust-90626979170da2d6c5ec1622b3d7a9512df9eb71.zip | |
Always evaluate free constants and statics, even if previous errors occurred
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/check_consts/check.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/check.rs b/compiler/rustc_const_eval/src/transform/check_consts/check.rs index a3c4734f0a3..26ef083219f 100644 --- a/compiler/rustc_const_eval/src/transform/check_consts/check.rs +++ b/compiler/rustc_const_eval/src/transform/check_consts/check.rs @@ -249,7 +249,7 @@ impl<'mir, 'tcx> Checker<'mir, 'tcx> { let secondary_errors = mem::take(&mut self.secondary_errors); if self.error_emitted.is_none() { for error in secondary_errors { - error.emit(); + self.error_emitted = Some(error.emit()); } } else { assert!(self.tcx.dcx().has_errors().is_some()); |
