This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
+172
@@ -0,0 +1,172 @@
|
||||
{
|
||||
"args": "--target-cpu x86-64-v3 --fp-mode contract=off",
|
||||
"askedAt": "2026-11-12T18:30:15+00:00",
|
||||
"attempts": 1,
|
||||
"compiler": "mojo_1_2_0",
|
||||
"firstItem": "manual/snippet/manual-values-ownership-3",
|
||||
"key": "37bd39834524d82c504960285c8165d6dd9fda0ba86acca8f1e336acdab364db",
|
||||
"mode": "run",
|
||||
"raw": {
|
||||
"buildResult": {
|
||||
"code": 1,
|
||||
"compilationOptions": [
|
||||
"build",
|
||||
"-g1",
|
||||
"-o",
|
||||
"/app/output.s",
|
||||
"--target-cpu",
|
||||
"x86-64-v3",
|
||||
"--fp-mode",
|
||||
"contract=off",
|
||||
"/app/example.mojo",
|
||||
"-Xlinker=-L./lib",
|
||||
"-Xlinker=-rpath=./lib"
|
||||
],
|
||||
"downloads": [],
|
||||
"execTime": 561,
|
||||
"executableFilename": "/nosym/tmp/compiler-explorer-compilerthnOjr/output.s",
|
||||
"inputFilename": "example.mojo",
|
||||
"instructionSet": "amd64",
|
||||
"okToCache": true,
|
||||
"processExecutionResultTime": 0.2677939999848604,
|
||||
"stderr": [
|
||||
{
|
||||
"tag": {
|
||||
"column": 15,
|
||||
"file": "example.mojo",
|
||||
"line": 2,
|
||||
"severity": 3,
|
||||
"text": "error: 'List[Int]' value has no attribute '__str__'"
|
||||
},
|
||||
"text": "<source>:2:15: error: 'List[Int]' value has no attribute '__str__'"
|
||||
},
|
||||
{
|
||||
"text": " print(list.__str__())"
|
||||
},
|
||||
{
|
||||
"text": " ~~~~^"
|
||||
},
|
||||
{
|
||||
"tag": {
|
||||
"column": 5,
|
||||
"file": "example.mojo",
|
||||
"line": 6,
|
||||
"severity": 3,
|
||||
"text": "error: invalid call to 'append': invalid use of mutating method on rvalue of type 'List[Int]'"
|
||||
},
|
||||
"text": "<source>:6:5: error: invalid call to 'append': invalid use of mutating method on rvalue of type 'List[Int]'"
|
||||
},
|
||||
{
|
||||
"tag": {
|
||||
"column": 0,
|
||||
"file": "l.append",
|
||||
"line": 5,
|
||||
"severity": 3,
|
||||
"text": ""
|
||||
},
|
||||
"text": " l.append(5)"
|
||||
},
|
||||
{
|
||||
"text": " ^~~~~~~~"
|
||||
},
|
||||
{
|
||||
"text": "Imported from <source>:1:"
|
||||
},
|
||||
{
|
||||
"text": "Mojo/stdlib/std/collections/list.mojo:882:1: note: function declared here"
|
||||
},
|
||||
{
|
||||
"text": "def append(mut self, var value: T, /) where conforms_to(T, Movable) # note - synthetic signature"
|
||||
},
|
||||
{
|
||||
"text": "^"
|
||||
},
|
||||
{
|
||||
"tag": {
|
||||
"column": 12,
|
||||
"file": "example.mojo",
|
||||
"line": 7,
|
||||
"severity": 3,
|
||||
"text": "error: value of type 'List[Int]' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'"
|
||||
},
|
||||
"text": "<source>:7:12: error: value of type 'List[Int]' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'"
|
||||
},
|
||||
{
|
||||
"text": " return l"
|
||||
},
|
||||
{
|
||||
"text": " ^"
|
||||
},
|
||||
{
|
||||
"tag": {
|
||||
"column": 12,
|
||||
"file": "example.mojo",
|
||||
"line": 7,
|
||||
"severity": 1,
|
||||
"text": "note: consider transferring the value with '^'"
|
||||
},
|
||||
"text": "<source>:7:12: note: consider transferring the value with '^'"
|
||||
},
|
||||
{
|
||||
"text": " return l"
|
||||
},
|
||||
{
|
||||
"text": " ^"
|
||||
},
|
||||
{
|
||||
"text": " ^"
|
||||
},
|
||||
{
|
||||
"tag": {
|
||||
"column": 12,
|
||||
"file": "example.mojo",
|
||||
"line": 7,
|
||||
"severity": 1,
|
||||
"text": "note: you can copy it explicitly with '.copy()'"
|
||||
},
|
||||
"text": "<source>:7:12: note: you can copy it explicitly with '.copy()'"
|
||||
},
|
||||
{
|
||||
"text": " return l"
|
||||
},
|
||||
{
|
||||
"text": " ^"
|
||||
},
|
||||
{
|
||||
"text": " .copy()"
|
||||
},
|
||||
{
|
||||
"text": "/opt/compiler-explorer/mojo-1.2.0/bin/mojo: error: failed to parse the provided Mojo source module"
|
||||
}
|
||||
],
|
||||
"stdout": [],
|
||||
"timedOut": false,
|
||||
"truncated": false
|
||||
},
|
||||
"code": -1,
|
||||
"didExecute": false,
|
||||
"execTime": 660,
|
||||
"okToCache": false,
|
||||
"queueTime": 4,
|
||||
"stderr": [
|
||||
{
|
||||
"text": "Build failed"
|
||||
}
|
||||
],
|
||||
"stdout": [],
|
||||
"timedOut": false
|
||||
},
|
||||
"result": {
|
||||
"asm": null,
|
||||
"buildStderr": "<source>:2:15: error: 'List[Int]' value has no attribute '__str__'\n print(list.__str__())\n ~~~~^\n<source>:6:5: error: invalid call to 'append': invalid use of mutating method on rvalue of type 'List[Int]'\n l.append(5)\n ^~~~~~~~\nImported from <source>:1:\nMojo/stdlib/std/collections/list.mojo:882:1: note: function declared here\ndef append(mut self, var value: T, /) where conforms_to(T, Movable) # note - synthetic signature\n^\n<source>:7:12: error: value of type 'List[Int]' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'\n return l\n ^\n<source>:7:12: note: consider transferring the value with '^'\n return l\n ^\n ^\n<source>:7:12: note: you can copy it explicitly with '.copy()'\n return l\n ^\n .copy()\n/opt/compiler-explorer/mojo-1.2.0/bin/mojo: error: failed to parse the provided Mojo source module",
|
||||
"compiled": false,
|
||||
"executed": false,
|
||||
"exitCode": -1,
|
||||
"stderr": "Build failed",
|
||||
"stdout": "",
|
||||
"timedOut": false
|
||||
},
|
||||
"seconds": 0.87,
|
||||
"sourceSha256": "9902a4c16fe02fc943bf78d9ea8e17e69e4a856937097a13b78f4c706fa624a1",
|
||||
"stdin": ""
|
||||
}
|
||||
Reference in new issue
Block a user