thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan (Jira)" <j...@apache.org>
Subject [jira] [Comment Edited] (THRIFT-5071) Rust: rust tutorial can not be compiled with rust edition 2018
Date Sun, 23 Feb 2020 19:27:00 GMT

    [ https://issues.apache.org/jira/browse/THRIFT-5071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17043034#comment-17043034
] 

Jonathan edited comment on THRIFT-5071 at 2/23/20 7:26 PM:
-----------------------------------------------------------

Here's a simple reproduction demonstrating the issue (the solving `use crate::` commented
out): [https://gist.github.com/jrajav/9b9a6783b45f46a6dd917373cd44b60b]


was (Author: jrajav):
Here's a simple reproducing example: [https://gist.github.com/jrajav/9b9a6783b45f46a6dd917373cd44b60b]

> Rust: rust tutorial can not be compiled with rust edition 2018
> --------------------------------------------------------------
>
>                 Key: THRIFT-5071
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5071
>             Project: Thrift
>          Issue Type: Bug
>          Components: Rust - Compiler, Tutorial
>    Affects Versions: 0.13.0
>         Environment: cargo 1.40.0 (bc8e4c8be 2019-11-22)
> rustc 1.40.0 (73528e339 2019-12-16)
>            Reporter: fan liwen
>            Assignee: Allen George
>            Priority: Major
>
> The rust compiler is broken for rust edition 2018. If we change the tutorial cargo (tutorial/rs/Cargo.toml)
to edition = "2018", the following error would occur:
> {code:java}
> // code placeholder
> error[E0432]: unresolved import `shared`
>   --> src/tutorial.rs:30:5
>    |
> 30 | use shared;
>    |     ^^^^^^ no `shared` external crateerror: aborting due to previous error
> {code}
>  The compiler might need to generate *use crate::shared* instead. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message