Skip to content

Commit b6c02d0

Browse files
djcm-ou-se
andauthored
Update text/0000-prelude-2021-traits.md
Co-authored-by: Mara Bos <[email protected]>
1 parent ca92f70 commit b6c02d0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

text/0000-prelude-2021-traits.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ Except for newly added traits, the `v1` and `edition2021` preludes should be kep
3737

3838
The new prelude will be named after the edition that introduces it to make the link to the edition more obvious. Each edition will have a separate prelude, whether the contents are actually different or not.
3939

40-
Importantly, we'll need to make the upgrade path to an edition containing new traits in the prelude as smooth as possible. The analysis can be done as follows:
40+
## Migration Lint
41+
42+
As for all edition changes, we will implement a migration lint to detect cases where code would break in the new edition. It includes a MachineApplicable suggestion for an alternative that will work in both the current and next edition.
43+
44+
The migration lint will be implemented as follows:
4145

4246
* Find method calls matching the name of one of the newly added traits' methods.
4347
This can be done either by hardcoding these method names or by setting up some

0 commit comments

Comments
 (0)