Documentation

Miri.Input.CompilerConstantQueries

Checked reuse of real rustc normalization and Const::eval query results. Sources: ty/instance.rs::try_instantiate_mir_and_normalize_erasing_regions; mir/consts.rs::Const::eval; Miri operand.rs::eval_const_to_op. A query key contains the complete instance, source body, MIR location and structural operand path. A source span alone is never an identity. Failed or absent compiler queries remain obligations and fail when requested.

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        Instances For
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              Instances For

                A source compatibility check is deep over JSON. Production preparation does it once, then carries this binding with the exact values it checked. The private constructor and dependent indices prevent a caller from supplying an arbitrary cached Boolean or reusing it for different metadata.

                Instances For
                  def Miri.Input.CompilerConstantQueries.bind (prepared : Prepared) (runtime : RuntimeMetadata) (sourceEquality : Option (RuntimeMetadata.JsonReflexivity runtime.source.raw) := none) :
                  Binding prepared runtime
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For

                    Build only from explicit exporter compiler-query context. In particular, monomorphic-looking syntax is never taken as evidence of normalization.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For

                      Bind the exact interpreter source site before evaluation. All machine provenance/extern-static leaves retain their stateful failure behavior.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For