1
- use crate :: util:: { err_span_str, err_span_string, unsupported_err_span, warning_span } ;
2
- use crate :: { unsupported, unsupported_err, unsupported_err_unless, unsupported_unless } ;
1
+ use crate :: util:: { err_span_str, err_span_string, unsupported_err_span} ;
2
+ use crate :: { unsupported, unsupported_err, unsupported_err_unless} ;
3
3
use rustc_ast:: token:: { Token , TokenKind } ;
4
4
use rustc_ast:: tokenstream:: TokenTree ;
5
5
use rustc_ast:: { AttrKind , Attribute , IntTy , MacArgs , UintTy } ;
@@ -12,7 +12,7 @@ use rustc_span::symbol::Ident;
12
12
use rustc_span:: Span ;
13
13
use std:: rc:: Rc ;
14
14
use vir:: ast:: { Idents , IntRange , Mode , Path , Typ , TypX , VirErr } ;
15
- use vir:: ast_util:: { path_to_string , types_equal} ;
15
+ use vir:: ast_util:: types_equal;
16
16
17
17
pub ( crate ) fn def_to_path < ' tcx > ( tcx : TyCtxt < ' tcx > , def_id : DefId ) -> Path {
18
18
Rc :: new ( tcx. def_path ( def_id) . data . iter ( ) . map ( |d| Rc :: new ( format ! ( "{}" , d) ) ) . collect :: < Vec < _ > > ( ) )
@@ -268,15 +268,15 @@ pub(crate) fn typ_of_node<'tcx>(ctxt: &Ctxt<'tcx>, id: &HirId) -> Typ {
268
268
// Do equality operations on these operands translate into the SMT solver's == operation?
269
269
pub ( crate ) fn is_smt_equality < ' tcx > (
270
270
ctxt : & Ctxt < ' tcx > ,
271
- span : Span ,
271
+ _span : Span ,
272
272
id1 : & HirId ,
273
273
id2 : & HirId ,
274
274
) -> bool {
275
275
let ( t1, t2) = ( typ_of_node ( ctxt, id1) , typ_of_node ( ctxt, id2) ) ;
276
276
match ( & * t1, & * t2) {
277
277
( TypX :: Bool , TypX :: Bool ) => true ,
278
278
( TypX :: Int ( _) , TypX :: Int ( _) ) => true ,
279
- ( TypX :: Path ( p ) , TypX :: Path ( _) ) if types_equal ( & t1, & t2) => {
279
+ ( TypX :: Path ( _ ) , TypX :: Path ( _) ) if types_equal ( & t1, & t2) => {
280
280
let structural_def_id = ctxt
281
281
. tcx
282
282
. get_diagnostic_item ( rustc_span:: Symbol :: intern ( "builtin::Structural" ) )
0 commit comments