thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Geyer (Jira)" <j...@apache.org>
Subject [jira] [Assigned] (THRIFT-5124) Cannot use reserved language keyword
Date Fri, 28 Feb 2020 08:51:00 GMT

     [ https://issues.apache.org/jira/browse/THRIFT-5124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jens Geyer reassigned THRIFT-5124:
----------------------------------

    Assignee: Jens Geyer

> Cannot use reserved language keyword
> ------------------------------------
>
>                 Key: THRIFT-5124
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5124
>             Project: Thrift
>          Issue Type: Bug
>          Components: Rust - Compiler
>         Environment: MacOS with thrift version 0.13
>            Reporter: Chris Holcombe
>            Assignee: Jens Geyer
>            Priority: Major
>
> When running 
> {noformat}
> thrift --gen rs -out . sample.thrift{noformat}
> against a thrift file that contains a field with `From from` the generation fails with
the error:
> {noformat}
> [FAILURE:generation:1] Cannot use reserved language keyword: "from"{noformat}
> It was my understanding that the rust library should escape all reserved words.
> An example thrift file:
> {noformat}
> struct From {
>   1: string name,
> }
> struct Sample {
>   1: From from,
> }{noformat}
>  



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

Mime
View raw message