Skip to content

Commit 7d37316

Browse files
authored
Merge pull request #1759 from ehuss/undefined-warning
Use warning block in behavior-considered-undefined
2 parents 074bbab + 451a903 commit 7d37316

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

src/behavior-considered-undefined.md

+4-13
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,10 @@ behaviors. `unsafe` code that satisfies this property for any safe client is
1515
called *sound*; if `unsafe` code can be misused by safe code to exhibit
1616
undefined behavior, it is *unsound*.
1717

18-
<div class="warning">
19-
20-
***Warning:*** The following list is not exhaustive; it may grow or shrink.
21-
There is no formal model of Rust's semantics for what is and is not allowed in
22-
unsafe code, so there may be more behavior considered unsafe. We also reserve
23-
the right to make some of the behavior in that list defined in the future. In
24-
other words, this list does not say that anything will *definitely* always be
25-
undefined in all future Rust version (but we might make such commitments for
26-
some list items in the future).
27-
28-
Please read the [Rustonomicon] before writing unsafe code.
29-
30-
</div>
18+
> [!WARNING]
19+
> The following list is not exhaustive; it may grow or shrink. There is no formal model of Rust's semantics for what is and is not allowed in unsafe code, so there may be more behavior considered unsafe. We also reserve the right to make some of the behavior in that list defined in the future. In other words, this list does not say that anything will *definitely* always be undefined in all future Rust version (but we might make such commitments for some list items in the future).
20+
>
21+
> Please read the [Rustonomicon] before writing unsafe code.
3122
3223
r[undefined.race]
3324
* Data races.

0 commit comments

Comments
 (0)