Dylan DPC
c3a09fba84
Rollup merge of #75954 - ArekPiekarz:unstable_book_ffi_tracking_issues, r=steveklabnik
...
Unstable Book: add links to tracking issues for FFI features
2020-09-05 16:28:20 +02:00
Eric Huss
c012487bde
Update books
2020-09-02 11:10:36 -07:00
Tyler Mandry
c22de44a80
Rollup merge of #76212 - JesHansen:fix-lint-doc, r=jyn514
...
Document lint missing_doc_code_examples is nightly-only
Closes #76194
2020-09-01 18:24:44 -07:00
Jes Bak Hansen
7eb4b1b4b9
Document lint missing_doc_code_examples is nightly-only
2020-09-01 20:45:21 +02:00
Mateusz Mikuła
23f0ccfe5d
Stabilise link-self-contained option
2020-08-31 15:13:31 +02:00
bors
360eb349ae
Auto merge of #75919 - rust-lang:jonas-schievink-patch-1, r=ehuss
...
Fix typo (`thumbv8m.main-none-eabihf` is Mainline)
2020-08-30 06:32:12 +00:00
Dylan DPC
fe43918c38
Rollup merge of #75892 - ArekPiekarz:unstable_book_tls_model_typo, r=petrochenkov
...
Fix typo in TLS Model in Unstable Book
2020-08-30 01:43:46 +02:00
bors
3d0c847d33
Auto merge of #74941 - dylanmckay:replace-broken-avr-unknown-unknown-target, r=oli-obk
...
[AVR] Replace broken 'avr-unknown-unknown' target with 'avr-unknown-gnu-atmega328' target
The `avr-unknown-unknown` target has never worked correctly, always trying to invoke
the host linker and failing. It aimed to be a mirror of AVR-GCC's
default handling of the `avr-unknown-unknown' triple (assume bare
minimum chip features, silently skip linking runtime libraries, etc).
This behaviour is broken-by-default as it will cause a miscompiled executable
when flashed.
This patch improves the AVR builtin target specifications to instead
expose only a 'avr-unknown-gnu-atmega328' target. This target system is
`gnu`, as it uses the AVR-GCC frontend along with avr-binutils. The
target triple ABI is 'atmega328'.
In the future, it should be possible to replace the dependency on
AVR-GCC and binutils by using the in-progress AVR LLD and compiler-rt support.
Perhaps at that point it would make sense to add an
'avr-unknown-unknown-atmega328' target as a better default when
implemented.
There is no current intention to add in-tree AVR target specifications for other
AVR microcontrollers - this one can serve as a reference implementation
for other devices via `rustc --print target-spec-json
avr-unknown-gnu-atmega328p`.
There should be no users of the existing 'avr-unknown-unknown' Rust
target as a custom target specification JSON has always been
recommended, and the avr-unknown-unknown target could never pass the
linking step anyway.
2020-08-27 15:48:56 +00:00
Arkadiusz Piekarz
aa40c028fc
Unstable Book: add links to tracking issues for FFI features
2020-08-26 22:03:29 +02:00
Jonas Schievink
d9b075a756
Fix typo (thumbv8m.main-none-eabihf is Mainline)
2020-08-25 22:55:04 +02:00
Arkadiusz Piekarz
1831f65288
Fix typo in TLS Model in Unstable Book
2020-08-24 23:02:44 +02:00
Dylan McKay
c9ead8c895
[AVR] Replace 'avr-unknown-unknown' with 'avr-unknown-gnu-atmega328' in platform-support.md
2020-08-24 20:44:10 +12:00
Joshua Nelson
73de34319e
Document prim@ and primitive@
2020-08-23 22:40:20 -04:00
Dylan DPC
cc1e5c0509
Rollup merge of #75753 - koutheir:patch-1, r=steveklabnik
...
Another motivation for CFG: return-oriented programming
2020-08-22 02:14:49 +02:00
Dr. Koutheir Attouchi
8ae3384bf7
Added link to Microsoft's documentation of CFG
2020-08-21 14:52:30 -04:00
Dr. Koutheir Attouchi
ec9657aec6
Fixed a typo
2020-08-21 14:47:18 -04:00
Guillaume Gomez
10a880d20e
Improve wording
2020-08-21 09:49:26 +02:00
Dr. Koutheir Attouchi
5673b0e492
Switched ROP link to Desktop layout instead of mobile layout
2020-08-21 03:34:25 -04:00
Dr. Koutheir Attouchi
6fca004ba9
Another motivation for CFG: return-oriented programming
2020-08-20 18:54:40 -04:00
Guillaume Gomez
d108bd5386
Add documentation for --show-coverage option
2020-08-20 21:26:57 +02:00
Eric Huss
4890186957
Update books
2020-08-19 14:07:46 -07:00
Aleksey Kladov
5ba961018c
Remove missing_fragment_specifier lint
2020-08-18 09:06:45 +02:00
Sasha
bdbb995df3
Mark x86_64-linux-kernel as *
2020-08-17 12:57:42 +02:00
Eric Huss
9976a60077
Move CloudABI to tier 3.
2020-08-14 20:43:27 -07:00
bors
d69b0997d7
Auto merge of #75431 - ehuss:platform-support, r=Mark-Simulacrum
...
Move platform support to the rustc book.
This moves the [Platform Support](https://forge.rust-lang.org/release/platform-support.html ) page from the forge to the rustc book. There are several reasons for doing this:
* The forge is not really oriented towards end-users (it mostly contains infrastructure, governance and policy, internal team pages, etc.). This platform support page is useful to user to know which targets are supported.
* This page can now be updated in-sync with any PRs that add or remove a target, or change its status.
* This is now automatically checked on CI to verify the list does not get out of sync. Currently it only checks the presence/absence of an entry, but more sophisticated checks could be added in the future.
I'm not 100% certain this is the best location, but I think it fits. I'd like to see the rustc guide continue to grow, including things like linking information and more platform-specific details.
2020-08-13 06:17:25 +00:00
Eric Huss
ce717476ff
Add a script to verify the Platform Support page is up-to-date.
2020-08-12 08:40:22 -07:00
Eric Huss
392116e021
Platform Support page updates.
...
A few updates:
- Some minor wording and formatting changes.
- Remove the `cargo` column.
- Explain the columns up-front.
- Add no-wrap on the target-triple, which looks better to me.
- Minor mention on how to install support for a built-in target via rustup.
2020-08-11 16:05:43 -07:00
Eric Huss
1902983f45
Move forge platform-support to the rustc book.
2020-08-11 16:02:00 -07:00
Amanieu d'Antras
b5cef24f5f
Update asm! documentation in unstable book
...
- Update the list of supported architectures.
- Clarify issues with LLVM's use of reserved registers.
2020-08-06 23:22:07 +01:00
Eric Huss
583133308b
Update books
2020-08-04 16:45:19 -07:00
Manish Goregaokar
e65d6ed80f
Rollup merge of #74981 - giraffate:fix_sample_codes_in_unstable_book_plugin, r=GuilliameGomez
...
Some fixes for `plugin.md` in unstable-book
- sample codes not working
I referred to https://github.com/rust-lang/rust/blob/master/src/test/ui-fulldeps/auxiliary/lint-plugin-test.rs and https://github.com/rust-lang/rust/blob/master/src/test/ui-fulldeps/lint-plugin.rs .
- broken link
https://github.com/rust-lang/rust/blob/master/src/librustc/lint/builtin.rs -> https://github.com/rust-lang/rust/blob/master/src/librustc_session/lint/builtin.rs
2020-08-01 09:30:13 -07:00
Takayuki Nakata
3e48848538
Some fixes for plugin.md in unstable-book
...
- sample codes not working
- broken link
2020-07-31 23:56:18 +09:00
bors
ffa80f01d8
Auto merge of #74926 - Manishearth:rename-lint, r=jyn514
...
Rename intra_doc_link_resolution_failure
It should be plural to follow the conventions in https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#lints
2020-07-31 02:20:47 +00:00
Manish Goregaokar
8fe438e632
intra_doc_resolution_failures -> broken_intra_doc_links
2020-07-30 10:38:55 -07:00
Manish Goregaokar
4df76f0f90
Rename to intra_doc_resolution_failures
2020-07-30 08:14:27 -07:00
Manish Goregaokar
48de8ac041
Rename usage of intra_doc_link_resolution_failure
2020-07-29 15:23:14 -07:00
Takayuki Nakata
ab166cfffa
Fix broken link in unstable book plugin
2020-07-29 23:21:56 +09:00
mark
2c31b45ae8
mv std libs to library/
2020-07-27 19:51:13 -05:00
16yuki0702
04b2deb381
Fix rustc docs typo.
2020-07-25 10:14:14 +09:00
Manish Goregaokar
3de0de1ded
Rollup merge of #74589 - ehuss:update-books, r=ehuss
...
Update books
## reference
5 commits in 0ea7bc494f1289234d8800bb9185021e0ad946f0..b329ce37424874ad4db94f829a55807c6e21d2cb
2020-07-02 15:33:04 -0700 to 2020-07-20 08:54:08 -0700
- this '*' is unnecessary, and reduces readability (rust-lang-nursery/reference#853 )
- Tiny typo fix (rust-lang-nursery/reference#849 )
- Update const eval chapter to latest changes (rust-lang-nursery/reference#842 )
- Document #[track_caller]. (rust-lang-nursery/reference#742 )
- Document shebang restriction. (rust-lang-nursery/reference#823 )
## book
2 commits in 84a31397b34f9d405df44f2899ff17a4828dba18..a914f2c7e5cdb771fa465de142381a51c53b580e
2020-07-04 10:50:18 -0500 to 2020-07-21 09:20:05 -0500
- Change misleading wording (rust-lang/book#2399 )
- Improve wording to include Windows versions (rust-lang/book#2395 )
## edition-guide
3 commits in 82bec5877c77cfad530ca11095db4456d757f668..bd6e4a9f59c5c1545f572266af77f5c7a5bad6d1
2020-06-03 08:56:02 -0500 to 2020-07-12 17:37:08 -0500
- update guide for 1.36 and 1.37 (rust-lang/edition-guide#217 )
- Add contents for Rust 1.35 (rust-lang/edition-guide#216 )
- update edition guide for Rust 1.34 (rust-lang/edition-guide#215 )
2020-07-22 09:29:15 -07:00
Manish Goregaokar
8afb305e72
Rollup merge of #73893 - ajpaverd:cfguard-stabilize, r=nikomatsakis
...
Stabilize control-flow-guard codegen option
This is the stabilization PR discussed in #68793 . It converts the `-Z control-flow-guard` debugging option into a codegen option (`-C control-flow-guard`), and changes the associated tests.
2020-07-22 09:29:03 -07:00
Eric Huss
3eed7da1f9
Update books
2020-07-21 07:58:59 -07:00
Tomasz Miąsko
58b862072c
Document AddressSanitizer memory leak detection defaults
2020-07-19 17:12:44 +02:00
Tomasz Miąsko
251878ebc4
Remove CC & CFLAGS from MemorySanitizer example
...
They are now unnecessary for projects written in Rust, since
backtrace-rs used by the standard library has only Rust dependencies.
2020-07-19 17:11:33 +02:00
Manish Goregaokar
98450757e5
Revert "Remove "important traits" feature"
...
This reverts commit 1244ced958 .
2020-07-16 09:58:17 -07:00
Andrew Paverd
31c7aae113
Stabilize control-flow-guard codegen option
2020-07-14 15:27:42 +01:00
Manish Goregaokar
b43c26eb9d
Rollup merge of #74135 - ehuss:update-books, r=ehuss
...
Update books
## book
3 commits in 4e7c00bece1544d409312ec93467beb62b5bd0cb..84a31397b34f9d405df44f2899ff17a4828dba18
2020-06-19 09:39:12 -0400 to 2020-07-04 10:50:18 -0500
- Update Windows install instructions (rust-lang/book#2389 )
- Update ch01-02-hello-world.md (rust-lang/book#2386 )
- bump mdbook version in github action (rust-lang/book#2380 )
## reference
2 commits in 04d5d5d7ba624b6f5016298451f3a63d557f3260..0ea7bc494f1289234d8800bb9185021e0ad946f0
2020-06-16 15:08:05 -0700 to 2020-07-02 15:33:04 -0700
- Fix mis-capitalization of type name. (rust-lang-nursery/reference#844 )
- Fix name of trait for array indexing. (rust-lang-nursery/reference#840 )
## embedded-book
1 commits in 616962ad0dd80f34d8b802da038d0aed9dd691bb..94d9ea8460bcbbbfef1877b47cb930260b5849a7
2020-06-23 16:03:45 +0000 to 2020-07-05 14:17:40 +0000
- Note on transformation of static variables by attribute exception (rust-embedded/book#251 )
## rust-by-example
1 commits in 6f94ccb48da6fa4ed0031290f21411cf789f7d5e..229c6945a26a53a751ffa4f9cb418388c00029d3
2020-06-20 17:51:30 -0300 to 2020-07-06 10:13:15 -0300
- Modify comments (rust-lang/rust-by-example#1359 )
2020-07-10 23:26:51 -07:00
Manish Goregaokar
31d53decd0
Rollup merge of #74184 - Manishearth:doc-intra-doc, r=GuillaumeGomez
...
Add docs for intra-doc-links
Fixes https://github.com/rust-lang/rust/issues/66000
Hmm, for some reason my push closed the previous PR
2020-07-09 11:50:48 -07:00
Manish Goregaokar
36a229b28d
Move to unstable section
2020-07-09 09:19:50 -07:00
Manish Goregaokar
271e2a988f
Update src/doc/rustdoc/src/intra-doc-links.md
2020-07-09 08:34:42 -07:00