Skip to content

[Lean] Lean backend renders functions with hax_lib::opaque as Rust_primitives.Hax.dropped_body #1825

@abentkamp

Description

@abentkamp
#[hax_lib::opaque]
pub fn hello() {}

Open this code snippet in the playground

Actual Lean output:

def Playground.hello
  (_ : Rust_primitives.Hax.Tuple0)
  : RustM Rust_primitives.Hax.Tuple0
  := do
  (pure Rust_primitives.Hax.dropped_body)

Expected Lean output:

opaque Playground.hello
  (_ : Rust_primitives.Hax.Tuple0)
  : RustM Rust_primitives.Hax.Tuple0

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendIssue in one of the backends (i.e. F*, Coq, EC...)leanRelated to the Lean backend or library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions