Document runtime static mutation checks
This commit is contained in:
parent
7d5b5ff24d
commit
f98235ed9d
1 changed files with 2 additions and 1 deletions
|
|
@ -89,7 +89,8 @@ pub trait Machine<'a, 'mir, 'tcx>: Sized {
|
|||
Default +
|
||||
Clone;
|
||||
|
||||
/// The memory kind to use for copied statics -- or None if those are not supported.
|
||||
/// The memory kind to use for copied statics -- or None if statics should not be mutated
|
||||
/// and thus any such attempt will cause a `ModifiedStatic` error is raised.
|
||||
/// Statics are copied under two circumstances: When they are mutated, and when
|
||||
/// `static_with_default_tag` or `find_foreign_static` (see below) returns an owned allocation
|
||||
/// that is added to the memory so that the work is not done twice.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue