librustc: Fix even *MORE* merge fallout!
This commit is contained in:
parent
f25f466afe
commit
10bcb60e8f
2 changed files with 3 additions and 3 deletions
|
|
@ -295,9 +295,9 @@ impl<'self> LanguageItemCollector<'self> {
|
|||
-> LanguageItemCollector<'a> {
|
||||
let mut item_refs = HashMap::new();
|
||||
|
||||
item_refs.insert(@"const", FreezeTraitLangItem as uint);
|
||||
item_refs.insert(@"freeze", FreezeTraitLangItem as uint);
|
||||
item_refs.insert(@"copy", CopyTraitLangItem as uint);
|
||||
item_refs.insert(@"owned", SendTraitLangItem as uint);
|
||||
item_refs.insert(@"send", SendTraitLangItem as uint);
|
||||
item_refs.insert(@"sized", SizedTraitLangItem as uint);
|
||||
|
||||
item_refs.insert(@"drop", DropTraitLangItem as uint);
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ pub mod win32 {
|
|||
pub fn as_utf16_p<T>(s: &str, f: &fn(*u16) -> T) -> T {
|
||||
let mut t = s.to_utf16();
|
||||
// Null terminate before passing on.
|
||||
t += [0u16];
|
||||
t.push(0u16);
|
||||
vec::as_imm_buf(t, |buf, _len| f(buf))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue