Skip to content

Commit c65d4f3

Browse files
ehusstraviscross
authored andcommitted
Elaborate on the testing step
1 parent 1ce3a24 commit c65d4f3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/editions/transitioning-an-existing-project-to-a-new-edition.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,18 @@ edition = "2018"
8888
If there's no `edition` key, Cargo will default to Rust 2015. But in this case,
8989
we've chosen `2018`, and so our code will compile with Rust 2018!
9090

91+
## Testing your code in the new edition
92+
9193
The next step is to test your project on the new edition.
9294
Run your project tests to verify that everything still works, such as running [`cargo test`].
9395
If new warnings are issued, you may want to consider running `cargo fix` again (without the `--edition` flag) to apply any suggestions given by the compiler.
9496

97+
At this point, you may still need to do some manual changes. For example, the automatic migration does not update doctests, and build-time code generation or macros may need manual updating. See the [advanced migrations chapter] for more information.
98+
9599
Congrats! Your code is now valid in both Rust 2015 and Rust 2018!
96100

101+
[advanced migrations chapter]: advanced-migrations.md
102+
97103
## Migrating to an unstable edition
98104

99105
After an edition is released, there is roughly a three year window before the next edition.

0 commit comments

Comments
 (0)