Sam Zheng
6e6e8b4219
redundant word removed
...
"struct expressions can be in used in these situations" => "struct expressions can be used in these situations"
2023-03-29 14:46:43 +08:00
Eric Huss
3c47807a31
Merge pull request #1323 from Amanieu/asm-order
...
Relax ordering rules for `asm!` operands
2023-03-26 11:42:43 -07:00
Eric Huss
76f771b9ec
Merge pull request #1342 from est31/labeled_blocks
...
Improve labeled blocks documentation
2023-03-20 13:51:44 -07:00
est31
aa9c70bda6
Improve labeled blocks documentation
...
* list labeled blocks in the namespaces page
* add an example
* improve wording
2023-03-20 18:26:23 +01:00
Eric Huss
3bb0f033f5
Merge pull request #1341 from chirsz-ever/patch-1
...
Inline assembly: Fix repeated and unordered items in guaranteed directives
2023-03-19 10:30:37 -07:00
chirsz
960ec1f2dd
Inline assembly: Fix repeated and unordered items in guaranteed directives
2023-03-19 13:06:56 +00:00
Niko Matsakis
ebab1cda4a
Merge pull request #1328 from XrXr/unamed-const-eval-timing
...
Clarify that free constants are always evaluated at compile time
2023-03-14 14:28:23 -04:00
Eric Huss
24c87f6663
Merge pull request #1336 from calebzulawski/movbe
...
Document movbe target feature
2023-03-11 05:53:24 -08:00
Eric Huss
846bdbb818
Merge pull request #1339 from tshepang/patch-2
...
fix typo
2023-03-09 06:15:53 -08:00
Tshepang Mbambo
945a2bdba1
fix typo
2023-03-09 07:41:45 +02:00
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
Caleb Zulawski
f37b1c11fc
Document movbe target feature
2023-03-02 19:32:23 -05: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
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