Skip to content

Commit b7a53f3

Browse files
committed
improve terminology
1 parent 117ca17 commit b7a53f3

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/linkage.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -284,21 +284,20 @@ handled consistently across the entire binary. This includes using `dlopen` or s
284284
where linking is done by the system runtime without `rustc` being involved.
285285

286286
r[link.unwinding.potential]
287-
A Rust binary or `staticlib` is called *potentially unwinding* if any of the following conditions
288-
is met:
289-
- The binary or `staticlib` is linked with [the `panic=unwind` runtime][panic-runtime].
290-
- The binary or `staticlib` contains a crate built with `-Cpanic=unwind` that makes a call
287+
A Rust artifact is called *potentially unwinding* if any of the following conditions is met:
288+
- The artifact is linked with [the `panic=unwind` runtime][panic-runtime].
289+
- The artifact contains a crate built with `-Cpanic=unwind` that makes a call
291290
to a function using a `-unwind` ABI.
292-
- The binary or `staticlib` makes a `"Rust"` ABI call to code running in a separately built
293-
`staticlib` (i.e., a separate instance of the Rust runtime), and that other `staticlib` is
291+
- The artifact makes a `"Rust"` ABI call to code running in another Rust
292+
artifact that has a separate copy of the Rust runtime, and that other artifact is
294293
potentially unwinding.
295294

296295
> [!NOTE]
297-
> This definition captures whether a `"Rust"` ABI call inside a Rust binary or `staticlib` can ever
296+
> This definition captures whether a `"Rust"` ABI call inside a Rust artifact can ever
298297
> unwind.
299298
300299
r[link.unwinding.prohibited]
301-
If a Rust binary or `staticlib` is potentially unwinding, then all its crates must be built with `-Cpanic=unwind`.
300+
If a Rust artifact is potentially unwinding, then all its crates must be built with `-Cpanic=unwind`.
302301

303302
> [!NOTE]
304303
> This restriction can only be violated when mixing code with different `-C panic` flags

0 commit comments

Comments
 (0)