Skip to content

Commit 5ff2960

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 #15283)
1 parent 58c46b1 commit 5ff2960

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ bench = true # Is benchmarked by default.
186186
doc = true # Is documented by default.
187187
proc-macro = false # Set to `true` for a proc-macro library.
188188
harness = true # Use libtest harness.
189-
edition = "2015" # The edition of the target.
190189
crate-type = ["lib"] # The crate types to generate.
191190
required-features = [] # Features required to build this target (N/A for lib).
192191
```
@@ -309,9 +308,9 @@ required-features = ["postgres", "tools"]
309308

310309
The `edition` field defines the [Rust edition] the target will use. If not
311310
specified, it defaults to the [`edition` field][package-edition] for the
312-
`[package]`. This field should usually not be set, and is only intended for
313-
advanced scenarios such as incrementally transitioning a large package to a
314-
new edition.
311+
`[package]`.
312+
313+
> **Note:** This field is deprecated and will be removed in a future Edition
315314
316315
## Target auto-discovery
317316

0 commit comments

Comments
 (0)