From dbef2340b293e1ad825c7ed2aadff24ad4991cc3 Mon Sep 17 00:00:00 2001 From: Christian Poveda Date: Wed, 19 Feb 2020 17:09:12 -0500 Subject: [PATCH] add docs for `emulate_foreign_item_by_bame --- src/shims/foreign_items.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shims/foreign_items.rs b/src/shims/foreign_items.rs index 14e08f5181f5..3df653d1741a 100644 --- a/src/shims/foreign_items.rs +++ b/src/shims/foreign_items.rs @@ -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,