@@ -12,16 +12,25 @@ use super::PATH_JOIN_CORRECTION;
12
12
pub ( super ) fn check < ' tcx > ( cx : & LateContext < ' tcx > , expr : & ' tcx Expr < ' tcx > , join_arg : & ' tcx Expr < ' tcx > , span : Span ) {
13
13
let ty = cx. typeck_results( ) . expr_ty( expr) ;
14
14
if_chain ! (
15
+ <<<<<<< HEAD
15
16
if is_type_diagnostic_item( cx, ty, Path ) ;
16
17
let applicability = Applicability :: MachineApplicable ;
17
18
if let ExprKind :: Lit ( spanned) = & join_arg. kind;
18
19
if let LitKind :: Str ( symbol, _) = spanned. node;
19
20
if symbol. as_str( ) . starts_with( '/' ) || symbol. as_str( ) . starts_with( '\\' ) ;
21
+ =======
22
+ if is_type_diagnostic_item( cx, ty, Path ) ;
23
+ let applicability = Applicability :: MachineApplicable ;
24
+ if let ExprKind :: Lit ( spanned) = & join_arg. kind;
25
+ if let LitKind :: Str ( symbol, _) = spanned. node;
26
+ if symbol. as_str( ) . starts_with( '/' ) || symbol. as_str( ) . starts_with( '\\' ) ;
27
+ >>>>>>> 729475 bde ( Build fix attempt #2. )
20
28
then {
21
29
span_lint_and_sugg(
22
30
cx,
23
31
PATH_JOIN_CORRECTION ,
24
32
span. with_hi( expr. span. hi( ) ) ,
33
+ <<<<<<< HEAD
25
34
r#"argument in join called on path contains a starting '/'"# ,
26
35
"try removing first '/' or '\\ '" ,
27
36
"join(\" your/path/here\" )" . to_owned( ) ,
@@ -82,18 +91,23 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>, join_a
82
91
cx,
83
92
PATH_JOIN_CORRECTION ,
84
93
span. with_hi( expr. span. hi( ) ) ,
94
+ =======
95
+ >>>>>>> 729475 bde ( Build fix attempt #2. )
85
96
r#"argument in join called on path contains a starting '/'"# ,
86
97
"try removing first '/' or '\\ '" ,
87
98
"join(\" your/path/here\" )" . to_owned( ) ,
88
99
applicability
89
100
) ;
90
101
}
91
102
) ;
103
+ <<<<<<< HEAD
92
104
<<<<<<< HEAD
93
105
}
94
106
) ;
95
107
>>>>>>> b87b08b12 ( Fixed errors and lack of documentation in mod . rs . )
96
108
=======
97
109
}
98
110
>>>>>>> 00 ee1bf71 ( Added type check and test case for string slice. )
111
+ =======
112
+ >>>>>>> 729475 bde ( Build fix attempt #2 . )
99
113
}
0 commit comments