CLM-0001
The repository contains the source of "The Rust Programming Language" book.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/README.md 1 verified Re-check this claim
CLM-0002
The README points readers to the book as shipped with the stable, beta, or nightly Rust releases.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/README.md 1 verified Re-check this claim
CLM-0003
The README warns that issues in the shipped versions may already be fixed in the repository, because the releases are updated less frequently.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/README.md 1 verified Re-check this claim
CLM-0004
Between larger revisions that coincide with Rust Editions, the maintainers only correct errors.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/CONTRIBUTING.md 1 verified Re-check this claim
CLM-0005
The nostarch/frontmatter.md preface assumes Rust 1.85.0 (released 2025-02-17) or later.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/frontmatter.md 1 verified Re-check this claim
CLM-0006
The nostarch/frontmatter.md preface assumes edition = "2024" in each project's Cargo.toml.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/frontmatter.md 1 verified Re-check this claim
CLM-0007
Appendix E says four editions are available: 2015, 2018, 2021, and 2024.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/appendix-05-editions.md 1 verified Re-check this claim
CLM-0008
Appendix E says the book is written with Rust 2024 idioms.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/appendix-05-editions.md 1 verified Re-check this claim
CLM-0009
The edition key in Cargo.toml tells the compiler which edition to use.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/appendix-05-editions.md 1 verified Re-check this claim
CLM-0010
If the edition key is missing, Rust uses 2015 for backward compatibility.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/appendix-05-editions.md 1 verified Re-check this claim
CLM-0011
A new edition is produced every three years or so.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/appendix-05-editions.md 1 verified Re-check this claim
CLM-0012
Editions ship as part of the usual six-week release process.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/appendix-05-editions.md 1 verified Re-check this claim
CLM-0013
Editions can contain incompatible changes.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/appendix.md 1 verified Re-check this claim
CLM-0014
Code keeps compiling as you upgrade the compiler unless you opt in to a new edition.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/appendix.md 1 verified Re-check this claim
CLM-0015
nostarch/preface.md still says Rust 1.62.0 and edition="2021".https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/preface.md 1 verified Re-check this claim
CLM-0016
nostarch/introduction.md lists Chapters 2, 12, and 20 as project chapters.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/introduction.md 1 verified Re-check this claim
CLM-0017
The nostarch/frontmatter.md text lists Chapters 2, 12, and 21 as project chapters.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/frontmatter.md 1 verified Re-check this claim
CLM-0018
The src introduction places the multithreaded web server project in Chapter 21.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch00-00-introduction.md 1 verified Re-check this claim
CLM-0019
The 2024-edition preface says a new Chapter 17 introduces async programming, including async, await, Future, and Stream.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/frontmatter.md 1 verified Re-check this claim
CLM-0020
The 2024-edition preface says Chapter 20 now includes an introduction to Miri.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/frontmatter.md 1 verified Re-check this claim
CLM-0021
Rust has three release channels: Nightly, Beta, and Stable.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/appendix-07-nightly-rust.md 1 verified Re-check this claim
CLM-0022
A new release is prepared every six weeks, when the beta branch branches off the main branch used by nightly.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/appendix-07-nightly-rust.md 1 verified Re-check this claim
CLM-0023
Six weeks after the beta branch is created, the stable branch is produced from beta.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/appendix-07-nightly-rust.md 1 verified Re-check this claim
CLM-0024
The Rust project supports only the most recent stable version, so each version is supported for six weeks.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/appendix-07-nightly-rust.md 1 verified Re-check this claim
CLM-0025
Unstable features sit behind feature flags.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/appendix-07-nightly-rust.md 1 verified Re-check this claim
CLM-0026
Only nightly can use feature flags, and beta and stable cannot use feature flags.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/appendix-07-nightly-rust.md 1 verified Re-check this claim
CLM-0027
Rust is statically typed: it must know the types of all variables at compile time.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch03-02-data-types.md 1 verified Re-check this claim
CLM-0028
When many types are possible, as with parse, a type annotation is required.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch03-02-data-types.md 1 verified Re-check this claim
CLM-0029
Function parameters must have their types declared.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch03-03-how-functions-work.md 1 verified Re-check this claim
CLM-0030
Rust has four primary scalar types: integers, floating-point numbers, Booleans, and characters.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch03-02-data-types.md 1 verified Re-check this claim
CLM-0031
Within an impl block, Self is an alias for the type the block is for.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch05-03-method-syntax.md 1 verified Re-check this claim
CLM-0032
Within an impl block, &self is short for self: &Self.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch05-03-method-syntax.md 1 verified Re-check this claim
CLM-0033
Methods can take ownership of self, borrow it immutably, or borrow it mutably.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch05-03-method-syntax.md 1 verified Re-check this claim
CLM-0034
A method can share a name with a struct field.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/chapter05.md 1 verified Re-check this claim
CLM-0035
Parentheses distinguish a method call from a field access when they share a name.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/chapter05.md 1 verified Re-check this claim
CLM-0036
match is exhaustive: the arms must cover every possibility, or the code won't compile.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch06-02-match.md 1 verified Re-check this claim
CLM-0037
Rust doesn't have null.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/chapter06.md 1 verified Re-check this claim
CLM-0038
The Option type, defined in the standard library, encodes a value that may be something or nothing.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/chapter06.md 1 verified Re-check this claim
CLM-0039
The core language has one string type, the string slice str, usually seen as &str.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/chapter08.md 1 verified Re-check this claim
CLM-0040
String is provided by the standard library and is a growable, mutable, owned, UTF-8 encoded string type.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/chapter08.md 1 verified Re-check this claim
CLM-0041
A String is a wrapper over a Vec<u8>.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch08-02-strings.md 1 verified Re-check this claim
CLM-0042
Indexing into a String with index syntax produces an error.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch08-02-strings.md 1 verified Re-check this claim
CLM-0043
A slice of an array such as &a[1..3] has the type &[i32].https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch04-03-slices.md 1 verified Re-check this claim
CLM-0044
A slice stores a reference to the first element and a length.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch04-03-slices.md 1 verified Re-check this claim
CLM-0045
Every reference has a lifetime, which is the scope for which the reference is valid.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch10-03-lifetime-syntax.md 1 verified Re-check this claim
CLM-0046
Lifetimes are usually inferred, but must be annotated when the relationships between references could vary.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch10-03-lifetime-syntax.md 1 verified Re-check this claim
CLM-0047
The main aim of lifetimes is to prevent dangling references.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch10-03-lifetime-syntax.md 1 verified Re-check this claim
CLM-0048
The cons list enum in Listing 15-2 doesn't compile because List has no known size.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch15-01-box.md 1 verified Re-check this claim
CLM-0049
The chapter uses the cons list enum to show how boxes let you define a recursive type.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch15-01-box.md 1 verified Re-check this claim
CLM-0050
The standard library uses a 1:1 thread model: one operating system thread per language thread.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/chapter16.md 1 verified Re-check this claim
CLM-0051
Send and Sync are std::marker traits embedded in the language rather than the standard library.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch16-04-extensible-concurrency-sync-and-send.md 1 verified Re-check this claim
CLM-0052
Rc<T> cannot implement Send, because two threads might update its reference count at the same time.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch16-04-extensible-concurrency-sync-and-send.md 1 verified Re-check this claim
CLM-0053
Arc<T> implements Send.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch16-04-extensible-concurrency-sync-and-send.md 1 verified Re-check this claim
CLM-0054
Mutex<T> provides interior mutability and carries the risk of deadlocks.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/chapter16.md 1 verified Re-check this claim
CLM-0055
Each await point hands control back to the runtime.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch17-01-futures-and-syntax.md 1 verified Re-check this claim
CLM-0056
The compiler generates an invisible state machine to track state across await points.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch17-01-futures-and-syntax.md 1 verified Re-check this claim
CLM-0057
An executor is the part of a runtime responsible for executing async code.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch17-01-futures-and-syntax.md 1 verified Re-check this claim
CLM-0058
trpl::yield_now hands control back to the runtime without sleeping.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch17-03-more-futures.md 1 verified Re-check this claim
CLM-0059
trpl::yield_now can be faster than sleep, because the sleep version used in the book always sleeps for at least a millisecond.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch17-03-more-futures.md 1 verified Re-check this claim
CLM-0060
Async is a form of cooperative multitasking, and each future is responsible for not blocking for too long.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch17-03-more-futures.md 1 verified Re-check this claim
CLM-0061
When you wrap a pointer to a value in Pin, the value can no longer move.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch17-05-traits-for-async.md 1 verified Re-check this claim
CLM-0062
With Pin<Box<SomeType>>, the SomeType value is pinned, not the Box, and the Box can still move freely.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch17-05-traits-for-async.md 1 verified Re-check this claim
CLM-0063
StreamExt is automatically implemented for every type that implements Stream, so a custom streaming type only needs to implement Stream.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch17-05-traits-for-async.md 1 verified Re-check this claim
CLM-0064
In the trpl crate's version of StreamExt, next has a default implementation that handles calling Stream::poll_next.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch17-05-traits-for-async.md 1 verified Re-check this claim
CLM-0065
The next signature shown in the book (fn next(&mut self) -> Next<'_, Self> where Self: Unpin;) supports versions of Rust that did not yet support async functions in traits.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch17-05-traits-for-async.md 1 verified Re-check this claim
CLM-0066
Functions in extern blocks are generally unsafe to call, so the blocks must be marked unsafe.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch20-01-unsafe-rust.md 1 verified Re-check this claim
CLM-0067
Items inside an unsafe extern block are implicitly unsafe.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch20-01-unsafe-rust.md 1 verified Re-check this claim
CLM-0068
The safe keyword can mark a specific function in an unsafe extern block as safe to call, but this is a promise by the programmer and does not make the function safe.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch20-01-unsafe-rust.md 1 verified Re-check this claim
CLM-0069
To expose a Rust function to other languages, add extern with an ABI before fn and use #[unsafe(no_mangle)].https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch20-01-unsafe-rust.md 1 verified Re-check this claim
CLM-0070
Exposing a Rust function to other languages needs unsafe only in the attribute, not on an extern block.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch20-01-unsafe-rust.md 1 verified Re-check this claim
CLM-0071
Global variables are called static variables.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/chapter20.md 1 verified Re-check this claim
CLM-0072
An old redirect page still shows extern "C" { ... } without unsafe and points to the current chapter for the latest version.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/redirects/ffi.md 1 verified Re-check this claim
CLM-0073
A failing test is one whose function panics.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/chapter11.md 0.9 verified Re-check this claim
CLM-0074
Each test runs in a new thread, and the test is marked failed when the main thread sees the test thread die.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/chapter11.md 1 verified Re-check this claim
CLM-0075
cargo test in a workspace runs the tests for all crates in the workspace.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch14-03-cargo-workspaces.md 1 verified Re-check this claim
CLM-0076
Cargo makes every workspace crate that uses rand use the same version, as long as they specify compatible versions.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/src/ch14-03-cargo-workspaces.md 1 verified Re-check this claim
CLM-0077
Appendix D recommends rust-analyzer for IDE integration.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/appendix_d.md 1 verified Re-check this claim
CLM-0078
Appendix D gives Clippy as an example lint tool.https://github.com/rust-lang/book/blob/9be09363472786e3252f7c8419c6a5d972194a12/nostarch/appendix_d.md 1 verified Re-check this claim