Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5071

Rust: rust tutorial can not be compiled with rust edition 2018

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.0
    • 0.14.0
    • Rust - Compiler, Tutorial
    • None
    • cargo 1.40.0 (bc8e4c8be 2019-11-22)

      rustc 1.40.0 (73528e339 2019-12-16)

    Description

      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 placeholder
      error[E0432]: unresolved import `shared`
        --> src/tutorial.rs:30:5
         |
      30 | use shared;
         |     ^^^^^^ no `shared` external crateerror: aborting due to previous error
      

       The compiler might need to generate use crate::shared instead. 

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            allengeorge Allen George
            fanliwen fan liwen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment