8000 [BUG]: It has become hard to build Rust code with older compilers · Issue #5349 · compiler-explorer/compiler-explorer · GitHub
[go: up one dir, main page]

Skip to content
[BUG]: It has become hard to build Rust code with older compilers #5349
@RalfJung

Description

@RalfJung

Describe the bug

When I just quickly want to build some Rust code with older compilers, that no longer works:

<Compilation failed>

# For more information see the output window
# To open the output window, click or drag the "Output" icon at the bottom of this window

The output window says

error: argument for --edition must be one of: 2015|2018. (instead was `2021`)

Compiler returned: 1

Steps to reproduce

  1. visit https://rust.godbolt.org/
  2. select an old compiler (I used 1.37.0)

This leads to the error shown above.

Expected behavior

This should build successfully, as the given code is compatible with that compiler.

Reproduction link

Not applicablehttps://rust.godbolt.org/

Screenshots

Not applicable

Operating System

No response

Browser version

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0