File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed
src/tools/rust-analyzer/crates/hir-ty/src/next_solver/infer Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change 11//! Infer context the next-trait-solver.
22
33use std:: cell:: { Cell , RefCell } ;
4- use std:: fmt;
54use std:: ops:: Range ;
65use 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 ) ]
330303pub struct TypeOutlivesConstraint < ' db > {
You can’t perform that action at this time.
0 commit comments