about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2021-07-06Update booksEric Huss-0/+0
2021-07-06Add flag to configure `large_assignments` lintTomasz Miąsko-0/+10
The `large_assignments` lints detects moves over specified limit. The limit is configured through `move_size_limit = "N"` attribute placed at the root of a crate. When attribute is absent, the lint is disabled. Make it possible to enable the lint without making any changes to the source code, through a new flag `-Zmove-size-limit=N`. For example, to detect moves exceeding 1023 bytes in a cargo crate, including all dependencies one could use: ``` $ env RUSTFLAGS=-Zmove-size-limit=1024 cargo build -vv ```
2021-07-05Fixed typos in inline codeYoh Deadfall-2/+2
2021-07-05Auto merge of #86663 - fee1-dead:use-rustdoc-css, r=GuillaumeGomezbors-132/+8
Use rustdoc.css for error index Closes #86512.
2021-07-05Document lang items (#1119)Joshua Nelson-0/+68
* Document lang items * Apply suggestions from code review Co-authored-by: Camelid <camelidcamel@gmail.com> * Add an example of retrieving lang items * Add two missing words * Fix line lengths Co-authored-by: Mikail Bagishov <bagishov.mikail@yandex.ru> Co-authored-by: Camelid <camelidcamel@gmail.com>
2021-07-04More specifics on what future-incompatible lints are used forRyan Levick-5/+19
2021-07-04Fix line lensRyan Levick-5/+7
2021-07-04Update information on lints particularly on future-incompatibleRyan Levick-22/+38
2021-07-04Update section of lint storeRyan Levick-27/+34
2021-07-02Update around half of the January 2021 date references (#1155)Ryan Levick-20/+11
2021-07-02Create issues for many TODOs (#1163)Ryan Levick-13/+15
* Create issues for many TODOs * Update src/crates-io.md Co-authored-by: Joshua Nelson <github@jyn.dev> * Update src/backend/inline-asm.md Co-authored-by: Yuki Okushi <jtitor@2k36.org> Co-authored-by: Joshua Nelson <github@jyn.dev> Co-authored-by: Yuki Okushi <jtitor@2k36.org>
2021-07-01Links from rustc-dev-guide to std-dev-guide (#1152)Josh Triplett-0/+5
2021-06-29Document how to mark features as incomplete (#1151)Smittyvb-0/+9
* Document how to mark features as incomplete This was changed in https://github.com/rust-lang/rust/pull/86446 so that incompleteness is included in the delcaration. * Footerify link
2021-06-29override rustdoc.css {webkit,moz} box-sizing:unsetDeadbeef-0/+3
2021-06-28Update to new bootstrap compilerMark Rousskov-50/+0
2021-06-28Make every standalone doc use rustdoc.cssDeadbeef-0/+5
2021-06-27Add Website features page to rustdoc bookJean-Luc Thumm-0/+26
2021-06-27Use rustdoc.css for error indexDeadbeef-138/+6
2021-06-25Auto merge of #86599 - Amanieu:asm_raw, r=nagisabors-1/+2
Add a "raw" option for asm! which ignores format string specifiers This is useful when including raw assembly snippets using `include_str!`.
2021-06-24Add a "raw" option for asm! which ignores format string specifiersAmanieu d'Antras-1/+2
2021-06-25Remove requests or suggestions about rebase and fixup contradictory to ↵Jesús Hernández-2/+1
rust-highfive bot comment (#1111)
2021-06-24Generate glossary table correctly (#1146)Smittyvb-89/+90
Co-authored-by: Yuki Okushi <yuki.okushi@huawei.com>
2021-06-23Correct the wrong serial number (#1147)二手掉包工程师-13/+13
2021-06-22Update booksEric Huss-0/+0
2021-06-21Update "Inference variables" section (#1145)Yuki Okushi-2/+3
2021-06-20Fix rust.css fonts.Eric Huss-10/+33
2021-06-17Document how to run unit tests (#1141)Yuki Okushi-0/+14
2021-06-17Auto merge of #83572 - pkubaj:patch-1, r=nagisabors-0/+1
Add support for powerpc64le-unknown-freebsd
2021-06-15We stopped using allow_internal_unstable a while ago (#1142)Oli Scherer-13/+21
Co-authored-by: Ralf Jung <post@ralfj.de> Co-authored-by: Yuki Okushi <jtitor@2k36.org> Co-authored-by: Noah Lev <camelidcamel@gmail.com>
2021-06-15Change the feature used as an example of stabilizing lib features (#1143)Jade-1/+4
2021-06-14We use HIR to do type inference, trait solving and type checking (#1139)Santiago Pastorino-4/+10
* We use HIR to do type inference, trait solving and type checking * Update src/overview.md Co-authored-by: Yuki Okushi <jtitor@2k36.org> * Update src/overview.md Co-authored-by: Yuki Okushi <jtitor@2k36.org> * Update src/overview.md Co-authored-by: Noah Lev <camelidcamel@gmail.com> * Fix type checking brief explanation Co-authored-by: Yuki Okushi <jtitor@2k36.org> Co-authored-by: Noah Lev <camelidcamel@gmail.com>
2021-06-13Add suggested settings note for coc (#1144)Jade-0/+5
2021-06-10Add support for using qualified paths with structs in expression and patternRyan Levick-0/+29
position.
2021-06-09move 7/8 to proseGus Wynn-4/+5
2021-06-09Add a section on keeping things up to date in the git sectionGus Wynn-7/+47
2021-06-08Update booksEric Huss-0/+0
2021-06-08Rollup merge of #85951 - hyd-dev:force-unwind-tables, r=steveklabnikYuki Okushi-2/+1
Update the documentation of `-C force-unwind-tables` for #83482 `panic=unwind` does not require `force-unwind-tables` to be "yes" anymore. I forgot to update this in #83482.
2021-06-06Auto merge of #79608 - alessandrod:bpf, r=nagisabors-0/+10
BPF target support This adds `bpfel-unknown-none` and `bpfeb-unknown-none`, two new no_std targets that generate little and big endian BPF. The approach taken is very similar to the cuda target, where `TargetOptions::obj_is_bitcode` is enabled and code generation is done by the linker. I added the targets to `dist-various-2`. There are [some tests](https://github.com/alessandrod/bpf-linker/tree/main/tests/assembly) in bpf-linker and I'm planning to add more. Those are currently not ran as part of rust CI.
2021-06-05Auto merge of #85457 - jyn514:remove-doc-include, r=GuillaumeGomezbors-59/+1
Remove `doc(include)` This nightly feature is redundant now that `extended_key_value_attributes` is stable (https://github.com/rust-lang/rust/pull/83366). `@rust-lang/rustdoc` not sure if you think this needs FCP; there was already an FCP in #82539, but technically it was for deprecating, not removing the feature altogether. This should not be merged before #83366. cc `@petrochenkov`
2021-06-04Auto merge of #85788 - rylev:force-warns, r=nikomatsakisbors-0/+21
Support for force-warns Implements https://github.com/rust-lang/rust/issues/85512. This PR adds a new command line option `force-warns` which will force the provided lints to warn even if they are allowed by some other mechanism such as `#![allow(warnings)]`. Some remaining issues: * https://github.com/rust-lang/rust/issues/85512 mentions that `force-warns` should also be capable of taking lint groups instead of individual lints. This is not implemented. * If a lint has a higher warning level than `warn`, this will cause that lint to warn instead. We probably want to allow the lint to error if it is set to a higher lint and is not allowed somewhere else. * One test is currently ignored because it's not working - when a deny-by-default lint is allowed, it does not currently warn under `force-warns`. I'm not sure why, but I wanted to get this in before the weekend. r? `@nikomatsakis`
2021-06-04Remove `doc(include)`Joshua Nelson-59/+1
2021-06-04Fix some links (#1137)Yuki Okushi-9/+9
* Fix some links * Address review comment
2021-06-03Satisfy unstable book lintJubilee Young-2/+5
2021-06-03Add run-make test testing flag stabilityRyan Levick-1/+1
2021-06-03Update the documentation of `-C force-unwind-tables`hyd-dev-2/+1
2021-06-02Add a page on force-warns in unstable bookRyan Levick-0/+21
2021-05-30Rollup merge of #85781 - badboy:document-aarch-ios-sim-support, r=AmanieuGuillaume Gomez-1/+58
Add documentation for aarch64-apple-ios-sim target Documentation as requested for [MCP 428](https://github.com/rust-lang/compiler-team/issues/428) to promote this target to Tier 2. Currently it calls out that it's Tier 3. That should be changed if this target is promoted, but this PR could also land before that. Note: probably should get signoff from the compiler team based on that MCP.
2021-05-30explain Miri engine vs Miri-the-toolRalf Jung-1/+6
2021-05-29Add documentation for aarch64-apple-ios-sim targetJan-Erik Rediger-1/+58
2021-05-29BPF: misc minor review fixesAlessandro Decina-3/+3