You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let rustdoc_suggestion = "This is a known bug where multiple crates with the same name use\n\
536
-
the same path; see <https://github.com/rust-lang/cargo/issues/6313>.";
530
+
let suggestion = [
531
+
Level::NOTE.message("this may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>"),
532
+
Level::HELP.message("consider changing their names to be unique or compiling them separately")
533
+
];
534
+
let rustdoc_suggestion = [
535
+
Level::NOTE.message("this is a known bug where multiple crates with the same name use the same path; see <https://github.com/rust-lang/cargo/issues/6313>")
536
+
];
537
537
let report_collision = |unit:&Unit,
538
538
other_unit:&Unit,
539
539
path:&PathBuf,
540
-
suggestion:&str|
540
+
messages:&[Message<'_>]|
541
541
-> CargoResult<()>{
542
542
if unit.target.name() == other_unit.target.name(){
543
-
self.bcx.gctx.shell().warn(format!(
544
-
"output filename collision.\n\
545
-
{}\
546
-
The targets should have unique names.\n\
547
-
{}",
548
-
describe_collision(unit, other_unit, path),
549
-
suggestion
550
-
))
543
+
self.bcx.gctx.shell().print_report(
544
+
&[Level::WARNING
545
+
.secondary_title(format!("output filename collision at {}", path.display()))
0 commit comments