Skip to content

Commit 10f8993

Browse files
committed
Remove Advanced Lifetimes section completely
1 parent f5ce588 commit 10f8993

6 files changed

+2
-86
lines changed

redirects/lifetimes.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@
2121
Here are the relevant sections in the new and old books:
2222

2323
* **[in the current edition: Ch 10.03 — Lifetimes][2]**
24-
* [in the current edition: Ch 19.02 — Advanced Lifetimes][3]
2524
* <small>[In the first edition: Ch 3.10 — Lifetimes][1]</small>
2625

2726

2827
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/lifetimes.html
2928
[2]: ch10-03-lifetime-syntax.html
30-
[3]: ch19-02-advanced-lifetimes.html

second-edition/src/ch19-02-advanced-lifetimes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The second edition of the book is no longer distributed with Rust's documentation.
44

55
If you came here via a link or web search, you may want to check out [the current
6-
version of the book](../ch19-02-advanced-lifetimes.html) instead.
6+
version of the book](../index.html) instead.
77

88
If you have an internet connection, you can [find a copy distributed with
99
Rust

src/SUMMARY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@
115115

116116
- [Advanced Features](ch19-00-advanced-features.md)
117117
- [Unsafe Rust](ch19-01-unsafe-rust.md)
118-
- [Advanced Lifetimes](ch19-02-advanced-lifetimes.md)
119118
- [Advanced Traits](ch19-03-advanced-traits.md)
120119
- [Advanced Types](ch19-04-advanced-types.md)
121120
- [Advanced Functions and Closures](ch19-05-advanced-functions-and-closures.md)

src/ch10-03-lifetime-syntax.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ The concept of lifetimes is somewhat different from tools in other programming
1414
languages, arguably making lifetimes Rust’s most distinctive feature. Although
1515
we won’t cover lifetimes in their entirety in this chapter, we’ll discuss
1616
common ways you might encounter lifetime syntax so you can become familiar with
17-
the concepts. See the [“Advanced Lifetimes”][advanced-lifetimes]<!-- ignore -->
18-
section in Chapter 19 for more detailed information.
17+
the concepts.
1918

2019
### Preventing Dangling References with Lifetimes
2120

@@ -772,8 +771,6 @@ traits. Chapter 19 covers more complex scenarios involving lifetime annotations
772771
as well as some advanced type system features. But next, you’ll learn how to
773772
write tests in Rust so you can make sure your code is working the way it should.
774773

775-
[advanced-lifetimes]:
776-
ch19-02-advanced-lifetimes.html#advanced-lifetimes
777774
[references-and-borrowing]:
778775
ch04-02-references-and-borrowing.html#references-and-borrowing
779776
[string-slices-as-parameters]:

src/ch19-00-advanced-features.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ In this chapter, we’ll cover:
1212

1313
* Unsafe Rust: how to opt out of some of Rust’s guarantees and take
1414
responsibility for manually upholding those guarantees
15-
* Advanced lifetimes: syntax for complex lifetime situations
1615
* Advanced traits: associated types, default type parameters, fully qualified
1716
syntax, supertraits, and the newtype pattern in relation to traits
1817
* Advanced types: more about the newtype pattern, type aliases, the never type,

src/ch19-02-advanced-lifetimes.md

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)