Commit bd04f4c
authored
Rollup merge of #86557 - ehuss:update-books, r=ehuss
Update books
## nomicon
10 commits in 55de6fa3c1f331774da19472c9ee57d2ae9eb039..b9ca313e687c991223e23e5520529815dc281205
2021-05-12 00:31:01 +0900 to 2021-06-22 12:02:20 -0400
- The #[repr(C)] attribute on the callback example is not necessary, since the type is not used in C.
- Reorganize some chapters (rust-lang/nomicon#282)
- Mention "extern types" on the opaque structs section (rust-lang/nomicon#273)
- Clarify the conditions on the aliasing section (rust-lang/nomicon#272)
- Upgrade to edition 2018 (rust-lang/nomicon#280)
- Update some wording making reference to issues/RFCs (rust-lang/nomicon#271)
- Some improvements on the "subtyping" chapter (rust-lang/nomicon#278)
- Clarify casting between the same size fixed ints (rust-lang/nomicon#277)
- Add a link to show why unused lifetimes on structs are forbidden (rust-lang/nomicon#276)
- Fix small typo in the Drop Check chapter (rust-lang/nomicon#275)
## reference
8 commits in 8f598e2af6c25b4a7ee88ef6a8196d9b8ea50ca8..d9699fa8f3186440fdaadd703d63d8d42322c176
2021-06-01 19:00:46 +0100 to 2021-06-21 12:23:10 -0700
- Make explicit reference to scrutinee expression in grammar snippet (rust-lang/reference#1044)
- Document sub-namespaces. (rust-lang/reference#1043)
- Default all examples to 2018 edition. (rust-lang/reference#1041)
- Minor update to macros. (rust-lang/reference#1048)
- (rust-lang/reference#1049)
- Add a note why the same size int casting is a no-op (rust-lang/reference#1046)
- Add notes on `#[target_feature]` for wasm (rust-lang/reference#1047)
- Make statement about variable visibility more precise (rust-lang/reference#1045)
## rustc-dev-guide
8 commits in c8da5bf..fe34bed
2021-06-04 09:08:56 +0200 to 2021-06-21 21:50:12 +0200
- Update "Inference variables" section (rust-lang/rustc-dev-guide#1145)
- Document how to run unit tests (rust-lang/rustc-dev-guide#1141)
- We stopped using allow_internal_unstable a while ago (rust-lang/rustc-dev-guide#1142)
- Change the feature used as an example of stabilizing lib features (rust-lang/rustc-dev-guide#1143)
- We use HIR to do type inference, trait solving and type checking (rust-lang/rustc-dev-guide#1139)
- Add suggested settings note for coc (rust-lang/rustc-dev-guide#1144)
- move 7/8 to prose
- Add a section on keeping things up to date in the git section
## edition-guide
2 commits in 302a115e8f71876dfc884aebb0ca5ccb02b8a962..c74b2a0d6bf55774cf15d69f05dfe05408b8f81a
2021-05-21 10:46:11 -0400 to 2021-06-14 10:48:27 -0700
- Fix lies. (rust-lang/edition-guide#244)
- Add short summaries to all 2021 edition changes. (rust-lang/edition-guide#243)
## embedded-book
1 commits in 7349d173fa28a0bb834cf0264a05286620ef0923..cbec77fbd8eea0c13e390dd9eded1ae200e811d1
2021-05-25 13:59:05 +0000 to 2021-06-10 06:26:32 +0000
- Fix punctuation in c-with-rust.md (rust-embedded/book#294)File tree
5 files changed
+5
-5
lines changed- src/doc
5 files changed
+5
-5
lines changedSubmodule edition-guide updated 8 files
- src/rust-2021/IntoIterator-for-arrays.md+6-1
- src/rust-2021/default-cargo-resolver.md+3-1
- src/rust-2021/disjoint-capture-in-closures.md+3
- src/rust-2021/or-patterns-macro-rules.md+4
- src/rust-2021/panic-macro-consistency.md+6-2
- src/rust-2021/prelude.md+3
- src/rust-2021/reserving-syntax.md+6-1
- src/rust-2021/warnings-promoted-to-error.md+3-1
- README.md+15-5
- book.toml+27
- src/README.md-56
- src/SUMMARY.md+53-53
- src/aliasing.md+7-9
- src/arc-mutex/arc-and-mutex.md+2-2
- src/arc-mutex/arc-base.md+1-1
- src/arc-mutex/arc-clone.md+10-2
- src/arc-mutex/arc-drop.md+8-2
- src/arc-mutex/arc-final.md+1
- src/arc-mutex/arc-layout.md+4-1
- src/arc-mutex/arc.md+1-1
- src/atomics.md+8-30
- src/beneath-std.md+4-4
- src/casts.md+18-17
- src/coercions.md+9-9
- src/conversions.md-1
- src/dropck.md+4-4
- src/exception-safety.md-8
- src/exotic-sizes.md+7-24
- src/ffi.md+22-19
- src/intro.md+32
- src/leaking.md-8
- src/lifetime-mismatch.md+3-6
- src/lifetimes.md+7-15
- src/other-reprs.md+9-25
- src/ownership.md-1
- src/panic-handler.md+1-1
- src/phantom-data.md+8-6
- src/subtyping.md+14-14
- src/transmutes.md+3-4
- src/unbounded-lifetimes.md-1
- src/unchecked-uninit.md+8-5
- src/vec/vec-alloc.md+6-6
- src/vec/vec-dealloc.md
- src/vec/vec-deref.md
- src/vec/vec-drain.md+1-1
- src/vec/vec-final.md
- src/vec/vec-insert-remove.md
- src/vec/vec-into-iter.md-1
- src/vec/vec-layout.md+2-2
- src/vec/vec-push-pop.md
- src/vec/vec-raw.md
- src/vec/vec-zsts.md-6
- src/vec/vec.md
- src/what-unsafe-does.md+16-16
- src/working-with-unsafe.md-1
- book.toml+4-1
- src/attributes/codegen.md+15-1
- src/expressions/block-expr.md+1-1
- src/expressions/if-expr.md+2-1
- src/expressions/loop-expr.md+3-1
- src/expressions/match-expr.md+4-1
- src/expressions/operator-expr.md+2
- src/introduction.md+2
- src/items/functions.md+4-4
- src/items/traits.md+3-2
- src/items/type-aliases.md+1-1
- src/items/use-declarations.md+1-1
- src/macros.md+3-2
- src/names/namespaces.md+16
- src/paths.md+12-2
- src/statements.md+2-1
- src/trait-bounds.md+1-1
- src/visibility-and-privacy.md+2-2
0 commit comments