diff options
| author | Lenny222 <github@kudling.de> | 2012-01-03 19:08:13 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-04 09:33:07 +0100 |
| commit | d1ffe5034b341a9a522c01705cafdb19bac9cedb (patch) | |
| tree | 3f9a1b4110b5010e7c6e8d82d38e642831be989f /src/comp/metadata | |
| parent | dd284eb396d802646106bdb15f474ebc10a9dfbb (diff) | |
| download | rust-d1ffe5034b341a9a522c01705cafdb19bac9cedb.tar.gz rust-d1ffe5034b341a9a522c01705cafdb19bac9cedb.zip | |
"str": rename "str_from_cstr" to "from_cstr" (analogous to the other "from_*")
Diffstat (limited to 'src/comp/metadata')
| -rw-r--r-- | src/comp/metadata/creader.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/metadata/creader.rs b/src/comp/metadata/creader.rs index 2536e2efcb5..21ead604d31 100644 --- a/src/comp/metadata/creader.rs +++ b/src/comp/metadata/creader.rs @@ -216,7 +216,7 @@ fn get_metadata_section(sess: session::session, let si = mk_section_iter(of.llof); while llvm::LLVMIsSectionIteratorAtEnd(of.llof, si.llsi) == False { let name_buf = llvm::LLVMGetSectionName(si.llsi); - let name = unsafe { str::str_from_cstr(name_buf) }; + let name = unsafe { str::from_cstr(name_buf) }; if str::eq(name, sess.get_targ_cfg().target_strs.meta_sect_name) { let cbuf = llvm::LLVMGetSectionContents(si.llsi); let csz = llvm::LLVMGetSectionSize(si.llsi); |
