Skip to content

Commit 491d520

Browse files
committed
docs(ref): Note that target-edition is deprecated
Leaving off any talk of it being removed until we know the edition. This is the first step in implementing rust-lang/rfcs#3772 (tracking issue rust-lang#15283)
1 parent 26318c9 commit 491d520

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/doc/src/reference/cargo-targets.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ harness = true # Use libtest harness.
189189
crate-type = ["lib"] # The crate types to generate.
190190
required-features = [] # Features required to build this target (N/A for lib).
191191

192-
edition = "2015" # The edition of the target.
192+
edition = "2015" # The edition of the target (deprecated).
193193
```
194194

195195
### The `name` field
@@ -310,9 +310,9 @@ required-features = ["postgres", "tools"]
310310

311311
The `edition` field defines the [Rust edition] the target will use. If not
312312
specified, it defaults to the [`edition` field][package-edition] for the
313-
`[package]`. This field should usually not be set, and is only intended for
314-
advanced scenarios such as incrementally transitioning a large package to a
315-
new edition.
313+
`[package]`.
314+
315+
> **Note:* This field is deprecated.
316316
317317
## Target auto-discovery
318318

0 commit comments

Comments
 (0)