]> git.lizzy.rs Git - rust.git/commitdiff
There should be no metadata to read on iOS
authorValerii Hiora <valerii.hiora@gmail.com>
Fri, 13 Jun 2014 08:41:00 +0000 (11:41 +0300)
committerValerii Hiora <valerii.hiora@gmail.com>
Fri, 13 Jun 2014 08:41:00 +0000 (11:41 +0300)
src/librustc/metadata/loader.rs

index c1f29d7596bacd9d93607370fb1614dbbc61b3df..978246b2436e86a379e6fa880208f86a15f94f7e 100644 (file)
@@ -602,7 +602,7 @@ pub fn meta_section_name(os: abi::Os) -> Option<&'static str> {
 pub fn read_meta_section_name(os: abi::Os) -> &'static str {
     match os {
         abi::OsMacos => "__note.rustc",
-        abi::OsiOS => "__note.rustc",
+        abi::OsiOS => unreachable!(),
         abi::OsWin32 => ".note.rustc",
         abi::OsLinux => ".note.rustc",
         abi::OsAndroid => ".note.rustc",