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
@@ -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 ) ]
321294pub struct RegionObligation < ' db > {
You can’t perform that action at this time.
0 commit comments