Commit d8e88c9
authored
Rollup merge of rust-lang#135406 - Aditya-PS-05:fix/unstable-lint-docs, r=compiler-errors
Update unstable lint docs to include required feature attributes
closes rust-lang#135298
## Summary
This PR updates the documentation examples for the following unstable lints to ensure they include the necessary feature attributes for proper usage:
- fuzzy_provenance_casts
- lossy_provenance_casts
- unqualified_local_imports
- test_unstable_lint
## Changes Made:
- Added the appropriate #![feature(...)] attributes to the example code for each lint.
- Updated the examples to produce correct and meaningful warnings, ensuring they align with current lint behavior.
Reference:
- Used the `must_not_suspend` lint documentation as a template for these updates.File tree
2 files changed
+5
-0
lines changed- compiler
- rustc_lint_defs/src
- rustc_lint/src
2 files changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2671 | 2671 | | |
2672 | 2672 | | |
2673 | 2673 | | |
| 2674 | + | |
2674 | 2675 | | |
2675 | 2676 | | |
2676 | 2677 | | |
| |||
2714 | 2715 | | |
2715 | 2716 | | |
2716 | 2717 | | |
| 2718 | + | |
2717 | 2719 | | |
2718 | 2720 | | |
2719 | 2721 | | |
| |||
4033 | 4035 | | |
4034 | 4036 | | |
4035 | 4037 | | |
| 4038 | + | |
| 4039 | + | |
4036 | 4040 | | |
4037 | 4041 | | |
4038 | 4042 | | |
| |||
0 commit comments