about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2022-05-07Fix an incorrect link in The Unstable BookKoichi ITO-1/+1
https://github.com/rust-lang/rust/blob/master/src/librustc_session/lint/builtin.rs returns page not found. The following is the background of the move. First https://github.com/rust-lang/rust/pull/74862 moves from src/librustc_session/lint/builtin.rs to compiler/rustc_session/src/lint/builtin.rs Then https://github.com/rust-lang/rust/commit/23018a5 moves from compiler/rustc_session/src/lint/builtin.rs to compiler/rustc_lint_defs/src/builtin.rs So, the current correct link is https://github.com/rust-lang/rust/blob/master/compiler/rustc_lint_defs/src/builtin.rs This PR fixes a broken link on the following page: https://doc.rust-lang.org/beta/unstable-book/language-features/plugin.html
2022-05-05Auto merge of #91779 - ridwanabdillahi:natvis, r=michaelwoeristerbors-0/+25
Add a new Rust attribute to support embedding debugger visualizers Implemented [this RFC](https://github.com/rust-lang/rfcs/pull/3191) to add support for embedding debugger visualizers into a PDB. Added a new attribute `#[debugger_visualizer]` and updated the `CrateMetadata` to store debugger visualizers for crate dependencies. RFC: https://github.com/rust-lang/rfcs/pull/3191
2022-05-03Add support for a new attribute `#[debugger_visualizer]` to support ↵ridwanabdillahi-0/+25
embedding debugger visualizers into a generated PDB. Cleanup `DebuggerVisualizerFile` type and other minor cleanup of queries. Merge the queries for debugger visualizers into a single query. Revert move of `resolve_path` to `rustc_builtin_macros`. Update dependencies in Cargo.toml for `rustc_passes`. Respond to PR comments. Load visualizer files into opaque bytes `Vec<u8>`. Debugger visualizers for dynamically linked crates should not be embedded in the current crate. Update the unstable book with the new feature. Add the tracking issue for the debugger_visualizer feature. Respond to PR comments and minor cleanups.
2022-05-03Document ErrorGuaranteed (#1316)Who? Me?!-0/+38
* document ErrorGuaranteed * Fix typos Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Clarify Niko comment Co-authored-by: Niko Matsakis <niko@alum.mit.edu> Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> Co-authored-by: Niko Matsakis <niko@alum.mit.edu>
2022-05-02Fix typo in lint levels docRock Boynton-3/+2
2022-05-02Edit "What the compiler does to your code" (#1306)pierwill-92/+124
* Edit overview.md * Fix lexer crate * Edit wording Co-authored-by: pierwill <pierwill@users.noreply.github.com>
2022-05-02Auto merge of #96436 - petrochenkov:nowhole2, r=wesleywiserbors-2/+2
linker: Stop using whole-archive on dependencies of dylibs https://github.com/rust-lang/rust/pull/95604 implemented a better and more fine-grained way of keeping exported symbols alive. Addresses the second question from https://github.com/rust-lang/rust/pull/93901#issuecomment-1041325522. r? `@wesleywiser`
2022-04-30Add `do yeet` expressions to allow experimentation in nightlyScott McMurray-0/+26
Using an obviously-placeholder syntax. An RFC would still be needed before this could have any chance at stabilization, and it might be removed at any point. But I'd really like to have it in nightly at least to ensure it works well with try_trait_v2, especially as we refactor the traits.
2022-04-29Remove unnecessary environment variable in cf-protection documentationAndrew Brown-1/+1
Before merging the `cf-protection` flag, it was necessary to use a locally-compiled version of `rustc`. This is no longer the case and the documentation should reflect this.
2022-04-26linker: Stop using whole-archive on dependencies of dylibsVadim Petrochenkov-2/+2
https://github.com/rust-lang/rust/pull/95604 implemented a better and more fine-grained way of keeping exported symbols alive.
2022-04-20Update some date refsYuki Okushi-7/+7
2022-04-20Update booksEric Huss-0/+0
2022-04-20Fix a small typo (#1343)printfn-1/+1
2022-04-19Rollup merge of #96086 - jsgf:remove-extern-location, r=davidtwcoDylan DPC-31/+0
Remove `--extern-location` and all associated code `--extern-location` was an experiment to investigate the best way to generate useful diagnostics for unused dependency warnings by enabling a build system to identify the corresponding build config. While I did successfully use this, I've since been convinced the alternative `--json unused-externs` mechanism is the way to go, and there's no point in having two mechanisms with basically the same functionality. This effectively reverts https://github.com/rust-lang/rust/pull/72603
2022-04-18Rollup merge of #96032 - ehuss:update-books, r=ehussDylan DPC-0/+0
Update books ## nomicon 1 commits in 11f1165e8a2f5840467e748c8108dc53c948ee9a..c7d8467ca9158da58ef295ae65dbf00a308752d9 2022-03-19 16:02:00 -0400 to 2022-04-06 14:26:54 +0900 - Change "writers" to "readers" for Deref. (rust-lang/nomicon#346) ## reference 7 commits in c97d14fa6fed0baa9255432b8a93cb70614f80e3..b5f6c2362baf932db9440fbfcb509b309237ee85 2022-03-19 18:18:10 -0700 to 2022-04-10 19:19:51 -0700 - Fix typo: `?` should be inside `&lt;sup&gt;` tags (rust-lang/reference#1190) - Update aarch64 to use neon as fp (rust-lang/reference#1184) - Boolean literal expressions (rust-lang/reference#1189) - Document that unary negation of a signed integer literal cannot cause an overflow error (rust-lang/reference#1188) - Document compatibility between declarative and procedural macro tokens (rust-lang/reference#1169) - Document native library modifier syntax and the `whole-archive` modifier specifically (rust-lang/reference#1170) - Numeric literal expressions and literal suffixes (rust-lang/reference#1177) ## book 8 commits in ea90bbaf53ba64ef4e2da9ac2352b298aec6bec8..765318b844569a642ceef7bf1adab9639cbf6af3 2022-03-28 21:59:34 -0400 to 2022-04-12 21:14:47 -0400 - Propagate nostarch edits to src - Propagate updated test example code to nostarch snapshot - Edits to nostarch edits - edits from nostarch - Fix error message for the example code - update ch13-02 to reflect changes in rust-lang/book#2797 - Update to 1.59 - Edits to chapter 2 after tech review ## rust-by-example 4 commits in ec954f35eedf592cd173b21c05a7f80a65b61d8a..c2a98d9fc5d29c481d42052fbeccfde15ed03116 2022-03-22 11:09:06 -0300 to 2022-04-08 06:44:18 -0300 - Code highlight a variable (rust-lang/rust-by-example#1530) - Add a comment to note that warnings may not be shown in a browser in the Variable Bindings section (rust-lang/rust-by-example#1529) - Make all new types have UpperCamelCase names in code example in the Aliasing section (rust-lang/rust-by-example#1528) - Replace `C` with C/C++ (rust-lang/rust-by-example#1527) ## rustc-dev-guide 6 commits in 155126b1d2e2cb01ddb1d7ba9489b90d7cd173ad..eeb5a83c15b6ae60df3e4f19207376b22c6fbc4c 2022-03-22 14:34:21 +0100 to 2022-04-11 23:29:48 +0900 - method-lookup.md improvements (rust-lang/rustc-dev-guide#1296) - Consolidate crates.io convention section (rust-lang/rustc-dev-guide#1326) - Update examples with 1.61.0-nightly (latest version) (rust-lang/rustc-dev-guide#1330) - r-a: Use `python3 x.py` instead of `./x.py` (rust-lang/rustc-dev-guide#1335) - Update miri.md: correct a minor typo (rust-lang/rustc-dev-guide#1334) - Add example how lints can be feature gated
2022-04-16Rollup merge of #96059 - euclio:doc-cfg, r=manishearth,guillaumegomezDylan DPC-1/+1
clarify doc(cfg) wording The current "This is supported" wording implies that it's possible to still use the item on other configurations, but in an unsupported way. Changing this to "Available" removes this ambiguity.
2022-04-16Rollup merge of #94605 - Michcioperz:patch-1, r=pnkfelixDylan DPC-3/+6
Add missing links in platform support docs I was looking at m68k support and saw that https://doc.rust-lang.org/rustc/platform-support.html and the sidebar there were missing some links to target documentation
2022-04-15Remove `--extern-location` and all associated codeJeremy Fitzhardinge-31/+0
`--extern-location` was an experiment to investigate the best way to generate useful diagnostics for unused dependency warnings by enabling a build system to identify the corresponding build config. While I did successfully use this, I've since been convinced the alternative `--json unused-externs` mechanism is the way to go, and there's no point in having two mechanisms with basically the same functionality. This effectively reverts https://github.com/rust-lang/rust/pull/72603
2022-04-14clarify doc(cfg) wordingAndy Russell-1/+1
The current "This is supported" wording implies that it's possible to still use the item on other configurations, but in an unsupported way. Changing this to "Available" removes this ambiguity.
2022-04-14docs: Update tests chapter for Termination stabilizationEric Huss-1/+3
2022-04-14Extend debugging llvm section (#1290)Felix S Klock II-17/+94
2022-04-14Send people doing *library* stabilizations over to the std-dev-guide (#1317)scottmcm-8/+26
Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
2022-04-14Fix typo serious->series (#1336)Frank Steffahn-1/+1
2022-04-14Minor type fix (#1337)Eric Holk-1/+1
2022-04-14sessiondiagnostic: translation (#1333)David Wood-71/+181
2022-04-13Update booksEric Huss-0/+0
2022-04-13Rollup merge of #93217 - willcrichton:example-analyzer, r=GuillaumeGomezDylan DPC-0/+56
Improve Rustdoc UI for scraped examples with multiline arguments, fix overflow in line numbers This PR improves a few aspects of the scrape examples feature in Rustdoc. * Only function names and not the full call expression are highlighted. * For call-sites with multiline arguments, the minimized code viewer will scroll to the top of the call-site rather than the middle if the argument is larger than the viewer size, ensuring that the function name is visible. * This fixes an issue where the line numbers column had a visible x-scroll bar. r? `@GuillaumeGomez`
2022-04-12fix broken link in coverage tools docsAnthonyMikh-1/+1
2022-04-11method-lookup.md improvements (#1296)Matthew Woodcraft-12/+13
2022-04-11Consolidate crates.io convention section (#1326)Ivor Wanders-5/+3
2022-04-11Update examples with 1.61.0-nightly (latest version) (#1330)Ujjawal-10/+9
Co-authored-by: Ujjawal Kumar <u.kumar@ukumar-ltmit1s.internal.salesforce.com>
2022-04-11Rollup merge of #95861 - ChrisDenton:windows7-support, r=Dylan-DPCMatthias Krüger-4/+6
Note that CI tests Windows 10 Currently being [discussed on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/Windows.207). r? `````@joshtriplett`````
2022-04-11Rollup merge of #95771 - str4d:update-linker-plugin-lto.md-to-1.60, ↵Matthias Krüger-1/+15
r=pietroalbini Update linker-plugin-lto.md to 1.60 I remembered this table when I was looking into what version of LLVM 1.60.0 was using 🙂
2022-04-11Note the contacts for the nvptx64 target(s)Simonas Kazlauskas-0/+58
2022-04-09Note that CI tests Windows 10Chris Denton-4/+6
2022-04-09r-a: Use `python3 x.py` instead of `./x.py` (#1335)Noah Lev-2/+3
2022-04-08Split `fuzzy_provenance_casts` into lossy and fuzzy, feature gate and test itniluxv-0/+22
* split `fuzzy_provenance_casts` into a ptr2int and a int2ptr lint * feature gate both lints * update documentation to be more realistic short term * add tests for these lints
2022-04-07Promote x86_64-unknown-none to Tier 2bstrie-8/+12
2022-04-07Manually mark 1.49 and 1.50 in linker-plugin-lto.md as Clang 11Jack Grigg-2/+2
`rustc +1.49.0 -Vv` and `rustc +1.50.0 -Vv` do not print out an `LLVM version` line, which prevents the script from detecting them.
2022-04-07Update linker-plugin-lto.md to contain up to Rust 1.60Jack Grigg-1/+15
The table rows were obtained via the script embedded in the page.
2022-04-06Update miri.md: correct a minor typo (#1334)Hongbo-1/+1
2022-04-04Add example how lints can be feature gatedxFrednet-0/+14
2022-03-30Stabilize native library modifier syntax and the `whole-archive` modifier ↵Vadim Petrochenkov-30/+25
specifically
2022-03-28Update booksEric Huss-0/+0
2022-03-27Clarify that scrape examples is unstableWill Crichton-1/+1
2022-03-27Fix markdown issue, remove hard-coded rust-lang.org urlWill Crichton-2/+2
2022-03-27Improve alignment of additional scraped examples, add scrape examples help pageWill Crichton-0/+56
2022-03-25Remove hermitkernel targetsMartin Kröning-80/+0
RustyHermit now maintains custom json targets, which are distributed with the kernel. [1] [1]: https://github.com/hermitcore/libhermit-rs/pull/395
2022-03-22update section for type system constants (#1329)lcnr-20/+29
* update section for type system constants * Update src/constants.md
2022-03-21Rollup merge of #95166 - Urgau:check-cfg-values-unstable-book, r=petrochenkovMatthias Krüger-3/+5
Update the unstable book with the new `values()` form of check-cfg Forgot to update the unstable book in https://github.com/rust-lang/rust/pull/94362 r? ``@petrochenkov``