Skip to content

Commit 047cc8b

Browse files
committed
Removed dead code
1 parent d4205f7 commit 047cc8b

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

@@ -290,32 +289,6 @@ pub enum BoundRegionConversionTime {
290289
AssocTypeProjection(SolverDefId),
291290
}
292291

293-
#[derive(Copy, Clone, Debug)]
294-
pub struct FixupError {
295-
unresolved: TyOrConstInferVar,
296-
}
297-
298-
impl fmt::Display for FixupError {
299-
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
300-
use TyOrConstInferVar::*;
301-
302-
match self.unresolved {
303-
TyInt(_) => write!(
304-
f,
305-
"cannot determine the type of this integer; \
306-
add a suffix to specify the type explicitly"
307-
),
308-
TyFloat(_) => write!(
309-
f,
310-
"cannot determine the type of this number; \
311-
add a suffix to specify the type explicitly"
312-
),
313-
Ty(_) => write!(f, "unconstrained type"),
314-
Const(_) => write!(f, "unconstrained const value"),
315-
}
316-
}
317-
}
318-
319292
/// See the `region_obligations` field for more information.
320293
#[derive(Clone, Debug)]
321294
pub struct RegionObligation<'db> {

0 commit comments

Comments
 (0)