Commit Graph

2928 Commits

Author SHA1 Message Date
Eric Huss 585b9bcb72
Merge pull request #1491 from kpreid/neunit
Document how `non_exhaustive` interacts with tuple and unit-like structs.
2024-04-15 19:59:53 +00:00
Kevin Reid 076a798583 Replace “min()” visibility notation with English. 2024-04-15 11:13:52 -07:00
Eric Huss a60221ad9c
Merge pull request #1490 from jlokier/patch-1
Fix link to RISC-V Zkt spec; it was pointing to Zkr
2024-04-15 16:12:40 +00:00
Kevin Reid ec0065fd92 Document how `non_exhaustive` interacts with tuple and unit-like structs. 2024-04-14 10:48:46 -07:00
Jamie Lokier b4311de691
Fix link to RISC-V Zkt spec; it was pointing to Zkr 2024-04-14 14:07:07 +01:00
Eric Huss 55694913b1
Merge pull request #1449 from weiznich/diagnostic_namespace
Add the `#[diagnostic]` attribute namespace and the `#[diagnostic::on_unimplemented]` feature to the reference
2024-04-03 21:31:14 +00:00
Eric Huss 52874b8312 Update on_unimplemented for format string changes.
Updated in https://github.com/rust-lang/rust/pull/122402
2024-04-03 14:29:34 -07:00
Eric Huss 1c03c9d3b8
Merge pull request #1393 from dvdhrm/pr/align32
type-layout: be more specific about 32-bit alignments
2024-04-03 02:21:31 +00:00
Eric Huss 1e1fec30f1
Merge pull request #1488 from yotamofek/patch-1
Fix clippy warning in procedural macro example
2024-04-01 19:56:13 +00:00
Yotam Ofek a7a86824fa
Fix clippy warning in procedural macro example
I copy+pasted this example into my code and the `clippy::to_string_in_format_args` lint fired.
2024-03-30 23:14:03 +03:00
Eric Huss 984b36eca4
Merge pull request #1486 from aoyama-val/patch-1
Fix typo of shebang
2024-03-25 14:05:19 +00:00
Shotaro Aoyama 0b153cb607
fix typo of shebang 2024-03-24 14:02:49 +09:00
Eric Huss 824b9156b2
Merge pull request #1461 from clubby789/imported-main
Document importing `main`
2024-03-20 15:54:19 +00:00
Eric Huss b6779f40a1
Merge pull request #1481 from compiler-errors/atb
add grammar for `associated_type_bounds` in reference
2024-03-20 15:52:40 +00:00
Eric Huss be4f7be926
Merge pull request #1483 from mattheww/2024-03_unicode_escape_fix
Literal expressions: fix mistake in the definition of unicode escapes
2024-03-19 20:01:14 +00:00
Matthew Woodcraft 659915cc11 Literal expressions: fix mistake in the definition of unicode escapes 2024-03-19 19:36:32 +00:00
Eric Huss 5e29b0135e Various fixes and editing. 2024-03-12 09:21:17 -07:00
Georg Semmler 99b19d92c1 Apply more review suggestions manually
Co-authored-by: Eric Huss <eric@huss.org>
2024-03-12 08:23:37 -07:00
Georg Semmler 5baf87cdd9 Apply suggestions from code review
Co-authored-by: Eric Huss <eric@huss.org>
2024-03-12 08:23:37 -07:00
Georg Semmler 81fe01a111 Add the `#[diagnostic]` attribute namespace and the
`#[diagnostic::on_unimplemented]` feature to the reference
2024-03-12 08:23:37 -07:00
Michael Goulet 6c77f499ea
Update src/paths.md 2024-03-08 11:42:50 -05:00
Michael Goulet 9ad55f00b1
Fix copy/paste error 2024-03-08 11:42:32 -05:00
Michael Goulet 684b549fc7 add support for ATB in reference 2024-03-07 19:47:28 +00:00
Eric Huss 5afb503a4c
Merge pull request #1459 from mattheww/2024-01_input_format
Input format
2024-03-06 21:29:54 +00:00
Eric Huss 54400709b0
Merge pull request #1479 from mattheww/2024-03_lifetime_tokens
Lexer: say that lifetime-like tokens can't be immediately followed by '
2024-03-06 19:01:19 +00:00
Matthew Woodcraft 7bd81a6a03 tokens.md: say that lifetime-like tokens can't be immediately followed by '
Forms like 'ab'c are rejected, so we need some way to explain why they
don't tokenise as two consecutive LIFETIME_OR_LABEL tokens.

Address this by adding "not immediately followed by `'`" to each of the
lexer rules for the lifetime-like tokens.

This also means there can be no ambiguity between CHAR_LITERAL and these
tokens (at present we don't say how such ambiguities are resolved).
2024-03-04 21:32:01 +00:00
Eric Huss 1afcfd9c66
Merge pull request #1460 from mattheww/2024-01_patterns
Patterns and enums
2024-02-28 04:06:45 +00:00
Matthew Woodcraft 08e5cd4e3c Say that struct patterns can match union values 2024-02-27 21:53:14 +00:00
Eric Huss 3417f86693
Merge pull request #1446 from ChrisDenton/target-abi
Document `target_abi`
2024-02-25 19:37:14 +00:00
Eric Huss 8c2500c059
Merge pull request #1474 from traviscross/TC/improve-readme
Add `rust-toolchain.toml` and revise README
2024-02-21 21:28:41 +00:00
Eric Huss b25c20b494
Merge pull request #1451 from udoprog/document-ptr-casts
Clarify semantics of the various pointer to pointer casts
2024-02-21 21:21:54 +00:00
Eric Huss 97c9ad16e5 Semantic line wrapping. 2024-02-21 13:20:15 -08:00
Eric Huss 72fb626596 Add redirect for slice-dst-pointer-to-pointer-cast 2024-02-21 13:17:59 -08:00
Eric Huss 405242bd3d
Merge pull request #1470 from adamgemmell/dev/adagem01/target-features-combined
Update aarch64 target feature docs to match LLVM
2024-02-21 21:11:25 +00:00
John-John Tedro 8c7cdd39ef Document semantics of various pointer casts
Co-authored-by: Ralf Jung <post@ralfj.de>
2024-02-21 17:34:02 +01:00
Travis Cross 81b8df4323 Add `rust-toolchain.toml` and revise README
We spent a lot of text in the README describing how to use the nightly
Rust compiler with this project.  Let's instead add a
`rust-toolchain.toml` file so that the nightly compiler is used
automatically, and let's redraft the README in that light.

With this revision, we'll add a section on installing dependencies in
which we'll describe how to ensure that the nightly compiler is
installed and up to date and how to install `mdbook`.

When describing how to clone the project, we'll suggest that people
clone the URL ending in `.git`.  This is what GitHub recommends, and
it removes a level of redirection which sometimes matters.

For people who want to download a ZIP file rather than using `git`,
we'll provide a direct link rather than simply referencing the GitHub
page.

When describing how to build the book, we'll suggesting passing
`--open` to `mdbook`, as this is usually what people will want, and it
will save a step.

Along with these changes, we include some general copyediting.
2024-02-19 07:03:53 +00:00
Travis Cross 1a23297a23 Cleanup wrapping, whitespace, etc. in `README.md`
In `README.md`, some lines were hard wrapped where others were not,
there was some trailing whitespace, and some list items were
terminated with a period where some were not.  Let's clean these
things up by hard wrapping all lines, cleaning up the whitespace, and
terminating all list items with periods.
2024-02-19 06:00:14 +00:00
Adam Gemmell db390b7cfe Update aarch64 target feature docs to match LLVM 2024-02-15 14:44:13 +00:00
Eric Huss 9104f17835
Merge pull request #1281 from ehuss/fix-TypePathFn
Fix grammar for TypePathFn
2024-02-15 13:28:59 +00:00
Eric Huss e33f255728 Fix grammar for TypePathFn 2024-02-15 05:27:15 -08:00
Eric Huss 8227666de1
Merge pull request #1467 from yutannihilation/patch-1
Fix a typo in external-blocks.md
2024-02-12 03:04:15 +00:00
Hiroaki Yutani 31f0c2c9e1
Fix a typo in external-blocks.md
Add a closing `]`
2024-02-12 11:06:08 +09:00
matthewjasper 8c0b6a8088
Merge pull request #1463 from andreasfelix/patch-1
Fix syntax in `'static lifetime elision` section of `lifetime-elision.md`
2024-02-09 17:26:09 +00:00
Eric Huss 5be836c39a
Merge pull request #1464 from ehuss/fix-backslash
Fix markdown backslash for FLOAT_LITERAL
2024-02-07 13:42:23 +00:00
Eric Huss 19ae8c51d2 Fix markdown backslash for FLOAT_LITERAL 2024-02-05 12:16:10 -08:00
Felix Andreas 8c6c7cdc2b
Update lifetime-elision.md 2024-02-05 13:09:46 +01:00
clubby789 50a2c87f82 Document importing `main` 2024-01-31 16:22:22 +00:00
Eric Huss 9329dc4ae6
Merge pull request #1457 from mattheww/2024-01_c_string_literal_expr
C string literal expressions
2024-01-30 20:10:53 +00:00
Matthew Woodcraft deac889efd Use "null byte" rather than "zero byte" when talking about C string literals 2024-01-30 19:18:43 +00:00
Matthew Woodcraft c6049baeaf Cover enums in the refutability rule for tuple struct patterns 2024-01-29 22:34:17 +00:00