X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fhelpers.rs;h=36d3181ce4e4b066e9a00bec825fd56b3d684391;hb=d85f09c4e4bdee1d9698dce9a2163f46f1e1697d;hp=169bb4205649eb348ba6a06d18c65ec7841acc83;hpb=0ff05c4cfe534321b194bf3bedf028df92ef519c;p=rust.git diff --git a/src/helpers.rs b/src/helpers.rs index 169bb420564..36d3181ce4e 100644 --- a/src/helpers.rs +++ b/src/helpers.rs @@ -374,16 +374,16 @@ fn check_no_isolation(&self, name: &str) -> InterpResult<'tcx> { } Ok(()) } - /// Helper function used inside the shims of foreign functions to assert that the target - /// platform is `platform`. It panics showing a message with the `name` of the foreign function + /// Helper function used inside the shims of foreign functions to assert that the target OS + /// is `target_os`. It panics showing a message with the `name` of the foreign function /// if this is not the case. - fn assert_platform(&self, platform: &str, name: &str) { + fn assert_target_os(&self, target_os: &str, name: &str) { assert_eq!( self.eval_context_ref().tcx.sess.target.target.target_os, - platform, - "`{}` is only available on the `{}` platform", + target_os, + "`{}` is only available on the `{}` target OS", name, - platform, + target_os, ) }