add docs for `emulate_foreign_item_by_bame

This commit is contained in:
Christian Poveda 2020-02-19 17:09:12 -05:00
parent 32bc015e35
commit dbef2340b2
No known key found for this signature in database
GPG key ID: 27525EF5E7420A50

View file

@ -178,6 +178,9 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
Ok(None)
}
/// Emulates calling a foreign item using its name, failing if the item is not supported.
/// Returns Ok(false) if after calling this function, the call should return earlier instead of
/// going to the next block.
fn emulate_foreign_item_by_name(
&mut self,
link_name: &str,