pwbh
533a64af08
Merge 0d116cfab0
into 8b61acfaea
2 weeks ago
Yuki Okushi
8b61acfaea
Merge pull request #492 from senekor/senekor-oupvrwkspumq
...
Use inline const expression in unchecked-uninit.md
1 month ago
Yuki Okushi
0a000d437f
Merge pull request #491 from senekor/senekor-qslukqomvpom
...
Fix code sample output in unchecked-uninit.md
1 month ago
Yuki Okushi
dd31c8d397
Merge pull request #493 from senekor/senekor-rrqpxsznswmt
...
Use consistent type parameters in subtyping.md
1 month ago
Eric Huss
85fe8925db
Merge pull request #494 from senekor/patch-1
...
Fix typo in atomics.md
1 month ago
Remo Senekowitsch
f883193311
Fix typo in atomics.md
1 month ago
Remo Senekowitsch
b4c85a9d36
Use consistent type parameters in subtyping.md
...
There is no type parameter `T` in this context, so no reason to use `U`
instead of `T` for disambiguation.
1 month ago
Remo Senekowitsch
6f01103dbe
Use inline const expression in unchecked-uninit.md
...
Inline const expressions were stabilized in Rust 1.79. They allow us to
avoid the unsafe call to MaybeUninit::assume_init() and its explanation.
https://blog.rust-lang.org/2024/06/13/Rust-1.79.0/#inline-const-expressions
1 month ago
Remo Senekowitsch
0733990409
Fix code sample output in unchecked-uninit.md
...
`dbg!()` prints to stderr, which I assume is the reason there is no
visible output when running the example in the book. By using
`println!()` instead, the output becomes visible.
1 month ago
Travis Cross
c76a20f0d9
Merge pull request #467 from mattheww/2024-10_zst_nullptr
...
Say that dereferencing a pointer to a ZST is no longer undefined
2 months ago
Eric Huss
0c10c30cc5
Merge pull request #487 from junlarsen/jun/fix-double-wording
...
Remove double wording in opaque type chapter
3 months ago
Mats Jun Larsen
891932e3da
Remove double wording in opaque type chapter
...
Fixes up some word soup I came across reading the chapter.
3 months ago
Eric Huss
5eb3cbdce3
Merge pull request #485 from Skgland/master
...
remove `rust-intrinsic` ABI
3 months ago
Bennet Bleßmann
57bbc12176
remove `rust-intrinsic` ABI
3 months ago
pwbh
0d116cfab0
Merge branch 'master' into handle-drop-zst
3 months ago
Yuki Okushi
b4448fa406
Merge pull request #481 from printfn/2024-edition
...
Update to 2024 edition
4 months ago
printfn
60ed8f3bb9
Update to 2024 edition
4 months ago
Eric Huss
8f5c7322b6
Merge pull request #461 from RalfJung/repr-int-enum-abi
...
other-reprs: do not make it sound like we are making ABI promises for repr(int) enums
4 months ago
Yuki Okushi
336f75835a
Merge pull request #452 from pczarn/patch-1
...
Improve grammar in exotic-sizes
5 months ago
Peter Blackson
7f59f3ffb3
Improve grammar in exotic-sizes
5 months ago
Yuki Okushi
1f3f7c4884
Merge pull request #460 from luqmana/repr-packed-n
...
other-reprs: Add details for n!=1 repr(packed)
5 months ago
Yuki Okushi
75eb897f1b
Merge pull request #456 from thinety/unit-in-opaque-type
...
Use `()` instead of `[u8; 0]` in opaque type
5 months ago
Thiago Trannin
38f5394280
Use `()` instead of `[u8; 0]` in opaque type
5 months ago
Eric Huss
bc22988655
Merge pull request #477 from wickedjargon/master
...
corrected grammatical error.
5 months ago
Freddie
23cbc7d579
corrected grammatical error.
5 months ago
Eric Huss
e031105510
Merge pull request #478 from ehuss/fix-start
...
Remove `#![start]` attribute
5 months ago
Eric Huss
3253190a90
Apply suggestion from RalfJung
...
Co-authored-by: Ralf Jung <post@ralfj.de>
5 months ago
Eric Huss
3de1d4efa4
Remove `#![start]` attribute
...
The `#![start]` attribute has been removed in
https://github.com/rust-lang/rust/pull/134299 .
5 months ago
Eric Huss
d2c1d5cf8a
Merge pull request #476 from nikthechampiongr/raw_ref
...
Update guidance on uninitialized fields to use &raw mut instead of addr_of_mut!
5 months ago
nikthechampiongr
470f2bfa52
Update guidance on uninitialized fields to use &raw mut instead of addr_of_mut!
5 months ago
Eric Huss
625b200e5b
Merge pull request #474 from max-heller/patch-1
...
Fix accidental inline HTML in Markdown
6 months ago
Max Heller
0aae1972ff
Fix accidental inline HTML
6 months ago
Yuki Okushi
7ef05b9777
Merge pull request #472 from josephcsible/patch-1
...
Fix URL fragment to MutexGuard's negative impl of Send
6 months ago
Joseph C. Sible
da27ec1906
Fix URL fragment to MutexGuard's negative impl of Send
6 months ago
Yuki Okushi
97e84a38c9
Merge pull request #470 from Enselic/fix-race
...
races.md: data race -> race condition to violate memory safety
7 months ago
Martin Nordholts
6855d3a7e1
races.md: data race -> race condition to violate memory safety
...
The first example shows that you "can't violate memory safety with safe
Rust" and the second example shows that you "can violate memory safety
with unsafe Rust".
The second example does not demonstrate a data race since there is only
one thread touching `data`.
7 months ago
pwbh
94951ed338
Update src/vec/vec-zsts.md
...
Co-authored-by: Jon Bauman <baumanj@users.noreply.github.com>
7 months ago
pwbh
18c8a83f95
Merge branch 'master' into handle-drop-zst
7 months ago
Yuki Okushi
0674321898
Merge pull request #468 from andersk/races-mostly
...
races: Clarify a “mostly” that might be misread
7 months ago
Eric Huss
eac89a3cbe
Merge pull request #469 from timmc/patch-1
...
Fix typo in what-unsafe-does
7 months ago
Tim McCormack
91a7128bb3
Fix typo in what-unsafe-does
7 months ago
pwbh
510aeeb1a3
Merge branch 'master' into handle-drop-zst
8 months ago
Anders Kaseorg
bb6b27ad1d
races: Clarify a “mostly” that might be misread
...
One might carelessly misread a sentence that begins “data races
are *mostly* prevented” as suggesting that Rust fails to prevent some
data races. Clarify the intended reading.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
8 months ago
Matthew Woodcraft
db1fac783b
Zero Sized Types: stop saying that "dereferencing" a non-ZST is UB
...
From discussion at
https://rust-lang.zulipchat.com/#narrow/channel/136281-t-opsem/topic/What.20operations.20are.20allowed.20on.20ZST.20null.20pointers.3F
- applying the dereference operator to a null pointer stopped being UB
a few months ago
- it's better to be explicit about whether we're talking about loads
and stores or about applying the dereference operator
I think we don't need to mention field projections here.
8 months ago
Matthew Woodcraft
2d896fa29e
Say that dereferencing a pointer to a ZST is no longer undefined
...
The new rules were tracked in
https://github.com/rust-lang/rust/issues/117945
The corresponding update to the Reference was
https://github.com/rust-lang/reference/pull/1541
9 months ago
Eric Huss
456b904f79
Merge pull request #465 from gurry/patch-2
...
Improve/fix description of drops
9 months ago
Gurinder Singh
f2ea02892a
Improve/fix description of drops
9 months ago
Luqman Aden
6120f45d99
Add details for n!=1 repr(packed)
9 months ago
Ralf Jung
33dd3a5fa4
other-reprs: do not make it sound like we are making ABI promises for repr(int) enums
10 months ago
Eric Huss
14649f15d2
Merge pull request #459 from ehuss/merge-queue
...
CI: Switch to merge queue
11 months ago