Skip to content

Commit dbef234

Browse files
committed
add docs for `emulate_foreign_item_by_bame
1 parent 32bc015 commit dbef234

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/shims/foreign_items.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
178178
Ok(None)
179179
}
180180

181+
/// Emulates calling a foreign item using its name, failing if the item is not supported.
182+
/// Returns Ok(false) if after calling this function, the call should return earlier instead of
183+
/// going to the next block.
181184
fn emulate_foreign_item_by_name(
182185
&mut self,
183186
link_name: &str,

0 commit comments

Comments
 (0)