Documentation

Miri.Interpreter.MainThread

Pinned eval.rs::MainThreadState::on_main_stack_empty (309-360), call_main (481-558), ty/instance.rs::Instance::mono (527-538), rustc_session/config/ sigpipe.rs::DEFAULT. Compiler queries, actual allocation/read/call operations remain required stateful leaves; source ordering and checks execute here.

Instances For
    • hasBoundVariables : Bool
    • outputHasBoundVariables : Bool
    • returnType : MIR.TyId
    • fnPointerType : MIR.TyId

      Compiler Ty::new_fn_ptr from the same entry signature.

    Instances For
      Instances For
        Instances For
          Instances For
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              @[reducible, inline]
              abbrev Miri.Interpreter.MainThreadM (P E H Error A : Type) :
              Equations
              Instances For
                structure Miri.Interpreter.MainThreadQueries (P E H Error : Type) :
                Instances For
                  def Miri.Interpreter.callMain {P E H Error : Type} (target : ABI.RuntimeTargetDataLayout) (queries : MainThreadQueries P E H Error) (entry : MIR.DefId) (entryType : MainEntryType) (argc argv : TlsImmediate P) :
                  MainThreadM P E H Error Unit
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def Miri.Interpreter.mainThreadOnStackEmpty {P E H Error ProvExtra : Type} [Memory.PointerProvenance P] (format : ConstructorBinaryFormat) (platform : TlsPlatform) (target : ABI.RuntimeTargetDataLayout) (constructors : GlobalCtorQueries P E H Error) (main : MainThreadQueries P E H Error) (destructors : TlsDestructorQueries P E H Error) (termination : ThreadExitQueries P E H ProvExtra Error) :

                    Global ctor callbacks run before main is scheduled. Main's actual return memory is read only once its stack empties; signed i32 narrowing failure is UB. ProgramExit's machine-stop outcome propagates without reporting callback Ready.

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