Skip to content

Commit db3776c

Browse files
committed
Document the rust-version field
1 parent d555e49 commit db3776c

40 files changed

+210
-2
lines changed

src/cargo/core/features.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,7 @@ impl Edition {
166166
match self {
167167
Edition2015 => None,
168168
Edition2018 => Some(semver::Version::new(1, 31, 0)),
169-
// FIXME: This will likely be 1.56, update when that seems more likely.
170-
Edition2021 => Some(semver::Version::new(1, 62, 0)),
169+
Edition2021 => Some(semver::Version::new(1, 56, 0)),
171170
}
172171
}
173172

src/doc/man/cargo-bench.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ target.
8383

8484
{{> options-target-triple }}
8585

86+
{{> options-ignore-rust-version }}
87+
8688
{{/options}}
8789

8890
### Output Options

src/doc/man/cargo-build.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ they have `required-features` that are missing.
3535

3636
{{> options-release }}
3737

38+
{{> options-ignore-rust-version }}
39+
3840
{{/options}}
3941

4042
### Output Options

src/doc/man/cargo-check.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ they have `required-features` that are missing.
4242

4343
{{> options-profile }}
4444

45+
{{> options-ignore-rust-version }}
46+
4547
{{/options}}
4648

4749
### Output Options

src/doc/man/cargo-doc.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ flag and will always document the given target.
6464

6565
{{> options-release }}
6666

67+
{{> options-ignore-rust-version }}
68+
6769
{{/options}}
6870

6971
### Output Options

src/doc/man/cargo-fix.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ When no target selection options are given, `cargo fix` will fix all targets
122122

123123
{{> options-profile }}
124124

125+
{{> options-ignore-rust-version }}
126+
125127
{{/options}}
126128

127129
### Output Options

src/doc/man/cargo-run.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ Run the specified example.
5050

5151
{{> options-release }}
5252

53+
{{> options-ignore-rust-version }}
54+
5355
{{/options}}
5456

5557
### Output Options

src/doc/man/cargo-rustc.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ binary and library targets of the selected package.
4747

4848
{{> options-release }}
4949

50+
{{> options-ignore-rust-version }}
51+
5052
{{/options}}
5153

5254
### Output Options

src/doc/man/cargo-rustdoc.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ if its name is the same as the lib target. Binaries are skipped if they have
6262

6363
{{> options-release }}
6464

65+
{{> options-ignore-rust-version }}
66+
6567
{{/options}}
6668

6769
### Output Options

src/doc/man/cargo-test.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ target options.
102102

103103
{{> options-release }}
104104

105+
{{> options-ignore-rust-version }}
106+
105107
{{/options}}
106108

107109
### Output Options

0 commit comments

Comments
 (0)