blob: c44292276d2773482051d9ee643920321e789b4f [file] [log] [blame] [edit]
error: argument to `Path::join` starts with a path separator
--> tests/ui/join_absolute_paths.rs:8:15
|
LL | path.join("/sh");
| ^^^^^
|
= note: joining a path starting with separator will replace the path instead
= note: `-D clippy::join-absolute-paths` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::join_absolute_paths)]`
help: if this is unintentional, try removing the starting separator
|
LL - path.join("/sh");
LL + path.join("sh");
|
help: if this is intentional, consider using `Path::new`
|
LL - path.join("/sh");
LL + PathBuf::from("/sh");
|
error: argument to `Path::join` starts with a path separator
--> tests/ui/join_absolute_paths.rs:12:15
|
LL | path.join("/sh");
| ^^^^^
|
= note: joining a path starting with separator will replace the path instead
help: if this is unintentional, try removing the starting separator
|
LL - path.join("/sh");
LL + path.join("sh");
|
help: if this is intentional, consider using `Path::new`
|
LL - path.join("/sh");
LL + PathBuf::from("/sh");
|
error: argument to `Path::join` starts with a path separator
--> tests/ui/join_absolute_paths.rs:16:15
|
LL | path.join(r#"/sh"#);
| ^^^^^^^^
|
= note: joining a path starting with separator will replace the path instead
help: if this is unintentional, try removing the starting separator
|
LL - path.join(r#"/sh"#);
LL + path.join(r#"sh"#);
|
help: if this is intentional, consider using `Path::new`
|
LL - path.join(r#"/sh"#);
LL + PathBuf::from(r#"/sh"#);
|
error: argument to `Path::join` starts with a path separator
--> tests/ui/join_absolute_paths.rs:20:15
|
LL | path.join("\\user");
| ^^^^^^^^
|
= note: joining a path starting with separator will replace the path instead
help: if this is unintentional, try removing the starting separator
|
LL - path.join("\\user");
LL + path.join("user");
|
help: if this is intentional, consider using `Path::new`
|
LL - path.join("\\user");
LL + PathBuf::from("\\user");
|
error: argument to `Path::join` starts with a path separator
--> tests/ui/join_absolute_paths.rs:24:15
|
LL | path.join("\\user");
| ^^^^^^^^
|
= note: joining a path starting with separator will replace the path instead
help: if this is unintentional, try removing the starting separator
|
LL - path.join("\\user");
LL + path.join("user");
|
help: if this is intentional, consider using `Path::new`
|
LL - path.join("\\user");
LL + PathBuf::from("\\user");
|
error: argument to `Path::join` starts with a path separator
--> tests/ui/join_absolute_paths.rs:28:15
|
LL | path.join(r#"\user"#);
| ^^^^^^^^^^
|
= note: joining a path starting with separator will replace the path instead
help: if this is unintentional, try removing the starting separator
|
LL - path.join(r#"\user"#);
LL + path.join(r#"user"#);
|
help: if this is intentional, consider using `Path::new`
|
LL - path.join(r#"\user"#);
LL + PathBuf::from(r#"\user"#);
|
error: aborting due to 6 previous errors