]> git.lizzy.rs Git - rust.git/blobdiff - src/helpers.rs
platform -> target
[rust.git] / src / helpers.rs
index 169bb4205649eb348ba6a06d18c65ec7841acc83..36d3181ce4e4b066e9a00bec825fd56b3d684391 100644 (file)
@@ -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,
         )
     }