Eric Huss
93137b002b
Merge pull request #1338 from alexpovel/patch-1
...
fix: Typo/reference
2023-03-06 11:59:36 -08:00
Alex Povel
e185cb9465
fix: Typo/reference
2023-03-06 19:51:08 +01:00
Eric Huss
cec5aaf9bd
Document f16c target feature
2023-03-03 16:33:19 -08:00
Caleb Zulawski
f37b1c11fc
Document movbe target feature
2023-03-02 19:32:23 -05:00
Eric Huss
650dd01892
Fix example for non-x86 targets
2023-02-28 08:55:25 -08:00
Eric Huss
33d68e1c92
Merge pull request #1331 from Nugine/cmpxchg16b
...
Document `cmpxchg16b` target feature
2023-02-28 08:07:20 -08:00
Nugine
a6190a8041
Document `cmpxchg16b` target feature
2023-02-16 16:02:02 +08:00
Alan Wu
021889f262
Adjust language to also cover named constants
...
Especially since it seems that there is no test in rust-lang/rust that
covers the unamed constant case (even though the implementation covers
it). https://github.com/rust-lang/rust/issues/93838#issuecomment-1430524383
2023-02-14 18:41:43 -05:00
Eric Huss
a9afb04b47
Merge pull request #1309 from nicholasbishop/bishop-add-efiapi
...
Document the `efiapi` ABI
2023-02-14 06:57:15 -08:00
Eric Huss
e5adb99c04
Merge pull request #1330 from dtolnay-contrib/rangepattern
...
Eliminate 'half open' terminology from range pattern grammar
2023-02-08 10:09:03 -08:00
David Tolnay
e844f9509b
Eliminate 'half open' terminology from range pattern grammar
...
As described in issue 1329, the Reference's current use of this
terminology does not match rustc's use.
Following the core::ops trait terminology (as is already done for
RangeExpression) results in a clearer grammar.
2023-02-07 16:56:04 -08:00
Alan Wu
86691a19e8
Clarify that unnamed constants are always evaluated at compile time
...
See https://github.com/rust-lang/rust/issues/93838
It seems like everyone is onboard with blessing this behavior as stable.
2023-02-03 15:41:23 -05:00
Eric Huss
b9ccb0960e
Merge pull request #1327 from RalfJung/place-expr
...
fix place expression context example
2023-02-02 06:26:52 -08:00
Ralf Jung
8d49ecf542
fix place expression context example
2023-02-02 11:10:26 +01:00
Eric Huss
0f2974802b
Merge pull request #1324 from tshepang/patch-2
...
remove confusing words
2023-01-31 19:50:50 -08:00
Eric Huss
088b6d8b78
Merge pull request #1325 from rust-lang/tmandry-patch-1
...
Reword "expression for a match arm"
2023-01-31 19:49:46 -08:00
Tyler Mandry
27dc03f2cd
Clarify match arm "expression" as "body expression"
2023-01-31 16:03:45 -05:00
Tyler Mandry
b1f11e4e93
Remove "expression for a match arm" wording
...
It's unclear what this bullet means. If it means a match guard, that is covered in the line above. If it referred to the scrutinee, that would be wrong. I don't think it's possible to embed an expression inside of a match arm _pattern_.
This came up in the [lang team triage meeting][meeting].
[meeting]: https://hackmd.io/JACzq-ssT4qtH0DS3B8nQQ?both#%E2%80%9CIntroduce-terminating-scope-for-tail-expressions-of-breakable-scopes%E2%80%9D-rust106493
2023-01-31 14:49:40 -05:00
Tshepang Mbambo
99ed3f87f0
remove confusing words
2023-01-31 19:51:32 +02:00
Amanieu d'Antras
7b6a86082a
Relax ordering rules for `asm!` operands
...
This updates the reference to match the changes in rust-lang/rust#105798
2023-01-27 08:12:58 +00:00
Eric Huss
22882fb3f7
Merge pull request #1322 from steffahn/assigment
...
Fix typo “assigment” (…and more)
2023-01-23 05:21:28 -08:00
Frank Steffahn
894afd4f72
Fix two more typos
2023-01-23 18:45:29 +09:00
Frank Steffahn
87895584c9
Fix typo “assigment”
2023-01-23 16:59:22 +09:00
Eric Huss
c4202a830e
Merge pull request #1319 from jamesreprise/patch-1
...
Syntax correction for trait-bounds.md
2023-01-20 10:38:44 -08:00
James Williams
fd6e375b89
Correct for trait-bounds.md
...
`fn f<A> where A: Copy () {}` -> `fn f<A>() where A: Copy {}`
2023-01-20 10:56:19 +00:00
Lokathor
df9643a33c
Update codegen.md
2023-01-18 10:59:32 -07:00
Eric Huss
2cb0ed9ba5
Merge pull request #1318 from kklibo/patch-1
...
Update field-expr.md
2023-01-12 19:16:35 -08:00
kklibo
08b97f94cc
Update field-expr.md
...
trivial grammar fix
2023-01-12 09:16:21 -08:00
Eric Huss
cc07ac0507
Merge pull request #1055 from fee1-dead/arbitrary_enum_discriminant
...
Update documentation for arbitrary_enum_discriminant feature
2023-01-08 09:31:28 -08:00
Eric Huss
4f32346c1a
Add anchor for removed section.
...
This fixes some broken links.
2023-01-08 09:27:12 -08:00
Eric Huss
9af0aa4a96
Use span instead of <a> for anchor placement.
...
Although both work, semantically an `<a>` without an `href` is intended
to be a placeholder for a link.
2023-01-08 09:15:27 -08:00
Eric Huss
1b3868115b
Normalize section header capitalization.
...
The reference only uses uppercase for the first letter.
2023-01-08 09:07:35 -08:00
Eric Huss
c351aa715c
Clarify exactly which kinds of enums can be `as` casted.
...
The field-less casting was grandfathered in when arbitrary_enum_discriminant
was stabilized. It probably shouldn't be allowed.
2023-01-08 09:06:05 -08:00
Eric Huss
ca43062e34
Merge pull request #1315 from steffahn/links-for-in-h-a-e-t-s-expressions
...
Add links to definitions of terminology ...
2023-01-07 07:08:38 -08:00
Frank Steffahn
f9c4fad3b4
Add links to definitions of terminology ...
...
... in the definition for what an expression that
“has an extended temporary scope” is.
Improvement discussed in and motivated by the question in this [thread on URLO].
[thread on URLO]: https://users.rust-lang.org/t/how-to-understand-extending-based-on-expressions/87068/16?u=steffahn
2023-01-07 20:09:29 +09:00
Eric Huss
426e8bdd50
Merge pull request #1314 from ehuss/triagebot-shortcut
...
Enable triagebot shortcuts
2023-01-06 16:08:06 -08:00
Eric Huss
d8ad654fde
Enable triagebot shortcuts
2023-01-06 15:33:34 -08:00
Eric Huss
3ae62681ff
Merge pull request #1285 from fmease/self-is-unsized-by-default
...
Document that type parameter `Self` is unsized by default
2022-12-04 16:51:50 -08:00
Eric Huss
e2797998dc
Merge pull request #1310 from crabrs/patch-1
...
replace `crateid` term with `crate_name`
2022-11-30 14:59:05 -08:00
Eugene
8ca80a14d3
repalce `crateid` term with `crate_name`
...
The `crateid` term or attribute is replaced with `crate_name` in [chapter crates and source files](https://doc.rust-lang.org/reference/crates-and-source-files.html#the-crate_name-attribute ). It was original proposed in [RFC0109] (https://rust-lang.github.io/rfcs/0109-remove-crate-id.html ) and merged in [PR109](https://github.com/rust-lang/rfcs/pull/109 )
2022-11-30 21:27:06 +08:00
Eric Huss
b17be545ef
Merge pull request #1299 from petrochenkov/stabverb
...
Document native library modifier `verbatim`
2022-11-28 18:22:19 -08:00
Nicholas Bishop
7ab06192d6
Document the efiapi ABI
2022-11-27 18:46:08 -05:00
Eric Huss
c7a39ca2c7
Merge pull request #1305 from mattheww/2022-11_parse_all_suffixes
...
Update literal suffix docs for rust-lang/rust#102944
2022-11-25 14:44:24 -08:00
Eric Huss
e203b978bb
Merge pull request #1290 from RalfJung/aliasing
...
update aliasing rules section of the reference
2022-11-25 12:54:39 -08:00
Lokathor
3d45616386
Clearly specify the instruction_set inlining restrictions
2022-11-23 09:43:02 -07:00
Matthew Woodcraft
018b14be9d
tokens.md: add optional SUFFIX to the Lexer blocks for non-numeric literals
2022-11-20 11:59:45 +00:00
Matthew Woodcraft
ccde77edcb
Numeric literals: say that the parser is now more lenient
...
This reflects the changes made in in rust-lang/rust#102944 .
Previously, unknown suffixes were rejected by the parser. Now they are
accepted by the parser and rejected at a later stage.
Similarly, integer literals too large to fit in u128 are now accepted by the
parser.
Forms like 5f32 are now INTEGER_LITERAL rather than FLOAT_LITERAL.
The notion of a 'pseudoliteral' is no longer required.
2022-11-20 11:59:45 +00:00
Matthew Woodcraft
b333c25a43
tokens.md: remove the "examples of invalid integer literals"
...
These are covered under "Reserved forms similar to number literals"
2022-11-20 11:59:45 +00:00
Matthew Woodcraft
c36b3c27ac
tokens.md: add one more case to the "Reserved forms" lexer block
2022-11-20 11:59:45 +00:00
Matthew Woodcraft
1c70ae7a5e
literal-expr.md: say that suffixes are removed before interpreting numbers
2022-11-20 11:59:45 +00:00