about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2020-08-27Auto merge of #74941 - dylanmckay:replace-broken-avr-unknown-unknown-target, ↵bors-1/+1
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-24[AVR] Replace 'avr-unknown-unknown' with 'avr-unknown-gnu-atmega328' in ↵Dylan McKay-1/+1
platform-support.md
2020-08-23Document prim@ and primitive@Joshua Nelson-1/+1
2020-08-22Rollup merge of #75753 - koutheir:patch-1, r=steveklabnikDylan DPC-2/+3
Another motivation for CFG: return-oriented programming
2020-08-21Added link to Microsoft's documentation of CFGDr. Koutheir Attouchi-1/+1
2020-08-21Fixed a typoDr. Koutheir Attouchi-1/+1
2020-08-21Improve wordingGuillaume Gomez-1/+1
2020-08-21Switched ROP link to Desktop layout instead of mobile layoutDr. Koutheir Attouchi-1/+1
2020-08-20Another motivation for CFG: return-oriented programmingDr. Koutheir Attouchi-1/+2
2020-08-20Add documentation for --show-coverage optionGuillaume Gomez-0/+33
2020-08-19Update booksEric Huss-0/+0
2020-08-18Remove missing_fragment_specifier lintAleksey Kladov-9/+0
2020-08-17Mark x86_64-linux-kernel as *Sasha-1/+1
2020-08-14Move CloudABI to tier 3.Eric Huss-1/+1
2020-08-13Auto merge of #75431 - ehuss:platform-support, r=Mark-Simulacrumbors-5/+234
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-12Add a script to verify the Platform Support page is up-to-date.Eric Huss-8/+9
2020-08-11Platform Support page updates.Eric Huss-193/+198
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-11Move forge platform-support to the rustc book.Eric Huss-0/+223
2020-08-06Update asm! documentation in unstable bookAmanieu d'Antras-1/+13
- Update the list of supported architectures. - Clarify issues with LLVM's use of reserved registers.
2020-08-04Update booksEric Huss-0/+0
2020-08-01Rollup merge of #74981 - giraffate:fix_sample_codes_in_unstable_book_plugin, ↵Manish Goregaokar-16/+14
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-07-31Some fixes for `plugin.md` in unstable-bookTakayuki Nakata-16/+14
- sample codes not working - broken link
2020-07-31Auto merge of #74926 - Manishearth:rename-lint, r=jyn514bors-1/+1
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-30intra_doc_resolution_failures -> broken_intra_doc_linksManish Goregaokar-1/+1
2020-07-30Rename to intra_doc_resolution_failuresManish Goregaokar-1/+1
2020-07-29Rename usage of intra_doc_link_resolution_failureManish Goregaokar-1/+1
2020-07-29Fix broken link in unstable book `plugin`Takayuki Nakata-1/+1
2020-07-27mv std libs to library/mark-5/+0
2020-07-25Fix rustc docs typo.16yuki0702-1/+1
2020-07-22Rollup merge of #74589 - ehuss:update-books, r=ehussManish Goregaokar-0/+0
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-22Rollup merge of #73893 - ajpaverd:cfguard-stabilize, r=nikomatsakisManish Goregaokar-0/+12
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-21Update booksEric Huss-0/+0
2020-07-19Document AddressSanitizer memory leak detection defaultsTomasz Miąsko-0/+3
2020-07-19Remove CC & CFLAGS from MemorySanitizer exampleTomasz Miąsko-4/+0
They are now unnecessary for projects written in Rust, since backtrace-rs used by the standard library has only Rust dependencies.
2020-07-16Revert "Remove "important traits" feature"Manish Goregaokar-0/+51
This reverts commit 1244ced9580b942926afc06815e0691cf3f4a846.
2020-07-14Stabilize control-flow-guard codegen optionAndrew Paverd-0/+12
2020-07-10Rollup merge of #74135 - ehuss:update-books, r=ehussManish Goregaokar-0/+0
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-09Rollup merge of #74184 - Manishearth:doc-intra-doc, r=GuillaumeGomezManish Goregaokar-30/+42
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-09Move to unstable sectionManish Goregaokar-89/+42
2020-07-09Update src/doc/rustdoc/src/intra-doc-links.mdManish Goregaokar-1/+0
2020-07-09Add docs for intra-doc-linksManish Goregaokar-0/+60
2020-07-08Fix broken link in rustdocdocYuki Okushi-1/+1
2020-07-07Update booksEric Huss-0/+0
2020-07-05Rollup merge of #73787 - pickfire:rustc-attrs, r=RalfJungManish Goregaokar-0/+53
Add unstable docs for rustc_attrs r? @RalfJung
2020-07-03Rollup merge of #73670 - davidhewitt:format-args-capture, r=varkorManish Goregaokar-0/+47
Add `format_args_capture` feature This is the initial implementation PR for [RFC 2795](https://github.com/rust-lang/rfcs/pull/2795). Note that, as dicussed in the tracking issue (#67984), the feature gate has been called `format_args_capture`. Next up I guess I need to add documentation for this feature. I've not written any docs before for rustc / std so I would appreciate suggestions on where I should add docs.
2020-06-30Stabilize `#[track_caller]`.Adam Perry-5/+0
Does not yet make its constness stable, though. Use of `Location::caller` in const contexts is still gated by `#![feature(const_caller_location)]`.
2020-06-29Ignore example compile in rustc-attrs docIvan Tham-2/+2
2020-06-28Remove `const_if_match` from unstable bookDylan MacKenzie-14/+0
2020-06-28Add preamable on rustc-attrs doc discussionIvan Tham-0/+3
2020-06-27Add `format_args_capture` to the unstable bookDavid Hewitt-0/+47