{ "args": "", "askedAt": "2026-10-03T14:24:09+00:00", "compiler": "mojo_1_1_0", "firstItem": "manual/code/reference/decorators/deprecated/deprecation", "key": "fbcc5968d771c2f8c102828e69affa817f3b7c085c50ce3cdeda508ddda6317b", "mode": "run", "raw": { "buildResult": { "code": 0, "compilationOptions": [ "build", "/app/example.mojo" ], "defaultExecOptions": { "env": { "CPLUS_INCLUDE_PATH": "/usr/include/x86_64-linux-gnu", "C_INCLUDE_PATH": "/usr/include/x86_64-linux-gnu", "HOME": "/home/ce", "LD_LIBRARY_PATH": "", "LIBRARY_PATH": "/usr/lib/x86_64-linux-gnu", "MODULAR_CRASH_REPORTING_ENABLED": "false", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" }, "maxErrorOutput": 5000, "timeoutMs": 20000 }, "downloads": [], "execTime": 5819, "executableFilename": "/nosym/tmp/compiler-explorer-compilerP4Fyrg/example", "inputFilename": "example.mojo", "instructionSet": "amd64", "okToCache": true, "packageStoreTime": 45, "preparedLdPaths": [ "/opt/compiler-explorer/mojo-1.1.0/lib", "/opt/compiler-explorer/mojo-1.1.0/lib32", "/opt/compiler-explorer/mojo-1.1.0/lib64" ], "processExecutionResultTime": 0.10549500002525747, "stderr": [ { "tag": { "column": 9, "file": "example.mojo", "line": 50, "severity": 2, "text": "warning: 'MyStruct' is deprecated, use 'OtherStruct' instead" }, "text": ":50:9: warning: 'MyStruct' is deprecated, use 'OtherStruct' instead" }, { "text": " _ = MyStruct(x=5)" }, { "text": " ^~~~~~~~" }, { "text": " OtherStruct" }, { "tag": { "column": 8, "file": "example.mojo", "line": 17, "severity": 1, "text": "note: 'MyStruct' declared here" }, "text": ":17:8: note: 'MyStruct' declared here" }, { "text": "struct MyStruct:" }, { "text": " ^" }, { "tag": { "column": 19, "file": "example.mojo", "line": 52, "severity": 2, "text": "warning: Ignore. Deprecation test." }, "text": ":52:19: warning: Ignore. Deprecation test." }, { "text": " OtherStruct(2).function()" }, { "text": " ~~~~~~~~~~~~~~^~~~~~~~~" }, { "tag": { "column": 9, "file": "example.mojo", "line": 37, "severity": 1, "text": "note: 'function' declared here" }, "text": ":37:9: note: 'function' declared here" }, { "text": " def function(self):" }, { "text": " ^" }, { "tag": { "column": 11, "file": "example.mojo", "line": 54, "severity": 2, "text": "warning: Ignore. Deprecation test." }, "text": ":54:11: warning: Ignore. Deprecation test." }, { "text": " print(pi)" }, { "text": " ^~" }, { "tag": { "column": 1, "file": "example.mojo", "line": 46, "severity": 1, "text": "note: 'pi' declared here" }, "text": ":46:1: note: 'pi' declared here" }, { "text": "comptime pi = 3.141592" }, { "text": "^" } ], "stdout": [], "timedOut": false, "truncated": false }, "code": 0, "didExecute": true, "execTime": 40, "okToCache": true, "processExecutionResultTime": 0.027082999935373664, "queueTime": 4, "stderr": [], "stdout": [ { "text": "3.141592" }, { "text": "This is a functioning app" } ], "timedOut": false, "truncated": false }, "result": { "asm": null, "buildStderr": ":50:9: warning: 'MyStruct' is deprecated, use 'OtherStruct' instead\n _ = MyStruct(x=5)\n ^~~~~~~~\n OtherStruct\n:17:8: note: 'MyStruct' declared here\nstruct MyStruct:\n ^\n:52:19: warning: Ignore. Deprecation test.\n OtherStruct(2).function()\n ~~~~~~~~~~~~~~^~~~~~~~~\n:37:9: note: 'function' declared here\n def function(self):\n ^\n:54:11: warning: Ignore. Deprecation test.\n print(pi)\n ^~\n:46:1: note: 'pi' declared here\ncomptime pi = 3.141592\n^", "compiled": true, "executed": true, "exitCode": 0, "stderr": "", "stdout": "3.141592\nThis is a functioning app", "timedOut": false }, "seconds": 6.24, "sourceSha256": "d8a7ce588c13852607b8785a928103a3ae7bcfb5918ca72fca424eeb8910c415", "stdin": "" }