Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
cb1faf8a
Commit
cb1faf8a
authored
Sep 22, 2019
by
Paddy Horan
Committed by
Nick Hynes
Sep 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Rust] Fixes "common" sub crate using nightly and master (#3965)
parent
43f54a58
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
rust/common/src/array.rs
+1
-1
rust/common/src/lib.rs
+1
-1
rust/common/src/packed_func.rs
+1
-1
rust/frontend/src/lib.rs
+1
-1
rust/macros/src/lib.rs
+1
-1
No files found.
rust/common/src/array.rs
View file @
cb1faf8a
...
...
@@ -97,7 +97,7 @@ pub struct TVMContext {
impl
<
'a
>
From
<&
'a
TVMContext
>
for
DLContext
{
fn
from
(
ctx
:
&
'a
TVMContext
)
->
Self
{
Self
{
device_type
:
ctx
.device_type
as
u
32
,
device_type
:
ctx
.device_type
as
i
32
,
device_id
:
ctx
.device_id
as
i32
,
}
}
...
...
rust/common/src/lib.rs
View file @
cb1faf8a
...
...
@@ -20,7 +20,7 @@
//! This crate contains the refactored basic components required
//! for `runtime` and `frontend` TVM crates.
#
!
[
feature
(
box_syntax
,
t
ype_alias_enum_variants
,
t
rait_alias
)]
#
!
[
feature
(
box_syntax
,
trait_alias
)]
#[macro_use]
extern
crate
failure
;
...
...
rust/common/src/packed_func.rs
View file @
cb1faf8a
...
...
@@ -83,7 +83,7 @@ macro_rules! TVMPODValue {
use
$name
::
*
;
#[allow(non_upper_case_globals)]
unsafe
{
match
type_code
{
match
type_code
as
i32
{
DLDataTypeCode_kDLInt
=>
Int
(
$value
.v_int64
),
DLDataTypeCode_kDLUInt
=>
UInt
(
$value
.v_int64
),
DLDataTypeCode_kDLFloat
=>
Float
(
$value
.v_float64
),
...
...
rust/frontend/src/lib.rs
View file @
cb1faf8a
...
...
@@ -30,7 +30,7 @@
//!
//! Checkout the `examples` repository for more details.
#
!
[
feature
(
box_syntax
,
type_alias_enum_variants
)]
#
!
[
feature
(
box_syntax
)]
#[macro_use]
extern
crate
failure
;
...
...
rust/macros/src/lib.rs
View file @
cb1faf8a
...
...
@@ -17,7 +17,7 @@
* under the License.
*/
#
!
[
feature
(
bind_by_move_pattern_guards
,
proc_macro_span
)]
#
!
[
feature
(
proc_macro_span
)]
extern
crate
proc_macro
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment