File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,17 @@ team: The Compiler Team <https://www.rust-lang.org/governance/teams/compiler>
8
8
9
9
In a recent Rust issue ([ #99923 ] [ ] ), a developer noted that the upcoming
10
10
1.64-beta version of Rust had started signalling errors on their crate,
11
- [ ` icu4x ` ] [ icu4x ] . The ` icu4x ` crate makes heavy use of * const-eval* : Rust code
12
- that is run at compile-time but produces values that may end up embedded in the
11
+ [ ` icu4x ` ] [ icu4x ] . The ` icu4x ` crate uses unsafe code during const evaluation.
12
+ * Const evaluation* , or just "const-eval",
13
+ runs at compile-time but produces values that may end up embedded in the
13
14
final object code that executes at runtime.
14
15
15
16
Rust's const-eval system supports both safe and unsafe Rust, but the rules for
16
17
what unsafe code is allowed to do during const-eval are even more strict than
17
18
what is allowed for unsafe code at runtime. This post is going to go into detail
18
19
about one of those rules.
19
20
20
- (If your ` const ` code does not use any ` unsafe ` blocks or call any ` const fn `
21
+ (Note: If your ` const ` code does not use any ` unsafe ` blocks or call any ` const fn `
21
22
with an ` unsafe ` block, then you do not need to worry about this!)
22
23
23
24
<!--
You can’t perform that action at this time.
0 commit comments