Skip to content

Commit 364fff1

Browse files
RalfJungehuss
authored andcommitted
improve terminology
1 parent 0d62552 commit 364fff1

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
@@ -283,21 +283,20 @@ handled consistently across the entire binary. This includes using `dlopen` or s
283283
where linking is done by the system runtime without `rustc` being involved.
284284

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

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

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

0 commit comments

Comments
 (0)