Eric Huss
51817951d0
Merge pull request #1468 from petrochenkov/debmac
...
Add docs for `#[collapse_debuginfo]` attribute
2024-04-27 17:54:45 +00:00
Eric Huss
2d51a2aec4
Add an example of collapse_debuginfo
2024-04-27 10:53:08 -07:00
Eric Huss
5854fcc286
Merge pull request #1420 from daxpedda/wasm-target-feature-phase-4-5
...
Stabilize Wasm target features that are in phase 4 and 5
2024-04-21 13:47:07 +00:00
Eric Huss
5e68de3dc2
Merge pull request #1493 from kpreid/patch-1
...
Expand and clarify primitive alignment
2024-04-20 14:05:08 +00:00
Eric Huss
330ef95694
Clone: Also mention closures that don't capture anything
2024-04-17 08:04:47 -07:00
Kevin Reid
a432cf4afd
Expand and clarify primitive alignment
...
These changes are intended to make the section more informative and readable, without making any new normative claims.
* Specify that the alignment might be _less_ than the size, rather than just that it might be different. This is mandatory and stated in the previous section, but I think it's useful to reiterate here.
* Mention `u128`/`i128` as another example of alignment less than size, so that this doesn't sound like a mainly 32-bit thing.
* Add `usize`/`isize` to the size table, so it can be spotted at a glance.
2024-04-16 09:35:51 -07:00
Conrad Ludgate
4f47e3ffe7
Update clone reference to include closures
2024-04-16 06:55:59 +01:00
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
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
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
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
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
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
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
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
Adam Gemmell
db390b7cfe
Update aarch64 target feature docs to match LLVM
2024-02-15 14:44:13 +00:00
Eric Huss
e33f255728
Fix grammar for TypePathFn
2024-02-15 05:27:15 -08:00
Eric Huss
c495b9660f
Link `collapse_debuginfo` in the index of built-in attributes.
2024-02-14 10:21:12 -08:00
Eric Huss
860fe4acc1
Use semantic line wrapping.
2024-02-14 10:18:40 -08:00
Eric Huss
4e9c91f0ec
Place `rustc` behavior in a side note.
...
Generally the reference tries to stay focused on the language, and only
provide implementation notes as side-information.
2024-02-14 10:17:29 -08:00
Eric Huss
224b6c5306
Use em-dash separator
2024-02-14 10:16:40 -08:00
Eric Huss
bb166095d1
Use standard template introducing an attribute.
2024-02-14 10:16:23 -08:00
Vadim Petrochenkov
0bf5d4e44c
Add docs for `#[collapse_debuginfo]` attribute
2024-02-13 16:26:42 +03: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
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
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