瀏覽代碼

Merge pull request #96 from renato-zannon/rustup

Update num-macros to rust master
Alex Crichton 9 年之前
父節點
當前提交
dab8c6de71
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      num-macros/src/lib.rs

+ 2 - 0
num-macros/src/lib.rs

@@ -78,6 +78,7 @@ pub fn expand_deriving_from_primitive(cx: &mut ExtCtxt,
         methods: vec!(
             MethodDef {
                 name: "from_i64",
+                is_unsafe: false,
                 generics: LifetimeBounds::empty(),
                 explicit_self: None,
                 args: vec!(Literal(path_local!(i64))),
@@ -93,6 +94,7 @@ pub fn expand_deriving_from_primitive(cx: &mut ExtCtxt,
             },
             MethodDef {
                 name: "from_u64",
+                is_unsafe: false,
                 generics: LifetimeBounds::empty(),
                 explicit_self: None,
                 args: vec!(Literal(path_local!(u64))),