Daniel Franklin
8551afbb2c
Add example of thinking about Send/Sync's soundness ( #259 )
...
Co-authored-by: Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
4 years ago
Yuki Okushi
6fe476943a
Merge pull request #257 from skade/opaque-types-fix
4 years ago
Florian Gilcher
90811705ca
Fix opaque type representation.
...
Co-authored-by: Nikolai Vazquez <github@nikolaivazquez.com>
4 years ago
Yuki Okushi
adca786547
Merge pull request #254 from mdaverde/ml/adds-compiler-err-lifetimes
4 years ago
Eric Huss
bbf06ad39d
Merge pull request #255 from cherryblossom000/patch-1
...
Fix alloc link in exotic-sizes for local docs
4 years ago
cherryblossom000
7278a42dd5
Fix alloc link in exotic-sizes for local docs
...
This changes `https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html#tymethod.alloc ` to `../std/alloc/trait.GlobalAlloc.html#tymethod.alloc` so that it uses the local docs installation if the page is viewed with the local docs.
4 years ago
Milan
856595872a
Adds compile error for example in improperly reduced borrows
4 years ago
Milan
cba5941207
Changes wording under improperly reduced borrows
4 years ago
ThePuzzlemaker
1713e9fe80
Remove TODO
4 years ago
James [Undefined]
6b6c0a6bf1
Fix small punctuation error
...
Co-authored-by: Alexis Beingessner <a.beingessner@gmail.com>
4 years ago
ThePuzzlemaker
c2919c685f
Arc revisions (Clone atomic explanation) (pt2/3(+?))
4 years ago
ThePuzzlemaker
e16ed7f336
Fix Arc Clone
4 years ago
ThePuzzlemaker
57fd6cf32b
Arc revisions (pt1/2(+?))
4 years ago
ThePuzzlemaker
9da6fbf6cd
Simple Arc implementation (without Weak refs)
...
This is a squash of the following commits:
- Fix code, remove WIP message as that was while writing this, and link to stable @ fixed 1.49 rather than latest nightly
- Improve wording on deref and ignore some code blocks
- Improve wording and formatting a bit cause I'm insane
- Fix links
- Fix links again because we all love relative links
- Remove unnecessary Drop import
- Use Box::from_raw instead of ptr::drop_in_place as that actually dealloc's the Box (i'm dumb and misinterpreted the std code :/); fix some desync between code in between sections
- Fix tests
4 years ago
Lukas Hettwer
a8584998ea
Update vector code examples
...
The code samples were different from the final code and included
deprecated API calls.
4 years ago
Yuki Okushi
a3180eb461
Remove outdated information about `jemalloc`
4 years ago
Yuki Okushi
a5a48441d4
Merge pull request #249 from jflatow/patch-1
...
Update atomics.md
4 years ago
Eric Huss
79e60b572a
Merge pull request #248 from JohnTitor/allocator
...
Rename `AllocRef` to `Allocator` and `(de)alloc` to `(de)allocate`
4 years ago
Jared Flatow
bdb189862a
Update atomics.md
4 years ago
Yuki Okushi
3fd89d64e7
Rename `AllocRef` to `Allocator` and `(de)alloc` to `(de)allocate`
4 years ago
unknown
d8383b65f7
Clarify that any alignment is valid for ZSTs
4 years ago
Yuki Okushi
23c49f1d5c
Merge pull request #238 from mexus/master
4 years ago
Yuki Okushi
cb88439ac9
Update src/coercions.md
4 years ago
Eric Huss
ea054bb935
Merge pull request #244 from JohnTitor/some-tweaks
...
Some tweaks
4 years ago
Yuki Okushi
9e9ee0a822
Merge pull request #245 from camelid/uppercase-repr-rust
4 years ago
Camelid
038a7e6238
Uppercase `repr(Rust)`
...
There were two spots where it referred to `repr(rust)` when it is
usually referred to as `repr(Rust)` in accordance with `repr(C)`.
I updated those to use the uppercase form.
4 years ago
Yuki Okushi
e948943445
Remove unnecessary chapter
4 years ago
Yuki Okushi
a0d9dbdef3
Git-ignore linkcheck stuff
4 years ago
Yuki Okushi
ee0d4be726
Replace hard tabs with whitespaces
4 years ago
Yuki Okushi
0cfd181886
Merge pull request #224 from updogliu/patch-1
...
Update atomics.md
4 years ago
Yuki Okushi
8d3237ffd4
Merge pull request #187 from ChrisGreenaway/patch-2
...
Update send-and-sync.md
4 years ago
Yuki Okushi
45b640d76a
Merge pull request #231 from lwintermelon/patch-1
...
fix a typo
4 years ago
Yuki Okushi
d7c2815252
Merge pull request #242 from camelid/improve-transmutes
...
Improve formatting of "Transmutes" chapter
4 years ago
Camelid
ebe16b1455
Improve formatting of "Transmutes" chapter
...
* Use inline code style for `&` and `&mut`
* Add blank lines between list items to make source easier to read
* Use new-style mdBook link
4 years ago
Yuki Okushi
8627458725
Merge pull request #241 from simon-lammes/patch-1
4 years ago
Simon Lammes
52b55e0db0
fix minor grammar mistake
4 years ago
Eric Huss
69333eddb1
Merge pull request #240 from JohnTitor/gha
...
Tweak GHA config
4 years ago
Yuki Okushi
e574ee0e4a
Use `actions/checkout@v2`
...
Note that the repository's default branch is now `main`, not `master`.
And this should be safer to avoid breaking change.
4 years ago
Yuki Okushi
5af1ba0fd2
Replace deprecated `add-path` with safe way
4 years ago
Yuki Okushi
c69ca68573
Set mdbook version as env var
4 years ago
Eric Huss
9addcf796d
Merge pull request #239 from JohnTitor/fix-intra-links
...
Fix link for `[T]`
4 years ago
Yuki Okushi
f8b9921a77
Fix link for `[T]`
4 years ago
Yuki Okushi
c2ffc216d5
Merge pull request #232 from turtleslow/saturating-cast-patch-1
...
Update casts.md
4 years ago
Yuki Okushi
8641e70955
Merge pull request #180 from jyn514/master
...
[WIP] Add more links
4 years ago
Yuki Okushi
737029d362
Merge pull request #219 from isakcodes/patch-1
...
Data Race definition should be more precise
4 years ago
Yuki Okushi
d7cb40b29f
Merge pull request #157 from chansuke/update-error-diagnostic
...
Update the diagnostic of `error[E0597]` in dropck.md
4 years ago
Yuki Okushi
9c912bf812
Merge pull request #225 from mxxo/typo
...
fix typo in Lifetimes mutable reference aliasing section
4 years ago
mexus
393e54b749
coercions.md: non-capturing closures to function pointers
4 years ago
Mark Rousskov
6e57e64501
Merge pull request #236 from ehuss/fix-layout-grow
...
Fix API change to alloc::Global::grow.
4 years ago
Eric Huss
ee45186b37
Fix API change to alloc::Global::grow.
4 years ago