Skip to content

Commit bf2b027

Browse files
committed
Removed dead code
1 parent bc3f072 commit bf2b027

File tree

1 file changed

+0
-27
lines changed
  • src/tools/rust-analyzer/crates/hir-ty/src/next_solver/infer

1 file changed

+0
-27
lines changed

src/tools/rust-analyzer/crates/hir-ty/src/next_solver/infer/mod.rs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Infer context the next-trait-solver.
22
33
use std::cell::{Cell, RefCell};
4-
use std::fmt;
54
use std::ops::Range;
65
use std::sync::Arc;
76

@@ -299,32 +298,6 @@ pub enum BoundRegionConversionTime {
299298
AssocTypeProjection(SolverDefId),
300299
}
301300

302-
#[derive(Copy, Clone, Debug)]
303-
pub struct FixupError {
304-
unresolved: TyOrConstInferVar,
305-
}
306-
307-
impl fmt::Display for FixupError {
308-
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
309-
use TyOrConstInferVar::*;
310-
311-
match self.unresolved {
312-
TyInt(_) => write!(
313-
f,
314-
"cannot determine the type of this integer; \
315-
add a suffix to specify the type explicitly"
316-
),
317-
TyFloat(_) => write!(
318-
f,
319-
"cannot determine the type of this number; \
320-
add a suffix to specify the type explicitly"
321-
),
322-
Ty(_) => write!(f, "unconstrained type"),
323-
Const(_) => write!(f, "unconstrained const value"),
324-
}
325-
}
326-
}
327-
328301
/// See the `region_obligations` field for more information.
329302
#[derive(Clone, Debug)]
330303
pub struct TypeOutlivesConstraint<'db> {

0 commit comments

Comments
 (0)