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
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
Matthew Woodcraft
eada9ba8ff
Say that Struct patterns can match enum values
2024-01-29 22:34:14 +00:00
Matthew Woodcraft
8ba3c49114
Input format: note about include! macros
2024-01-28 18:44:28 +00:00
Matthew Woodcraft
e364b6c6f9
lexical structure: move the description of shebang-removal
...
This takes place after CRLF normalization.
It's better not to list the shebang in a Lexer block, as it isn't a token that
can be fed to a macro.
2024-01-28 18:42:40 +00:00
Matthew Woodcraft
5f512692d3
lexical structure: move the description of BOM-removal
...
This takes place at the same time as CRLF normalisation.
It's better not to list it in a Lexer block, as it isn't a token that can be
fed to a macro.
2024-01-28 18:42:40 +00:00
Matthew Woodcraft
fa56fdba0e
Lexical structure: move the description of CRLF normalization
...
We now say that CRLF normalization happens as a separate pass before
tokenization.
2024-01-28 18:42:40 +00:00
Matthew Woodcraft
52dadd7d14
tokens.md: remove sentence about the type of C string literals
...
This is now covered in literal-expr.md
2024-01-27 19:40:14 +00:00
Matthew Woodcraft
075739db0e
Literal expressions: document C-string literals
2024-01-27 19:24:36 +00:00
Eric Huss
a0b119535e
Merge pull request #1450 from nnethercote/nul-in-c-str-literal
...
Update C-String literals to reject NUL
2024-01-27 19:22:06 +00:00
Eric Huss
e848fbcdfe
Merge pull request #1442 from RalfJung/asm-terminate
...
pure asm blocks must terminate
2024-01-27 17:03:30 +00:00
Eric Huss
d4eac740a8
Merge pull request #1452 from mattheww/2024-01_string_literal_expr
...
String literal expressions
2024-01-27 16:43:49 +00:00
Nicholas Nethercote
a393aaf4a1
Update reference for https://github.com/rust-lang/rust/pull/119172 .
...
Which moved the checking for NUL chars in C string literals earlier.
2024-01-26 15:44:37 +11:00
Matthew Woodcraft
00a2ac603a
tokens.md: link to specific headings in literal-expr.md
...
Now that page is longer, linking to the top of the page isn't so helpful
2024-01-25 21:24:45 +00:00
Matthew Woodcraft
659f85640d
Move discussion of string continuations from tokens.md to literal-expr.md
2024-01-25 21:24:45 +00:00
Matthew Woodcraft
7e3c5c3ea5
tokens.md: remove sentence about the type of byte string literals
...
This is now covered in literal-expr.md
2024-01-25 21:24:45 +00:00
Matthew Woodcraft
09b003a80d
Literal expressions: document non-C-string textual literals
2024-01-25 21:24:45 +00:00
Eric Huss
8c77e8be9d
Merge pull request #1424 from mattheww/2023-11_larrow
...
Document that <- is a single token
2024-01-08 15:16:51 +00:00
Chris Denton
2610acf808
Document `target_abi`
2024-01-04 19:43:05 +00:00
Eric Huss
3565c7978c
Merge pull request #1444 from Jules-Bertholet/patch-1
...
Use proper footnote for number literals `_` separator note
2023-12-29 21:01:19 +00:00
Eric Huss
ad9a69cc18
Use real markdown footnote for `#` sets.
2023-12-29 13:00:01 -08:00
Jules Bertholet
dc74a7564f
Use proper footnote for number literals `_` separator note
2023-12-29 15:16:33 -05:00
Ralf Jung
8eda943339
adjust wording
...
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
2023-12-26 18:28:15 +01:00
Ralf Jung
ed33f7550c
pure asm blocks must terminate
2023-12-26 17:46:45 +01:00
Eric Huss
f9f5b5babd
Merge pull request #1435 from kpreid/patch-1
...
Document object unsafety of async-fn-in-trait
2023-12-10 16:16:17 +00:00
Kevin Reid
46ed38d89d
Document object unsafety of async-fn-in-trait
...
`async fn` in traits, and return-position `impl Trait` in traits, were stabilized by <https://github.com/rust-lang/rust/pull/115822 >. The object-safety error E0038 points to the Reference, so the Reference should mention this new criterion.
2023-12-08 10:00:32 -08:00
matthewjasper
692d216f5a
Merge pull request #1431 from madsmtm/fix-self-coercion-note
...
Fix note on `self` coercion
2023-12-04 09:45:06 +00:00
Mads Marquart
1b00b70382
Fix note on `self` coercion
2023-12-02 18:59:31 +01:00
Eric Huss
21a27e1689
Merge pull request #1423 from jmillikin/c-str-literals
...
Document C string literal tokens.
2023-12-02 15:43:20 +00:00
John Millikin
ae1eb71d5a
Document C string literal tokens (`c"..."` and `cr#"..."#`).
2023-12-02 11:21:17 +09:00
Eric Huss
01a12f22be
Merge pull request #1430 from joshlf/patch-2
...
type-layout.md: Warn about repr(align)/repr(packed) and field order
2023-11-22 15:28:27 +00:00
Joshua Liebow-Feeser
a28f858b55
type-layout.md: Warn about repr(align)/repr(packed) and field order
2023-11-21 16:49:01 -08:00
Eric Huss
75d2d5d3d4
Merge pull request #1427 from mattheww/2023-11_lone_self
...
Lone `self` in a method body resolves to the self parameter
2023-11-21 18:31:23 +00:00
Eric Huss
6a66f10957
Merge pull request #1428 from riking/patch-1
...
Reference wildcard patterns from underscore expr
2023-11-21 17:57:18 +00:00
Eric Huss
7f1e24a457
use md extension instead of html
2023-11-21 09:56:04 -08:00
Kane York
8332955ca0
Reference wildcard patterns from underscore expr
...
These appear in nearly identical locations in source code and have subtly different semantics, so cross link them.
2023-11-20 15:05:04 -08:00
Matthew Woodcraft
e8ddd3cd6b
paths.md: document standalone `self` in a method body
2023-11-19 20:07:26 +00:00
Eric Huss
cd8193e972
Merge pull request #1417 from joshlf/patch-3
...
Guarantee that raw pointer conversions preserve slice element count
2023-11-04 17:19:39 +00:00