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
Copy file name to clipboardExpand all lines: src/etc/man/cargo-fix.1
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -52,15 +52,20 @@ The \fBcargo fix\fR subcommand can also be used to migrate a package from one
52
52
\fIedition\fR <https://doc.rust\-lang.org/edition\-guide/editions/transitioning\-an\-existing\-project\-to\-a\-new\-edition.html> to the next. The general procedure is:
53
53
.sp
54
54
.RS4
55
-
\h'-04' 1.\h'+01'Run \fBcargofix\-\-edition\fR
55
+
\h'-04' 1.\h'+01'Run \fBcargofix\-\-edition\fR\&. Consider also using the \fB\-\-all\-features\fR flag if
56
+
your project has multiple features. You may also want to run \fBcargofix\-\-edition\fR multiple times with different \fB\-\-target\fR flags if your project
57
+
has platform\-specific code gated by \fBcfg\fR attributes.
56
58
.RE
57
59
.sp
58
60
.RS4
59
61
\h'-04' 2.\h'+01'Modify \fBCargo.toml\fR to set the \fIeditionfield\fR <https://doc.rust\-lang.org/cargo/reference/manifest.html#the\-edition\-field> to the new edition.
60
62
.RE
61
63
.sp
62
64
.RS4
63
-
\h'-04' 3.\h'+01'Run your project tests to verify that everything still works.
65
+
\h'-04' 3.\h'+01'Run your project tests to verify that everything still works. If new
66
+
warnings are issued, you may want to consider running \fBcargofix\fR again
67
+
(without the \fB\-\-edition\fR flag) to apply any suggestions given by the
68
+
compiler.
64
69
.RE
65
70
.sp
66
71
And hopefully that's it! Just keep in mind of the caveats mentioned above that
0 commit comments