diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-01-07 12:03:28 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-01-09 08:48:00 +0000 |
| commit | 787af97babcb911f2ce70d3d28959cdccc7901bd (patch) | |
| tree | cb5cb979ec76b891287d3a7f8e821034ed3568cf /compiler/rustc_middle | |
| parent | 7833cf7a4703099d32012848f682c1e7decc0f51 (diff) | |
| download | rust-787af97babcb911f2ce70d3d28959cdccc7901bd.tar.gz rust-787af97babcb911f2ce70d3d28959cdccc7901bd.zip | |
Use error constant instead of explicit error handling
Diffstat (limited to 'compiler/rustc_middle')
| -rw-r--r-- | compiler/rustc_middle/src/mir/interpret/mod.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/mir/interpret/mod.rs b/compiler/rustc_middle/src/mir/interpret/mod.rs index 8d73c9e76de..040390cb0ae 100644 --- a/compiler/rustc_middle/src/mir/interpret/mod.rs +++ b/compiler/rustc_middle/src/mir/interpret/mod.rs @@ -16,7 +16,6 @@ use rustc_abi::{AddressSpace, Align, Endian, HasDataLayout, Size}; use rustc_ast::{LitKind, Mutability}; use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::sync::Lock; -use rustc_errors::ErrorGuaranteed; use rustc_hir::def::DefKind; use rustc_hir::def_id::{DefId, LocalDefId}; use rustc_macros::{HashStable, TyDecodable, TyEncodable, TypeFoldable, TypeVisitable}; @@ -91,7 +90,6 @@ pub enum LitToConstError { /// This is used for graceful error handling (`span_delayed_bug`) in /// type checking (`Const::from_anon_const`). TypeError, - Reported(ErrorGuaranteed), } #[derive(Copy, Clone, Eq, Hash, Ord, PartialEq, PartialOrd)] |
