Skip to content

Commit 8b29c65

Browse files
committed
Build fix attempt rust-lang#2.
1 parent 042ff52 commit 8b29c65

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

clippy_lints/src/methods/path_join_correction.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,25 @@ use super::PATH_JOIN_CORRECTION;
1212
pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>, join_arg: &'tcx Expr<'tcx>, span: Span) {
1313
let ty = cx.typeck_results().expr_ty(expr);
1414
if_chain!(
15+
<<<<<<< HEAD
1516
if is_type_diagnostic_item(cx, ty, Path);
1617
let applicability = Applicability::MachineApplicable;
1718
if let ExprKind::Lit(spanned) = &join_arg.kind;
1819
if let LitKind::Str(symbol, _) = spanned.node;
1920
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+
>>>>>>> 729475bde (Build fix attempt #2.)
2028
then {
2129
span_lint_and_sugg(
2230
cx,
2331
PATH_JOIN_CORRECTION,
2432
span.with_hi(expr.span.hi()),
33+
<<<<<<< HEAD
2534
r#"argument in join called on path contains a starting '/'"#,
2635
"try removing first '/' or '\\'",
2736
"join(\"your/path/here\")".to_owned(),
@@ -82,18 +91,23 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>, join_a
8291
cx,
8392
PATH_JOIN_CORRECTION,
8493
span.with_hi(expr.span.hi()),
94+
=======
95+
>>>>>>> 729475bde (Build fix attempt #2.)
8596
r#"argument in join called on path contains a starting '/'"#,
8697
"try removing first '/' or '\\'",
8798
"join(\"your/path/here\")".to_owned(),
8899
applicability
89100
);
90101
}
91102
);
103+
<<<<<<< HEAD
92104
<<<<<<< HEAD
93105
}
94106
);
95107
>>>>>>> b87b08b12 (Fixed errors and lack of documentation in mod.rs.)
96108
=======
97109
}
98110
>>>>>>> 00ee1bf71 (Added type check and test case for string slice.)
111+
=======
112+
>>>>>>> 729475bde (Build fix attempt #2.)
99113
}

0 commit comments

Comments
 (0)