Skip to content

Remove obsolete improperly reduced borrows example - #526

Merged
JohnTitor merged 1 commit into
rust-lang:masterfrom
yuzibo:drop-obsolete-section
Aug 17, 2026
Merged

Remove obsolete improperly reduced borrows example#526
JohnTitor merged 1 commit into
rust-lang:masterfrom
yuzibo:drop-obsolete-section

Conversation

@yuzibo

@yuzibo yuzibo commented Aug 17, 2026

Copy link
Copy Markdown

The compiler now accepts the HashMap example, causing its compile_fail doctest to fail. Remove the section because the lifetime limitation it described no longer applies.

Fixes #525

The compiler now accepts the HashMap example, causing its compile_fail
doctest to fail. Remove the section because the lifetime limitation it
described no longer applies.

Fixes rust-lang#525
@yuzibo

yuzibo commented Aug 17, 2026

Copy link
Copy Markdown
Author

Testing it by running rustup run nightly mdbook test

@JohnTitor JohnTitor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@JohnTitor
JohnTitor added this pull request to the merge queue Aug 17, 2026
Merged via the queue into rust-lang:master with commit 5791ca9 Aug 17, 2026
2 checks passed
jhpratt added a commit to jhpratt/rust that referenced this pull request Aug 19, 2026
Update books

## rust-lang/edition-guide

2 commits in 5a14f7276ebc0bd100974f02b918f30472c782fc..f5abcf137698e5ad6ebed359d69654ff705346af
2026-08-18 19:42:43 UTC to 2026-08-11 17:44:56 UTC

- ignore tests which will be broken by never type stabilization (rust-lang/edition-guide#383)
- Allow override inherited default-features (rust-lang/edition-guide#387)

## rust-lang/nomicon

1 commits in 5012a37c682b26c4e19433888ed2ca9b129696ca..5791ca9f5d671328af7a8fe87b42ca90c7211d28
2026-08-17 09:48:34 UTC to 2026-08-17 09:48:34 UTC

- Remove obsolete improperly reduced borrows example (rust-lang/nomicon#526)

## rust-lang/reference

6 commits in 82da570bafd9efed421bdbae0f8603ede8dd308b..eda708334abad285d63bc1f3558a51e8b790346e
2026-08-18 19:47:06 UTC to 2026-08-11 17:18:06 UTC

- Revert "Document RISC-V d, e, and f extensions" (rust-lang/reference#2329)
- Bump railroad-dependency; themed syntax diagrams (rust-lang/reference#2328)
- document naked c-variadic functions (rust-lang/reference#2321)
- Add `extern "custom"` (rust-lang/reference#2300)
- Empty repr(Rust) enums are ZSTs (rust-lang/reference#2293)
- aliasing rule summary: use a bulleted list (rust-lang/reference#2322)
jhpratt added a commit to jhpratt/rust that referenced this pull request Aug 19, 2026
Update books

## rust-lang/edition-guide

2 commits in 5a14f7276ebc0bd100974f02b918f30472c782fc..f5abcf137698e5ad6ebed359d69654ff705346af
2026-08-18 19:42:43 UTC to 2026-08-11 17:44:56 UTC

- ignore tests which will be broken by never type stabilization (rust-lang/edition-guide#383)
- Allow override inherited default-features (rust-lang/edition-guide#387)

## rust-lang/nomicon

1 commits in 5012a37c682b26c4e19433888ed2ca9b129696ca..5791ca9f5d671328af7a8fe87b42ca90c7211d28
2026-08-17 09:48:34 UTC to 2026-08-17 09:48:34 UTC

- Remove obsolete improperly reduced borrows example (rust-lang/nomicon#526)

## rust-lang/reference

6 commits in 82da570bafd9efed421bdbae0f8603ede8dd308b..eda708334abad285d63bc1f3558a51e8b790346e
2026-08-18 19:47:06 UTC to 2026-08-11 17:18:06 UTC

- Revert "Document RISC-V d, e, and f extensions" (rust-lang/reference#2329)
- Bump railroad-dependency; themed syntax diagrams (rust-lang/reference#2328)
- document naked c-variadic functions (rust-lang/reference#2321)
- Add `extern "custom"` (rust-lang/reference#2300)
- Empty repr(Rust) enums are ZSTs (rust-lang/reference#2293)
- aliasing rule summary: use a bulleted list (rust-lang/reference#2322)
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Aug 19, 2026
Rollup merge of #161321 - rustbot:docs-update, r=traviscross

Update books

## rust-lang/edition-guide

2 commits in 5a14f7276ebc0bd100974f02b918f30472c782fc..f5abcf137698e5ad6ebed359d69654ff705346af
2026-08-18 19:42:43 UTC to 2026-08-11 17:44:56 UTC

- ignore tests which will be broken by never type stabilization (rust-lang/edition-guide#383)
- Allow override inherited default-features (rust-lang/edition-guide#387)

## rust-lang/nomicon

1 commits in 5012a37c682b26c4e19433888ed2ca9b129696ca..5791ca9f5d671328af7a8fe87b42ca90c7211d28
2026-08-17 09:48:34 UTC to 2026-08-17 09:48:34 UTC

- Remove obsolete improperly reduced borrows example (rust-lang/nomicon#526)

## rust-lang/reference

6 commits in 82da570bafd9efed421bdbae0f8603ede8dd308b..eda708334abad285d63bc1f3558a51e8b790346e
2026-08-18 19:47:06 UTC to 2026-08-11 17:18:06 UTC

- Revert "Document RISC-V d, e, and f extensions" (rust-lang/reference#2329)
- Bump railroad-dependency; themed syntax diagrams (rust-lang/reference#2328)
- document naked c-variadic functions (rust-lang/reference#2321)
- Add `extern "custom"` (rust-lang/reference#2300)
- Empty repr(Rust) enums are ZSTs (rust-lang/reference#2293)
- aliasing rule summary: use a bulleted list (rust-lang/reference#2322)
RalfJung pushed a commit to RalfJung/miri that referenced this pull request Aug 19, 2026
Update books

## rust-lang/edition-guide

2 commits in 5a14f7276ebc0bd100974f02b918f30472c782fc..f5abcf137698e5ad6ebed359d69654ff705346af
2026-08-18 19:42:43 UTC to 2026-08-11 17:44:56 UTC

- ignore tests which will be broken by never type stabilization (rust-lang/edition-guide#383)
- Allow override inherited default-features (rust-lang/edition-guide#387)

## rust-lang/nomicon

1 commits in 5012a37c682b26c4e19433888ed2ca9b129696ca..5791ca9f5d671328af7a8fe87b42ca90c7211d28
2026-08-17 09:48:34 UTC to 2026-08-17 09:48:34 UTC

- Remove obsolete improperly reduced borrows example (rust-lang/nomicon#526)

## rust-lang/reference

6 commits in 82da570bafd9efed421bdbae0f8603ede8dd308b..eda708334abad285d63bc1f3558a51e8b790346e
2026-08-18 19:47:06 UTC to 2026-08-11 17:18:06 UTC

- Revert "Document RISC-V d, e, and f extensions" (rust-lang/reference#2329)
- Bump railroad-dependency; themed syntax diagrams (rust-lang/reference#2328)
- document naked c-variadic functions (rust-lang/reference#2321)
- Add `extern "custom"` (rust-lang/reference#2300)
- Empty repr(Rust) enums are ZSTs (rust-lang/reference#2293)
- aliasing rule summary: use a bulleted list (rust-lang/reference#2322)
pull Bot pushed a commit to asukaminato0721/rust-analyzer that referenced this pull request Aug 20, 2026
Update books

## rust-lang/edition-guide

2 commits in 5a14f7276ebc0bd100974f02b918f30472c782fc..f5abcf137698e5ad6ebed359d69654ff705346af
2026-08-18 19:42:43 UTC to 2026-08-11 17:44:56 UTC

- ignore tests which will be broken by never type stabilization (rust-lang/edition-guide#383)
- Allow override inherited default-features (rust-lang/edition-guide#387)

## rust-lang/nomicon

1 commits in 5012a37c682b26c4e19433888ed2ca9b129696ca..5791ca9f5d671328af7a8fe87b42ca90c7211d28
2026-08-17 09:48:34 UTC to 2026-08-17 09:48:34 UTC

- Remove obsolete improperly reduced borrows example (rust-lang/nomicon#526)

## rust-lang/reference

6 commits in 82da570bafd9efed421bdbae0f8603ede8dd308b..eda708334abad285d63bc1f3558a51e8b790346e
2026-08-18 19:47:06 UTC to 2026-08-11 17:18:06 UTC

- Revert "Document RISC-V d, e, and f extensions" (rust-lang/reference#2329)
- Bump railroad-dependency; themed syntax diagrams (rust-lang/reference#2328)
- document naked c-variadic functions (rust-lang/reference#2321)
- Add `extern "custom"` (rust-lang/reference#2300)
- Empty repr(Rust) enums are ZSTs (rust-lang/reference#2293)
- aliasing rule summary: use a bulleted list (rust-lang/reference#2322)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Improperly reduced borrows” example now compiles, causing its compile_fail doctest to fail

2 participants