Skip to content

Rollup of 8 pull requests #140298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Apr 25, 2025
Merged
Changes from 2 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
13303a5
Update the index of Result to make the summary more comprehensive
Natural-selection1 Mar 26, 2025
f8f2330
Solved suggestions
Natural-selection1 Apr 21, 2025
a4630f7
fix ICE in attribute name printing
folkertdev Apr 23, 2025
f86cd70
keep original text for is_ok and is_err
Natural-selection1 Apr 24, 2025
56d5efc
add examples using .as_ref() for is_err_and and is_ok_and
Natural-selection1 Apr 24, 2025
3a14991
fix example
Natural-selection1 Apr 24, 2025
1fd928e
fix doc error
Natural-selection1 Apr 24, 2025
d054690
Unify the format of rustc cli flags
xizheyin Apr 22, 2025
cdc7298
Solved suggestions
Natural-selection1 Apr 25, 2025
49cb451
docs(std): mention const blocks in const keyword doc page
ismailarilik Apr 25, 2025
0e4ffa1
Add a tidy check for GCC submodule version
Kobzol Mar 5, 2025
796a9ee
Update gcc submodule to 0ea98a1365b81f7488073512c850e8ee951a4afd
Kobzol Apr 25, 2025
8604d0f
rustdoc: fix typo change from equivelent to equivalent
styvane Apr 25, 2025
999b906
Add option style comment for `rustc_optgroups`
xizheyin Apr 25, 2025
db2a73e
Cleaned up 5 tests in `tests/ui`
reddevilmidzy Apr 19, 2025
d3a4ebc
remove expect() in unnecessary_transmutes
bend-n Apr 25, 2025
4bbd21b
Rollup merge of #137683 - Kobzol:tidy-gcc-submodule, r=GuillaumeGomez
matthiaskrgr Apr 25, 2025
a353796
Rollup merge of #138968 - Natural-selection1:update-Result-doc, r=Ama…
matthiaskrgr Apr 25, 2025
394cdca
Rollup merge of #139572 - ismailarilik:docs/std/mention-const-blocks-…
matthiaskrgr Apr 25, 2025
eb225e3
Rollup merge of #140152 - xizheyin:issue-140102, r=jieyouxu
matthiaskrgr Apr 25, 2025
7f27d16
Rollup merge of #140193 - folkertdev:fix-issue-140082, r=jdonszelmann
matthiaskrgr Apr 25, 2025
8888488
Rollup merge of #140205 - reddevilmidzy:clean-up-test, r=jieyouxu
matthiaskrgr Apr 25, 2025
4323939
Rollup merge of #140284 - bend-n:fix-expectation-unmet, r=jieyouxu
matthiaskrgr Apr 25, 2025
99dc43b
Rollup merge of #140290 - styvane:patch0001-fix-typo-in-rusdoc-search…
matthiaskrgr Apr 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion library/std/src/keyword_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ mod break_keyword {}

#[doc(keyword = "const")]
//
/// Compile-time constants, compile-time evaluable functions, and raw pointers.
/// Compile-time constants, compile-time blocks, compile-time evaluable functions, and raw pointers.
///
/// ## Compile-time constants
///
Expand Down Expand Up @@ -166,6 +166,12 @@ mod break_keyword {}
///
/// For more detail on `const`, see the [Rust Book] or the [Reference].
///
/// ## Compile-time blocks
///
/// The `const` keyword can also be used to define a block of code that is evaluated at compile time.
/// This is useful for ensuring certain computations are completed before optimizations happen, as well as
/// before runtime. For more details, see the [Reference][const-blocks].
///
/// ## Compile-time evaluable functions
///
/// The other main use of the `const` keyword is in `const fn`. This marks a function as being
Expand All @@ -184,6 +190,7 @@ mod break_keyword {}
/// [pointer primitive]: pointer
/// [Rust Book]: ../book/ch03-01-variables-and-mutability.html#constants
/// [Reference]: ../reference/items/constant-items.html
/// [const-blocks]: ../reference/expressions/block-expr.html#const-blocks
/// [const-eval]: ../reference/const_eval.html
mod const_keyword {}

Expand Down