Geoffrey Thomas
687556987c
Document ABI changes from `#[repr(u*)] enum`
8 years ago
Steve Klabnik
ec0ddbbaae
Merge pull request #21 from projektir/add_ffi
...
Add FFI chapter from the first edition of TRPL to nomicon
8 years ago
projektir
8acf410db2
Fixing link to Drop trait and catch_unwind; closes rust-lang/rust#42064
8 years ago
projektir
d0f2868141
Adding the FFI chapter from the first edition of TRPL to nomicon rust-lang/rust#42064
8 years ago
Brian Anderson
6fa139b163
Merge pull request #18 from Gankro/master
...
remove spurious ?Sized bound
8 years ago
Alexis Beingessner
f680164a91
remove spurious ?Sized bound
8 years ago
Brian Anderson
1a933af954
Merge pull request #16 from Gankro/master
...
use new Unique/heap APIs
8 years ago
Alexis Beingessner
e9335c82a2
use new Unique/heap APIs
8 years ago
Steve Klabnik
869f90b97e
Merge pull request #14 from portal-chan/patch-1
...
Replace occurrences of `uint` with `usize`
8 years ago
portal
9cc14cd6a4
Replace occurrences of `uint` with `usize`
8 years ago
Steve Klabnik
1524ea4d5f
Merge pull request #12 from rust-lang-nursery/fixes
...
Two fixes
8 years ago
steveklabnik
b5f1f9d75e
Add @aldeka's safe and unsafe Ferris
...
https://github.com/rust-lang/rust/pull/33845 lives!
8 years ago
steveklabnik
12f257bf47
let's ignore generated content
8 years ago
Steve Klabnik
0e31470870
Merge pull request #10 from king6cong/master
...
fix typo
8 years ago
Steve Klabnik
596876816b
Merge pull request #11 from king6cong/reword
...
rewording
8 years ago
king6cong
3abe4910eb
rewording
8 years ago
king6cong
6dd445b8e7
fix typo
8 years ago
Steve Klabnik
616b98444f
Merge pull request #3 from rust-lang-nursery/add-readme
...
Add README.md
8 years ago
steveklabnik
1e2b93f5c9
only do travis on nightly
...
it's the nomicon, duh 👻
8 years ago
steveklabnik
34d3f162a4
add travis.yml
8 years ago
steveklabnik
3d4b55bdd0
Add README.md
8 years ago
Phil Ruffwind
d08fe97d12
Add Gankro's table to nomicon/src/phantom-data.md
...
Original: https://github.com/rust-lang/rust/issues/30069#issuecomment-159928136
Testing confirms that:
- PhantomData<fn() -> T> does not actually enable drop checking.
- PhantomData<fn(T) -> T> is neither variant nor contravariant.
8 years ago
Luxko
c4ef161ed0
Update exception-safety.md
8 years ago
Luxko
c6dd2ea600
Update exception-safety.md
...
Fix variable name typo
8 years ago
Steve Klabnik
7f2e5abd96
Revert "Fix up links"
...
This reverts commit 7f1d1c6d9a7be5e427bace30e740b16b25f25c92.
The original commit was created because mdBook and rustdoc had
different generation algorithms for header links; now with
https://github.com/rust-lang/rust/pull/39966 , the algorithms
are the same. So let's undo this change.
... when I came across this problem, I said "eh, this isn't fun,
but it doesn't take that long." I probably should have just actually
taken the time to fix upstream, given that they were amenable. Oh
well!
8 years ago
Jeff Muizelaar
8e1e112170
Remove obsolete documentation about drop-flags
8 years ago
Steve Klabnik
853058536b
Fix up links
...
mdbook and rustdoc generate links differently, so we need to change all
these links.
8 years ago
Steve Klabnik
0e6c680ebd
Port Nomicon to mdbook
...
1. move everything under a src directory
2. add README.md to the SUMMARY.md
8 years ago
Steve Klabnik
59c90266d3
Re-implement rustbook in terms of mdbook
...
mdbook has a lot of optional dependencies that we don't want, so instead
of using it directly, we re-build rustbook to use mdbook as a library.
For convenience' sake, we keep the same CLI interface as mdbook; the
only difference is that it only accepts build and test subcommands,
rather than the full range.
8 years ago
Andrew Paseltiner
e189962350
Update nomicon to describe `#[may_dangle]`
8 years ago
est31
46f632d85f
drop_in_place is stable now, don't #![feature] it in the nomicon and a test
...
It was stable since Rust 1.8.
8 years ago
Ben Wiederhake
e8afb6db19
Fix some typos in Nomicon
8 years ago
Manish Goregaokar
216456d702
Add more docs for CoerceUnsized and Unsize
8 years ago
Clar Charr
65066f2ca3
Reword 'stupid' and 'crazy' in docs.
8 years ago
Jakob Demler
54bdbfe616
Fixed typo in nomicon
8 years ago
Andrew Paseltiner
638f527655
Remove mention of `unsafe_no_drop_flag` from Reference and Nomicon
8 years ago
Tshepang Lekhonkhobe
a25c06c5ec
doc: add missing pause
8 years ago
Tshepang Lekhonkhobe
1b83e652e3
doc: remove extraneous word
8 years ago
Tshepang Lekhonkhobe
cbcd0b2fc3
doc: remove stray comma
8 years ago
Bastien Dejean
dcb58dbda1
Add missing inline code delimiters around Vec<T>
8 years ago
Andrew Brinker
f3cdced83a
Fixed based on feedback from steveklabnik
8 years ago
Andrew Brinker
bab35d7cdc
Rewrote "How Safe and Unsafe Interact" Nomicon chapter.
...
The previous version of the chapter covered a lot of ground, but was a little
meandering and hard to follow at times. This draft is intended to be clearer
and more direct, while still providing the same information as the previous
version.
8 years ago
Oliver Middleton
43185c0b2e
Fix a few links in the book
...
Links to directories and direct links to doc.rust-lang.org don't work properly
when viewing the docs offline so fix them.
8 years ago
Brian Green
26e938ce1b
doc: Fix tiny typo in vec-alloc.md
...
Change `fast an loose` to `fast and loose`.
8 years ago
c4rlo
712ba3c8ec
subtyping.md: typo fix
8 years ago
Ariel Ben-Yehuda
99a8183fdb
improve error message
8 years ago
Ariel Ben-Yehuda
e2862658d2
suggest adding a where-clause when that can help
...
suggest adding a where-clause when there is an unmet trait-bound that
can be satisfied if some type can implement it.
8 years ago
Matt Brubeck
a35ea15442
Update Rust version in the Rustonomicon Vec chapter
...
I verified that the final code compiles in Rust 1.9.0-nightly.
8 years ago
Florian Hahn
44b7a53b97
Capitalize some occurences of Rust in documentation
8 years ago
Ulrik Sverdrup
a29e5a7589
Fix spacing style of `T: Bound` in docs
...
The space between `T` and `Bound` is the typical style used in code and
produced by rustdoc's rendering. Fixed first in Reflect's docs and then
I fixed all occurrences in docs I could find.
8 years ago