What programs mean (the languages, translators, Mojo checker and
interpreter, prover, fuzzer, machine model, catalog problems and the Mojo
corpus with godbolt's stored answers) was mixed into the site's tree, so a
change to the prover and a change to a button went through the same gate
and the same docs. This moves all of it under core/, laid out as its own
repository, ready to be extracted with its history and pinned here as a
git submodule.
- core/: src/{engines,services,sync,mojo,exercises,curriculum,common},
mojo/, syntax/mojo.xml, its tests (with Workspace and workForProblem in
place of the site's Session), scripts (corpus pipeline, play, the
exercise and probe starters, engines export/diff), and its docs
(engines, trust, mojo-corpus, exercises, coverage). Its own pixi.toml,
package.json, README, AGENTS.md and CI workflow.
- core/tests/boundary.test.mjs: library modules use no DOM, import no
page widget, and import nothing outside src/.
- core/scripts/cli.mjs: pixi run cli check|run|prove|fuzz|translate.
- core/scripts/dafny.py: Dafny 4.11.0 pinned by version and SHA-256 per
platform, fetched into .tools/ (pixi run dafny-fetch, pixi run dafny).
- The site imports core only as #core/<path>.js: an import map in
index.html, "imports" in package.json for node, core's declarations for
tsc. The site's TypeScript builds core first (npm run build).
- assemble.sh, the Quarto engine copy, the render cache key, check-pages,
quarto-export and quarto-css read core/dist and core/mojo; quarto-css
copies core's syntax/mojo.xml into the extension.
- Site tests that covered engines moved to core; the rest keep Session.
- README, AGENTS.md, docs/app.md, docs/deploy.md and the CI workflow
describe the split (checkout with submodules; core's tests and corpus
status run against the pinned commit).
Gate: site 110 pass; core 307 pass; corpus status --strict passes.
Manual check: the assembled site opens Bridge (count-base-proved),
Developer and Hardware (count-base) with the editor, the stepper and the
board, and no module errors.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FgvbRdoEheAHqsRmr2WuKZ
34346 lines
1.0 MiB
Plaintext
34346 lines
1.0 MiB
Plaintext
{
|
|
"items": [
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "error",
|
|
"line": 19,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 22,
|
|
"kind": "note",
|
|
"line": 23,
|
|
"message": "unexpected attribute 'foobar' on operation",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "note",
|
|
"line": 33,
|
|
"message": "unexpected attribute 'foobar' on operation",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "note",
|
|
"line": 49,
|
|
"message": "invalid MLIR attribute: failed to parse IndexCmpPredicateAttr parameter 'value' which is to be a `::mlir::index::IndexCmpPredicate`",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "error",
|
|
"line": 19,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-integration/deferred_ops_errors.mojo",
|
|
"id": "diagnostics/mojo-integration/deferred_ops_errors",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-integration/deferred_ops_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"kgen %s -elaborate -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 35,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "note",
|
|
"line": 38,
|
|
"message": "invalid MLIR type in deferred_type: !llvm.array<4 bogus f32>",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 35,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-integration/deferred_type_invalid.mojo",
|
|
"id": "diagnostics/mojo-integration/deferred_type_invalid",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-integration/deferred_type_invalid.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"kgen %s -elaborate -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 22,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "note",
|
|
"line": 25,
|
|
"message": "call expansion failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "note",
|
|
"line": 30,
|
|
"message": "call expansion failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "note",
|
|
"line": 35,
|
|
"message": "call expansion failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "note",
|
|
"line": 43,
|
|
"message": "constraint failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 48,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "note",
|
|
"line": 49,
|
|
"message": "call expansion failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "note",
|
|
"line": 54,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "note",
|
|
"line": 55,
|
|
"message": "call expansion failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 59,
|
|
"kind": "note",
|
|
"line": 59,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "note",
|
|
"line": 60,
|
|
"message": "constraint failed: param must be 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 76,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 77,
|
|
"kind": "note",
|
|
"line": 77,
|
|
"message": "call expansion failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 80,
|
|
"kind": "note",
|
|
"line": 82,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "note",
|
|
"line": 84,
|
|
"message": "constraint failed: param must be 2",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 22,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 48,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 76,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-integration/elaboration_error/elaboration_error.mojo",
|
|
"id": "diagnostics/mojo-integration/elaboration_error/elaboration_error",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-integration/elaboration_error/elaboration_error.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"kgen %s -elaborate=no-use-parametric-interpreter -verify-diagnostics",
|
|
"not kgen -elaborate -D TEST_RECURSION2=1 %s 2>&1 | FileCheck %s --check-prefix=CHECK-RECURSION2",
|
|
"not kgen -elaborate -D TEST_RECURSION3=1 %s 2>&1 | FileCheck %s --check-prefix=CHECK-RECURSION3"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "note",
|
|
"line": 26,
|
|
"message": "call expansion failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "note",
|
|
"line": 32,
|
|
"message": "too many errors emitted, stopping now",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "note",
|
|
"line": 33,
|
|
"message": "call expansion failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "note",
|
|
"line": 43,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "note",
|
|
"line": 47,
|
|
"message": "constraint failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "note",
|
|
"line": 54,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 58,
|
|
"kind": "note",
|
|
"line": 58,
|
|
"message": "constraint failed",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-integration/elaboration_error/elaboration_error_limit.mojo",
|
|
"id": "diagnostics/mojo-integration/elaboration_error/elaboration_error_limit",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-integration/elaboration_error/elaboration_error_limit.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"kgen %s -elaborate -elaboration-error-limit=2 --num-threads=1 -verify-diagnostics",
|
|
"not kgen %s -elaborate=use-parametric-interpreter -elaboration-error-limit=2 --num-threads=1 2>&1 | FileCheck %s --check-prefix=CHECK-PARAM"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "note",
|
|
"line": 41,
|
|
"message": "constraint failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "note",
|
|
"line": 45,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "note",
|
|
"line": 47,
|
|
"message": "call expansion failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 50,
|
|
"kind": "error",
|
|
"line": 51,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "note",
|
|
"line": 53,
|
|
"message": "call expansion failed",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 50,
|
|
"kind": "error",
|
|
"line": 51,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-integration/elaboration_error/elaboration_error_options.mojo",
|
|
"id": "diagnostics/mojo-integration/elaboration_error/elaboration_error_options",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-integration/elaboration_error/elaboration_error_options.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"kgen -elaborate %s --verify-diagnostics",
|
|
"not kgen -elaborate %s --elaboration-error-include-prelude 2>&1 | FileCheck %s --check-prefix=CHECK-PRELUDE",
|
|
"not mojo --elaboration-error-include-prelude %s 2>&1 | FileCheck %s --check-prefix=CHECK-PRELUDE",
|
|
"not kgen -elaborate %s --elaboration-error-include-prelude --elaboration-error-verbose=all-params 2>&1 | FileCheck %s --check-prefix=CHECK-VERBOSE",
|
|
"not mojo --elaboration-error-include-prelude --elaboration-error-verbose=all-params %s 2>&1 | FileCheck %s --check-prefix=CHECK-VERBOSE"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "note",
|
|
"line": 35,
|
|
"message": "constraint failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "note",
|
|
"line": 39,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "note",
|
|
"line": 41,
|
|
"message": "call expansion failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "note",
|
|
"line": 47,
|
|
"message": "call expansion failed",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-integration/elaboration_error/elaboration_error_prelude.mojo",
|
|
"id": "diagnostics/mojo-integration/elaboration_error/elaboration_error_prelude",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-integration/elaboration_error/elaboration_error_prelude.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"kgen -elaborate %s --verify-diagnostics",
|
|
"not kgen -elaborate %s --elaboration-error-include-prelude 2>&1 | FileCheck %s --check-prefix=CHECK-PRELUDE",
|
|
"not mojo --elaboration-error-include-prelude %s 2>&1 | FileCheck %s --check-prefix=CHECK-PRELUDE"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "note",
|
|
"line": 25,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 22,
|
|
"kind": "note",
|
|
"line": 25,
|
|
"message": "remaining errors after",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "note",
|
|
"line": 25,
|
|
"message": "error recurses {{[0-9]+}} times",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "note",
|
|
"line": 25,
|
|
"message": "elaborator expansion is {{[0-9]+}} levels deep - infinite recursion?",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "note",
|
|
"line": 28,
|
|
"message": "call expansion failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "warning",
|
|
"line": 28,
|
|
"message": "self recursive call will cause an infinite loop",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "note",
|
|
"line": 35,
|
|
"message": "call expansion failed",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-integration/elaboration_error/elaboration_error_recursion1.mojo",
|
|
"id": "diagnostics/mojo-integration/elaboration_error/elaboration_error_recursion1",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-integration/elaboration_error/elaboration_error_recursion1.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"kgen -elaborate -elaboration-max-depth=128 --elaboration-error-verbose=no-params %s --verify-diagnostics",
|
|
"not mojo build -elaboration-max-depth=128 --elaboration-error-verbose=no-params %s 2>&1 | FileCheck %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "note",
|
|
"line": 22,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "note",
|
|
"line": 22,
|
|
"message": "function instantiation in parameter domain that recursively requires itself",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "note",
|
|
"line": 22,
|
|
"message": "back to parameter domain function call here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "note",
|
|
"line": 28,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "note",
|
|
"line": 31,
|
|
"message": "recursively instantiated through here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "note",
|
|
"line": 31,
|
|
"message": "call expansion failed with parameter value(s): (\"D\": 1)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "note",
|
|
"line": 38,
|
|
"message": "call expansion failed with parameter value(s): (\"D\": 1)",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-integration/elaboration_error/elaboration_error_recursion2.mojo",
|
|
"id": "diagnostics/mojo-integration/elaboration_error/elaboration_error_recursion2",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-integration/elaboration_error/elaboration_error_recursion2.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"kgen -elaborate %s --verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 18,
|
|
"kind": "note",
|
|
"line": 19,
|
|
"message": "recursively instantiated through here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "note",
|
|
"line": 26,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "note",
|
|
"line": 26,
|
|
"message": "function instantiation in parameter domain that recursively requires itself",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "note",
|
|
"line": 32,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "note",
|
|
"line": 34,
|
|
"message": "recursively instantiated through here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "note",
|
|
"line": 36,
|
|
"message": "call expansion failed with parameter value(s): (\"D\": 2)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 42,
|
|
"kind": "error",
|
|
"line": 43,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "note",
|
|
"line": 45,
|
|
"message": "call expansion failed with parameter value(s): (\"D\": 2)",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 42,
|
|
"kind": "error",
|
|
"line": 43,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-integration/elaboration_error/elaboration_error_recursion3.mojo",
|
|
"id": "diagnostics/mojo-integration/elaboration_error/elaboration_error_recursion3",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-integration/elaboration_error/elaboration_error_recursion3.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"kgen -elaborate %s --verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "note",
|
|
"line": 28,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "note",
|
|
"line": 28,
|
|
"message": "function instantiation in parameter domain that recursively requires itself",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "note",
|
|
"line": 28,
|
|
"message": "function recursively calls itself in the parameter domain",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "note",
|
|
"line": 36,
|
|
"message": "call expansion failed with parameter value(s): (\"n\": 1)",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-integration/elaboration_error/elaboration_error_recursion4.mojo",
|
|
"id": "diagnostics/mojo-integration/elaboration_error/elaboration_error_recursion4",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-integration/elaboration_error/elaboration_error_recursion4.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"kgen -elaborate %s --verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "note",
|
|
"line": 22,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "note",
|
|
"line": 23,
|
|
"message": "constraint failed: type not allowed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "note",
|
|
"line": 34,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "note",
|
|
"line": 36,
|
|
"message": "call expansion failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "note",
|
|
"line": 44,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "note",
|
|
"line": 48,
|
|
"message": "call expansion failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "note",
|
|
"line": 56,
|
|
"message": "call expansion failed with parameter value(s): (...)",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "function instantiation failed",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-integration/elaboration_error/elaboration_error_scc_type_error.mojo",
|
|
"id": "diagnostics/mojo-integration/elaboration_error/elaboration_error_scc_type_error",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-integration/elaboration_error/elaboration_error_scc_type_error.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"kgen -elaborate %s --verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "note",
|
|
"line": 80,
|
|
"message": "required by trait method here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-integration/inputs/diags_package/__init__.mojo",
|
|
"id": "diagnostics/mojo-integration/inputs/diags_package/__init__",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-integration/inputs/diags_package/__init__.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "origin equality may only be tested in 'where' clauses",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "origin equality may only be tested in 'where' clauses",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-integration/parse_time_only_attrs.mojo",
|
|
"id": "diagnostics/mojo-integration/parse_time_only_attrs",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-integration/parse_time_only_attrs.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"kgen %s -elaborate -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "note",
|
|
"line": 31,
|
|
"message": "'byMove' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 35,
|
|
"message": "use of uninitialized value 'byMove'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 35,
|
|
"message": "use of uninitialized value 'byMove'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/closures/capture_lists_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/closures/capture_lists_errors",
|
|
"mode": "run",
|
|
"pass": "lifetimes",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/closures/capture_lists_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -mlir-print-debuginfo | kgen-opt -lower-semantic-cf -check-lifetimes -verify-parameters -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 51,
|
|
"kind": "error",
|
|
"line": 52,
|
|
"message": "cannot derive an interior origin from a captured container while an interior reference to the container is also captured",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 51,
|
|
"kind": "error",
|
|
"line": 52,
|
|
"message": "cannot derive an interior origin from a captured container while an interior reference to the container is also captured",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/closures/closure_interior_origin_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/closures/closure_interior_origin_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/closures/closure_interior_origin_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "note",
|
|
"line": 39,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "note",
|
|
"line": 42,
|
|
"message": "constraint declared here evaluated to False, expected 'conforms_to(FuncType, RegisterPassable)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "note",
|
|
"line": 47,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "note",
|
|
"line": 50,
|
|
"message": "constraint declared here evaluated to False, expected 'conforms_to(FuncType, ImplicitlyCopyable)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "invalid call to 'needs_rp': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 70,
|
|
"kind": "error",
|
|
"line": 71,
|
|
"message": "invalid call to 'needs_ic': violated constraint",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "invalid call to 'needs_rp': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 70,
|
|
"kind": "error",
|
|
"line": 71,
|
|
"message": "invalid call to 'needs_ic': violated constraint",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/closures/closure_marker_conformance_refinement_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/closures/closure_marker_conformance_refinement_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/closures/closure_marker_conformance_refinement_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 17,
|
|
"message": "the 'escaping' function effect is no longer supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 22,
|
|
"kind": "error",
|
|
"line": 23,
|
|
"message": "the 'escaping' function effect is no longer supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 38,
|
|
"message": "parametric functions must not be used as arguments; pass as a parameter instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "note",
|
|
"line": 38,
|
|
"message": "alternatively, bind its type parameters to create a concrete function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 58,
|
|
"kind": "error",
|
|
"line": 59,
|
|
"message": "cannot implicitly convert 'def(arg: Int) -> Int' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 73,
|
|
"kind": "error",
|
|
"line": 74,
|
|
"message": "cannot implicitly convert 'def(arg: Float64) -> Float64' value to 'def(arg: Int) -> Int'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 17,
|
|
"message": "the 'escaping' function effect is no longer supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 22,
|
|
"kind": "error",
|
|
"line": 23,
|
|
"message": "the 'escaping' function effect is no longer supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 38,
|
|
"message": "parametric functions must not be used as arguments; pass as a parameter instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 58,
|
|
"kind": "error",
|
|
"line": 59,
|
|
"message": "cannot implicitly convert 'def(arg: Int) -> Int' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 73,
|
|
"kind": "error",
|
|
"line": 74,
|
|
"message": "cannot implicitly convert 'def(arg: Float64) -> Float64' value to 'def(arg: Int) -> Int'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/closures/errors.mojo",
|
|
"id": "diagnostics/mojo-parser/closures/errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/closures/errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "note",
|
|
"line": 18,
|
|
"message": "nested function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "recursive references to nested functions are not supported; define 'bar' at file scope",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "note",
|
|
"line": 29,
|
|
"message": "nested function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "recursive references to nested functions are not supported; define 'foo' at file scope",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "recursive references to nested functions are not supported; define 'bar' at file scope",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "recursive references to nested functions are not supported; define 'foo' at file scope",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/closures/recursion.mojo",
|
|
"id": "diagnostics/mojo-parser/closures/recursion",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/closures/recursion.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated --verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "'MissingCall' does not implement all requirements for 'def(Bool) -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "note",
|
|
"line": 33,
|
|
"message": "required function '__call__' is not implemented",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "note",
|
|
"line": 33,
|
|
"message": "def __call__(self, : Bool, /) -> Int",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "note",
|
|
"line": 33,
|
|
"message": "trait 'def(Bool) -> Int' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 43,
|
|
"message": "'WrongReturnType' does not implement all requirements for 'def(String) -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "note",
|
|
"line": 43,
|
|
"message": "no '__call__' candidates have type 'def(WrongReturnType, String) capturing thin -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 42,
|
|
"kind": "note",
|
|
"line": 43,
|
|
"message": "trait 'def(String) -> Int' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "note",
|
|
"line": 45,
|
|
"message": "candidate declared here with type 'def(self: WrongReturnType, x: String) capturing thin -> Bool'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 63,
|
|
"kind": "error",
|
|
"line": 66,
|
|
"message": "'TwoTraitsBadSecond' does not implement all requirements for 'def(Float64) -> Float64'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "note",
|
|
"line": 66,
|
|
"message": "no '__call__' candidates have type 'def(TwoTraitsBadSecond, Float64) capturing thin -> Float64'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 65,
|
|
"kind": "note",
|
|
"line": 66,
|
|
"message": "trait 'def(Float64) -> Float64' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "note",
|
|
"line": 69,
|
|
"message": "candidate declared here with type 'def(self: TwoTraitsBadSecond, x: Int) capturing thin -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "note",
|
|
"line": 69,
|
|
"message": ".x.dtype of the first value is 'DType.float64' but the second value is 'DType.int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 72,
|
|
"kind": "note",
|
|
"line": 73,
|
|
"message": "candidate declared here with type 'def(self: TwoTraitsBadSecond, x: Float64) capturing thin -> String'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 82,
|
|
"kind": "note",
|
|
"line": 83,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 114,
|
|
"kind": "error",
|
|
"line": 115,
|
|
"message": "invalid call to 'call_it': value passed to 'func' cannot be converted from 'NoExplicitConformance' to 'F', argument type 'NoExplicitConformance' does not conform to trait 'def(Int) -> None'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "'MissingCall' does not implement all requirements for 'def(Bool) -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 43,
|
|
"message": "'WrongReturnType' does not implement all requirements for 'def(String) -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 63,
|
|
"kind": "error",
|
|
"line": 66,
|
|
"message": "'TwoTraitsBadSecond' does not implement all requirements for 'def(Float64) -> Float64'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 114,
|
|
"kind": "error",
|
|
"line": 115,
|
|
"message": "invalid call to 'call_it': value passed to 'func' cannot be converted from 'NoExplicitConformance' to 'F', argument type 'NoExplicitConformance' does not conform to trait 'def(Int) -> None'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/closures/struct_explicit_fn_trait_conformance.mojo",
|
|
"id": "diagnostics/mojo-parser/closures/struct_explicit_fn_trait_conformance",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/closures/struct_explicit_fn_trait_conformance.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "note",
|
|
"line": 25,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "note",
|
|
"line": 32,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "invalid call to 'take_closure_arg'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "invalid call to 'take_closure_param'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 81,
|
|
"kind": "error",
|
|
"line": 82,
|
|
"message": "invalid call to 'take_closure_arg'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "invalid call to 'take_closure_arg'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "invalid call to 'take_closure_param'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 81,
|
|
"kind": "error",
|
|
"line": 82,
|
|
"message": "invalid call to 'take_closure_arg'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/closures/unified_closure_implicit_conversion.mojo",
|
|
"id": "diagnostics/mojo-parser/closures/unified_closure_implicit_conversion",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/closures/unified_closure_implicit_conversion.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "ambiguous captured value: 'aThing'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "note",
|
|
"line": 61,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 72,
|
|
"kind": "error",
|
|
"line": 73,
|
|
"message": "'takeDevicePassable' parameter 'T' has 'DevicePassable' type, but value has type 'def(number: Int) -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 78,
|
|
"kind": "note",
|
|
"line": 79,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "error",
|
|
"line": 88,
|
|
"message": "'{{.*}}' does not conform to trait 'TrivialRegisterPassable'",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 93,
|
|
"kind": "note",
|
|
"line": 94,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 103,
|
|
"kind": "error",
|
|
"line": 104,
|
|
"message": "'{{.*}}' does not conform to trait 'RegisterPassable'",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 109,
|
|
"kind": "warning",
|
|
"line": 110,
|
|
"message": "the 'register_passable' function effect is no longer supported; use trait constraints like 'RegisterPassable & def(...) -> ...' instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 114,
|
|
"kind": "note",
|
|
"line": 115,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 121,
|
|
"kind": "error",
|
|
"line": 122,
|
|
"message": "invalid call to 'changeIt': value passed to mutable argument 'aString' must be mutable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 132,
|
|
"kind": "note",
|
|
"line": 133,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 140,
|
|
"message": "invalid call to 'takesClosure': 'takesClosure' parameter 'T' has 'def(Int) -> Int' type, but value has type 'def topLevel(x: String) thin -> String'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 139,
|
|
"kind": "note",
|
|
"line": 140,
|
|
"message": "a thin function cannot bind to a closure trait; use 'type_of(topLevel)' to pass its type instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 159,
|
|
"kind": "note",
|
|
"line": 160,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 168,
|
|
"kind": "error",
|
|
"line": 169,
|
|
"message": "does not conform to trait 'def(x: W) -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 174,
|
|
"kind": "error",
|
|
"line": 175,
|
|
"message": "'takeClosureMammalParam' parameter 'C' has 'def(x: W) -> None' type, but value has type 'def(mut x: Dog) -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 194,
|
|
"kind": "note",
|
|
"line": 196,
|
|
"message": "constraint declared here evaluated to False",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 195,
|
|
"kind": "note",
|
|
"line": 196,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 203,
|
|
"kind": "error",
|
|
"line": 204,
|
|
"message": "invalid call to 'takeClosure': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 214,
|
|
"kind": "note",
|
|
"line": 215,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 229,
|
|
"kind": "error",
|
|
"line": 230,
|
|
"message": "does not conform to trait 'def() -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 238,
|
|
"kind": "error",
|
|
"line": 240,
|
|
"message": "default capture convention was already specified; remove the duplicate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 239,
|
|
"kind": "note",
|
|
"line": 240,
|
|
"message": "a capture convention (like 'mut' or 'var') before the capture list sets the default for all captured variables",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 249,
|
|
"kind": "error",
|
|
"line": 250,
|
|
"message": "'^' requires 'var' convention; write 'var x^' to move a capture",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 265,
|
|
"kind": "error",
|
|
"line": 266,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 273,
|
|
"kind": "error",
|
|
"line": 274,
|
|
"message": "register passible value 'x' can not be captured by 'mut'. Do you mean 'imm'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 287,
|
|
"kind": "error",
|
|
"line": 288,
|
|
"message": "value of type 'T' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 289,
|
|
"kind": "error",
|
|
"line": 290,
|
|
"message": "cannot capture z by copy because it is not copyable.",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 301,
|
|
"kind": "error",
|
|
"line": 302,
|
|
"message": "Cannot capture z by move because the type is not movable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 333,
|
|
"kind": "note",
|
|
"line": 334,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 342,
|
|
"kind": "error",
|
|
"line": 343,
|
|
"message": "'{{.*}}' does not conform to trait 'DevicePassable'",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 351,
|
|
"kind": "note",
|
|
"line": 352,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 361,
|
|
"kind": "error",
|
|
"line": 362,
|
|
"message": "invalid call to 'apply': value passed to 'f' cannot be converted from 'def() -> None' to 'T', argument type 'def() -> None' does not conform to trait 'def() -> None & RegisterPassable'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "ambiguous captured value: 'aThing'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 72,
|
|
"kind": "error",
|
|
"line": 73,
|
|
"message": "'takeDevicePassable' parameter 'T' has 'DevicePassable' type, but value has type 'def(number: Int) -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "error",
|
|
"line": 88,
|
|
"message": "'{{.*}}' does not conform to trait 'TrivialRegisterPassable'",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 103,
|
|
"kind": "error",
|
|
"line": 104,
|
|
"message": "'{{.*}}' does not conform to trait 'RegisterPassable'",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 121,
|
|
"kind": "error",
|
|
"line": 122,
|
|
"message": "invalid call to 'changeIt': value passed to mutable argument 'aString' must be mutable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 140,
|
|
"message": "invalid call to 'takesClosure': 'takesClosure' parameter 'T' has 'def(Int) -> Int' type, but value has type 'def topLevel(x: String) thin -> String'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 168,
|
|
"kind": "error",
|
|
"line": 169,
|
|
"message": "does not conform to trait 'def(x: W) -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 174,
|
|
"kind": "error",
|
|
"line": 175,
|
|
"message": "'takeClosureMammalParam' parameter 'C' has 'def(x: W) -> None' type, but value has type 'def(mut x: Dog) -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 203,
|
|
"kind": "error",
|
|
"line": 204,
|
|
"message": "invalid call to 'takeClosure': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 229,
|
|
"kind": "error",
|
|
"line": 230,
|
|
"message": "does not conform to trait 'def() -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 238,
|
|
"kind": "error",
|
|
"line": 240,
|
|
"message": "default capture convention was already specified; remove the duplicate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 249,
|
|
"kind": "error",
|
|
"line": 250,
|
|
"message": "'^' requires 'var' convention; write 'var x^' to move a capture",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 265,
|
|
"kind": "error",
|
|
"line": 266,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 273,
|
|
"kind": "error",
|
|
"line": 274,
|
|
"message": "register passible value 'x' can not be captured by 'mut'. Do you mean 'imm'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 287,
|
|
"kind": "error",
|
|
"line": 288,
|
|
"message": "value of type 'T' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 289,
|
|
"kind": "error",
|
|
"line": 290,
|
|
"message": "cannot capture z by copy because it is not copyable.",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 301,
|
|
"kind": "error",
|
|
"line": 302,
|
|
"message": "Cannot capture z by move because the type is not movable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 342,
|
|
"kind": "error",
|
|
"line": 343,
|
|
"message": "'{{.*}}' does not conform to trait 'DevicePassable'",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 361,
|
|
"kind": "error",
|
|
"line": 362,
|
|
"message": "invalid call to 'apply': value passed to 'f' cannot be converted from 'def() -> None' to 'T', argument type 'def() -> None' does not conform to trait 'def() -> None & RegisterPassable'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/closures/unified_closures_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/closures/unified_closures_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/closures/unified_closures_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "warning",
|
|
"line": 28,
|
|
"message": "unreachable code on right side of 'False and ...'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "warning",
|
|
"line": 30,
|
|
"message": "unreachable code on right side of 'False and ...'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "warning",
|
|
"line": 32,
|
|
"message": "unreachable code on right side of 'True or ...'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "warning",
|
|
"line": 34,
|
|
"message": "unreachable code on right side of 'True or ...'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "warning",
|
|
"line": 37,
|
|
"message": "right hand side expression of 'if True' is dead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "warning",
|
|
"line": 39,
|
|
"message": "left hand side expression of 'if False' is dead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "warning",
|
|
"line": 42,
|
|
"message": "'if' condition always evaluates to 'False'; 'if' branch is unreachable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "warning",
|
|
"line": 45,
|
|
"message": "'if' condition always evaluates to 'False'; 'if' branch is unreachable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "warning",
|
|
"line": 48,
|
|
"message": "'if' condition always evaluates to 'True'; 'else' branch is unreachable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 54,
|
|
"kind": "warning",
|
|
"line": 55,
|
|
"message": "constant value on left side of 'False or ...'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "warning",
|
|
"line": 57,
|
|
"message": "constant value on left side of 'False or ...'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 58,
|
|
"kind": "warning",
|
|
"line": 59,
|
|
"message": "constant value on left side of 'True and ...'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "warning",
|
|
"line": 61,
|
|
"message": "constant value on left side of 'True and ...'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/dead_code_warning.mojo",
|
|
"id": "diagnostics/mojo-parser/dead_code_warning",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/dead_code_warning.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 17,
|
|
"message": "cannot unpack value of 'Tuple[Int, FloatDyn]' of 2 elements into 3 values",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "invalid comptime declaration: expected an identifier or '_'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "'comptime' constants inside structs must be declared separately; break this into individual declarations",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 38,
|
|
"message": "a trait's associated types must be declared separately; break this into individual declarations",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "note",
|
|
"line": 45,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 47,
|
|
"message": "invalid redefinition of 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "cannot destructure into list patterns yet",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 17,
|
|
"message": "cannot unpack value of 'Tuple[Int, FloatDyn]' of 2 elements into 3 values",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "invalid comptime declaration: expected an identifier or '_'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "'comptime' constants inside structs must be declared separately; break this into individual declarations",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 38,
|
|
"message": "a trait's associated types must be declared separately; break this into individual declarations",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 47,
|
|
"message": "invalid redefinition of 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "cannot destructure into list patterns yet",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/alias/alias_unpack_error.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/alias/alias_unpack_error",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/alias/alias_unpack_error.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -import-mojo -verify-diagnostics -split-input-file %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 17,
|
|
"message": "only traits may contain a comptime member without an initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "note",
|
|
"line": 19,
|
|
"message": "trait 'MyTrait' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "note",
|
|
"line": 22,
|
|
"message": "required member 'N' is not specified",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "note",
|
|
"line": 22,
|
|
"message": "comptime member 'N' type 'Bool' does not conform to trait's required type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "'StructConformingExplicitlyWithNoMatchingAlias' does not implement all requirements for 'MyTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "'StructConformingExplicitlyWithMismatchedAlias' does not implement all requirements for 'MyTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "'StructConformingExplicitlyWithMemberSameName' does not implement all requirements for 'MyTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 51,
|
|
"kind": "error",
|
|
"line": 52,
|
|
"message": "only traits may contain a comptime member without an initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 57,
|
|
"kind": "error",
|
|
"line": 58,
|
|
"message": "expected '=' after comptime declaration",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 61,
|
|
"kind": "note",
|
|
"line": 62,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 69,
|
|
"kind": "error",
|
|
"line": 70,
|
|
"message": "invalid call to 'funcForMyTrait': value passed to 't' cannot be converted from 'StructWithNoMatchingAlias' to 'T', argument type 'StructWithNoMatchingAlias' does not conform to trait 'MyTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 75,
|
|
"kind": "error",
|
|
"line": 76,
|
|
"message": "invalid call to 'funcForMyTrait': value passed to 't' cannot be converted from 'StructWithMismatchedAlias' to 'T', argument type 'StructWithMismatchedAlias' does not conform to trait 'MyTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 105,
|
|
"kind": "note",
|
|
"line": 106,
|
|
"message": "the other trait's member defined here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 110,
|
|
"kind": "error",
|
|
"line": 111,
|
|
"message": "invalid redefinition of 'T': cannot convert 'ZInt' to the other trait's member's type 'ZBool'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 136,
|
|
"kind": "note",
|
|
"line": 137,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "invalid redefinition of 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 145,
|
|
"kind": "note",
|
|
"line": 146,
|
|
"message": "conflicting comptime alias declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 150,
|
|
"kind": "error",
|
|
"line": 151,
|
|
"message": "invalid redefinition of 'MyType'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 17,
|
|
"message": "only traits may contain a comptime member without an initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "'StructConformingExplicitlyWithNoMatchingAlias' does not implement all requirements for 'MyTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "'StructConformingExplicitlyWithMismatchedAlias' does not implement all requirements for 'MyTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "'StructConformingExplicitlyWithMemberSameName' does not implement all requirements for 'MyTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 51,
|
|
"kind": "error",
|
|
"line": 52,
|
|
"message": "only traits may contain a comptime member without an initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 57,
|
|
"kind": "error",
|
|
"line": 58,
|
|
"message": "expected '=' after comptime declaration",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 69,
|
|
"kind": "error",
|
|
"line": 70,
|
|
"message": "invalid call to 'funcForMyTrait': value passed to 't' cannot be converted from 'StructWithNoMatchingAlias' to 'T', argument type 'StructWithNoMatchingAlias' does not conform to trait 'MyTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 75,
|
|
"kind": "error",
|
|
"line": 76,
|
|
"message": "invalid call to 'funcForMyTrait': value passed to 't' cannot be converted from 'StructWithMismatchedAlias' to 'T', argument type 'StructWithMismatchedAlias' does not conform to trait 'MyTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 110,
|
|
"kind": "error",
|
|
"line": 111,
|
|
"message": "invalid redefinition of 'T': cannot convert 'ZInt' to the other trait's member's type 'ZBool'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "invalid redefinition of 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 150,
|
|
"kind": "error",
|
|
"line": 151,
|
|
"message": "invalid redefinition of 'MyType'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/alias/associated_aliases_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/alias/associated_aliases_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/alias/associated_aliases_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file -verify-diagnostics %s -o /dev/null"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "error",
|
|
"line": 21,
|
|
"message": "use of unknown declaration 'y'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "cannot implicitly convert 'Int' value to 'String'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "'where' clauses inside parameter lists are no longer supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "note",
|
|
"line": 30,
|
|
"message": "use a trailing 'where' clause after the signature instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "cannot implicitly convert 'SIMD[.int, x]' value to 'SIMD[.int, (x * Int(20))]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 38,
|
|
"message": "cannot implicitly convert '__generator_type[x: Int] AnyType where cond' value to '__generator_type[x: Int] AnyType' in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "cannot implicitly convert '__generator_type[x: Int] AnyType where cond' value to '__generator_type[x: Int] AnyType' in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "cannot implicitly convert '__generator_type[x: Int] AnyType where condA, condB' value to '__generator_type[x: Int] AnyType where condA' in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 93,
|
|
"kind": "error",
|
|
"line": 94,
|
|
"message": "unexpected keyword parameter 'y'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 98,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "unexpected keyword parameter 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 101,
|
|
"kind": "error",
|
|
"line": 102,
|
|
"message": "'Int' is not subscriptable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 105,
|
|
"kind": "error",
|
|
"line": 105,
|
|
"message": "unexpected parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 115,
|
|
"kind": "error",
|
|
"line": 117,
|
|
"message": "'T' refers to an unbound parameter in 'MyDep'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 116,
|
|
"kind": "note",
|
|
"line": 117,
|
|
"message": "'MyDep' is aka 'comptime[T: AnyType, v: T] Dep[T, v]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 119,
|
|
"kind": "error",
|
|
"line": 120,
|
|
"message": "'Dep[_, _]' value has no attribute 'hello'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 122,
|
|
"kind": "error",
|
|
"line": 123,
|
|
"message": "'Dep[Int, _]' value has no attribute 'hello'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 125,
|
|
"kind": "error",
|
|
"line": 126,
|
|
"message": "'Dep[Int, Int(2)]' value has no attribute 'hello'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 131,
|
|
"kind": "error",
|
|
"line": 133,
|
|
"message": "'MyDep' is not a concrete type, use '[]' to bind missing parameters",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 132,
|
|
"kind": "note",
|
|
"line": 133,
|
|
"message": "'MyDep' is aka 'comptime[T: AnyType, v: T] Dep[T, v]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "dynamic type values not permitted yet; try creating a 'comptime' instead of a 'var'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 142,
|
|
"kind": "error",
|
|
"line": 143,
|
|
"message": "types are not subscriptable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 164,
|
|
"kind": "note",
|
|
"line": 165,
|
|
"message": "constraint declared here evaluated to False, expected '(n > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 168,
|
|
"kind": "note",
|
|
"line": 169,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 174,
|
|
"kind": "note",
|
|
"line": 175,
|
|
"message": "constraint declared here evaluated to False, expected '(n > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 178,
|
|
"kind": "note",
|
|
"line": 179,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 184,
|
|
"kind": "note",
|
|
"line": 185,
|
|
"message": "constraint declared here evaluated to False, expected '(n > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 188,
|
|
"kind": "note",
|
|
"line": 189,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 201,
|
|
"kind": "error",
|
|
"line": 202,
|
|
"message": "invalid call to 'take_arg': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 206,
|
|
"kind": "error",
|
|
"line": 207,
|
|
"message": "invalid call to 'take_param': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 211,
|
|
"kind": "error",
|
|
"line": 212,
|
|
"message": "invalid call to 'take_variadic': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 220,
|
|
"kind": "note",
|
|
"line": 221,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 226,
|
|
"kind": "note",
|
|
"line": 227,
|
|
"message": "constraint declared here evaluated to False, expected 'Cond'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 232,
|
|
"kind": "error",
|
|
"line": 233,
|
|
"message": "invalid initialization: violated constraint",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "error",
|
|
"line": 21,
|
|
"message": "use of unknown declaration 'y'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "cannot implicitly convert 'Int' value to 'String'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "'where' clauses inside parameter lists are no longer supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "cannot implicitly convert 'SIMD[.int, x]' value to 'SIMD[.int, (x * Int(20))]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 38,
|
|
"message": "cannot implicitly convert '__generator_type[x: Int] AnyType where cond' value to '__generator_type[x: Int] AnyType' in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "cannot implicitly convert '__generator_type[x: Int] AnyType where cond' value to '__generator_type[x: Int] AnyType' in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "cannot implicitly convert '__generator_type[x: Int] AnyType where condA, condB' value to '__generator_type[x: Int] AnyType where condA' in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 93,
|
|
"kind": "error",
|
|
"line": 94,
|
|
"message": "unexpected keyword parameter 'y'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 98,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "unexpected keyword parameter 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 101,
|
|
"kind": "error",
|
|
"line": 102,
|
|
"message": "'Int' is not subscriptable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 105,
|
|
"kind": "error",
|
|
"line": 105,
|
|
"message": "unexpected parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 115,
|
|
"kind": "error",
|
|
"line": 117,
|
|
"message": "'T' refers to an unbound parameter in 'MyDep'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 119,
|
|
"kind": "error",
|
|
"line": 120,
|
|
"message": "'Dep[_, _]' value has no attribute 'hello'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 122,
|
|
"kind": "error",
|
|
"line": 123,
|
|
"message": "'Dep[Int, _]' value has no attribute 'hello'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 125,
|
|
"kind": "error",
|
|
"line": 126,
|
|
"message": "'Dep[Int, Int(2)]' value has no attribute 'hello'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 131,
|
|
"kind": "error",
|
|
"line": 133,
|
|
"message": "'MyDep' is not a concrete type, use '[]' to bind missing parameters",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "dynamic type values not permitted yet; try creating a 'comptime' instead of a 'var'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 142,
|
|
"kind": "error",
|
|
"line": 143,
|
|
"message": "types are not subscriptable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 201,
|
|
"kind": "error",
|
|
"line": 202,
|
|
"message": "invalid call to 'take_arg': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 206,
|
|
"kind": "error",
|
|
"line": 207,
|
|
"message": "invalid call to 'take_param': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 211,
|
|
"kind": "error",
|
|
"line": 212,
|
|
"message": "invalid call to 'take_variadic': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 232,
|
|
"kind": "error",
|
|
"line": 233,
|
|
"message": "invalid initialization: violated constraint",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/alias/parametric_alias_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/alias/parametric_alias_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/alias/parametric_alias_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "error",
|
|
"line": 20,
|
|
"message": "@align value must be a positive power of 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "@align value must be a positive power of 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "@align value must be a positive power of 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "@align value must be a positive power of 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "@align value must be a positive power of 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 50,
|
|
"kind": "error",
|
|
"line": 51,
|
|
"message": "@align value must be a positive power of 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "@align value must be a positive power of 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "@align requires exactly one argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "@align requires exactly one argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "@align requires exactly one argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 80,
|
|
"kind": "error",
|
|
"line": 81,
|
|
"message": "'StringLiteral[\"64\"]' does not implement the '__mlir_index__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 86,
|
|
"kind": "error",
|
|
"line": 87,
|
|
"message": "@align value exceeds maximum alignment (2^29)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 92,
|
|
"kind": "error",
|
|
"line": 93,
|
|
"message": "@align value exceeds maximum alignment (2^29)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 105,
|
|
"kind": "error",
|
|
"line": 106,
|
|
"message": "use of unknown declaration 'nonexistent'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 112,
|
|
"kind": "error",
|
|
"line": 113,
|
|
"message": "use of unknown declaration 'missing'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 119,
|
|
"kind": "error",
|
|
"line": 120,
|
|
"message": "'String' does not implement the '__mlir_index__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 126,
|
|
"kind": "error",
|
|
"line": 127,
|
|
"message": "'Self' type is not available in this context",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "error",
|
|
"line": 20,
|
|
"message": "@align value must be a positive power of 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "@align value must be a positive power of 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "@align value must be a positive power of 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "@align value must be a positive power of 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "@align value must be a positive power of 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 50,
|
|
"kind": "error",
|
|
"line": 51,
|
|
"message": "@align value must be a positive power of 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "@align value must be a positive power of 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "@align requires exactly one argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "@align requires exactly one argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "@align requires exactly one argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 80,
|
|
"kind": "error",
|
|
"line": 81,
|
|
"message": "'StringLiteral[\"64\"]' does not implement the '__mlir_index__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 86,
|
|
"kind": "error",
|
|
"line": 87,
|
|
"message": "@align value exceeds maximum alignment (2^29)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 92,
|
|
"kind": "error",
|
|
"line": 93,
|
|
"message": "@align value exceeds maximum alignment (2^29)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 105,
|
|
"kind": "error",
|
|
"line": 106,
|
|
"message": "use of unknown declaration 'nonexistent'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 112,
|
|
"kind": "error",
|
|
"line": 113,
|
|
"message": "use of unknown declaration 'missing'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 119,
|
|
"kind": "error",
|
|
"line": 120,
|
|
"message": "'String' does not implement the '__mlir_index__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 126,
|
|
"kind": "error",
|
|
"line": 127,
|
|
"message": "'Self' type is not available in this context",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/align_decorator_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/align_decorator_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/align_decorator_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 131,
|
|
"kind": "note",
|
|
"line": 132,
|
|
"message": "constraint declared here needs evidence for '(K > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 136,
|
|
"kind": "note",
|
|
"line": 137,
|
|
"message": "add a trailing 'where' clause that requires '(K > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 149,
|
|
"kind": "note",
|
|
"line": 150,
|
|
"message": "constraint declared here needs evidence for '(K > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 154,
|
|
"kind": "note",
|
|
"line": 155,
|
|
"message": "add a trailing 'where' clause that requires '(K > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 156,
|
|
"kind": "error",
|
|
"line": 157,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 167,
|
|
"kind": "note",
|
|
"line": 168,
|
|
"message": "constraint declared here needs evidence for '(K > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 172,
|
|
"kind": "error",
|
|
"line": 174,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 173,
|
|
"kind": "note",
|
|
"line": 174,
|
|
"message": "add a trailing 'where' clause that requires '(K > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 184,
|
|
"kind": "note",
|
|
"line": 185,
|
|
"message": "constraint declared here needs evidence for '(K > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "error",
|
|
"line": 191,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 190,
|
|
"kind": "note",
|
|
"line": 191,
|
|
"message": "add a trailing 'where' clause that requires '(K > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 201,
|
|
"kind": "note",
|
|
"line": 202,
|
|
"message": "constraint declared here needs evidence for '(K > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 206,
|
|
"kind": "note",
|
|
"line": 207,
|
|
"message": "add a trailing 'where' clause that requires '(K > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 208,
|
|
"kind": "error",
|
|
"line": 209,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 223,
|
|
"kind": "note",
|
|
"line": 224,
|
|
"message": "constraint declared here needs evidence for '(B > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 228,
|
|
"kind": "note",
|
|
"line": 229,
|
|
"message": "add a trailing 'where' clause that requires '(B > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 230,
|
|
"kind": "error",
|
|
"line": 231,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 241,
|
|
"kind": "note",
|
|
"line": 242,
|
|
"message": "constraint declared here needs evidence for 'conforms_to(T, Intable)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 246,
|
|
"kind": "note",
|
|
"line": 247,
|
|
"message": "add a trailing 'where' clause that requires 'conforms_to(T, Intable)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 248,
|
|
"kind": "error",
|
|
"line": 249,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 259,
|
|
"kind": "note",
|
|
"line": 260,
|
|
"message": "constraint declared here needs evidence for 'conforms_to(T, Intable)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 264,
|
|
"kind": "note",
|
|
"line": 265,
|
|
"message": "add a trailing 'where' clause that requires 'conforms_to(T, Intable)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 266,
|
|
"kind": "error",
|
|
"line": 267,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 279,
|
|
"kind": "note",
|
|
"line": 280,
|
|
"message": "constraint declared here needs evidence for '(A > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 285,
|
|
"kind": "note",
|
|
"line": 286,
|
|
"message": "constraint declared here needs evidence for '(B > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 290,
|
|
"kind": "note",
|
|
"line": 292,
|
|
"message": "add a trailing 'where' clause that requires '(A > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 291,
|
|
"kind": "note",
|
|
"line": 292,
|
|
"message": "add a trailing 'where' clause that requires '(B > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 293,
|
|
"kind": "error",
|
|
"line": 294,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 296,
|
|
"kind": "error",
|
|
"line": 297,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 310,
|
|
"kind": "note",
|
|
"line": 311,
|
|
"message": "cannot prove constraint for candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 312,
|
|
"kind": "note",
|
|
"line": 313,
|
|
"message": "constraint declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 317,
|
|
"kind": "note",
|
|
"line": 318,
|
|
"message": "cannot prove constraint for candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 319,
|
|
"kind": "note",
|
|
"line": 320,
|
|
"message": "constraint declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 329,
|
|
"kind": "error",
|
|
"line": 332,
|
|
"message": "ambiguous call to 'mc_target': lacking evidence to select candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 330,
|
|
"kind": "note",
|
|
"line": 332,
|
|
"message": "provide evidence for or against the constraints here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 331,
|
|
"kind": "note",
|
|
"line": 332,
|
|
"message": "body constraints cannot be deferred because more than one candidate is inconclusive",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 396,
|
|
"kind": "error",
|
|
"line": 399,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 397,
|
|
"kind": "note",
|
|
"line": 399,
|
|
"message": "constraint declared here needs evidence for 'conforms_to(T, Copyable)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 398,
|
|
"kind": "note",
|
|
"line": 399,
|
|
"message": "add a trailing 'where' clause that requires 'conforms_to(T, Copyable)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 415,
|
|
"kind": "note",
|
|
"line": 416,
|
|
"message": "'NeedsCopyableConcrete' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 420,
|
|
"kind": "error",
|
|
"line": 421,
|
|
"message": "'NeedsCopyableConcrete' parameter 'T' has 'Copyable' type, but value has type 'AnyStruct[MoveOnly]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 460,
|
|
"kind": "error",
|
|
"line": 463,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 461,
|
|
"kind": "note",
|
|
"line": 463,
|
|
"message": "constraint declared here needs evidence for 'conforms_to(U, Copyable)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 462,
|
|
"kind": "note",
|
|
"line": 463,
|
|
"message": "add a trailing 'where' clause that requires 'conforms_to(U, Copyable)'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 156,
|
|
"kind": "error",
|
|
"line": 157,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 172,
|
|
"kind": "error",
|
|
"line": 174,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "error",
|
|
"line": 191,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 208,
|
|
"kind": "error",
|
|
"line": 209,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 230,
|
|
"kind": "error",
|
|
"line": 231,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 248,
|
|
"kind": "error",
|
|
"line": 249,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 266,
|
|
"kind": "error",
|
|
"line": 267,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 293,
|
|
"kind": "error",
|
|
"line": 294,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 296,
|
|
"kind": "error",
|
|
"line": 297,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 329,
|
|
"kind": "error",
|
|
"line": 332,
|
|
"message": "ambiguous call to 'mc_target': lacking evidence to select candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 396,
|
|
"kind": "error",
|
|
"line": 399,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 420,
|
|
"kind": "error",
|
|
"line": 421,
|
|
"message": "'NeedsCopyableConcrete' parameter 'T' has 'Copyable' type, but value has type 'AnyStruct[MoveOnly]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 460,
|
|
"kind": "error",
|
|
"line": 463,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/body_constraint_deferral.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/body_constraint_deferral",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/body_constraint_deferral.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "'@always_inline(\"builtin\")' does not support recursion",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 35,
|
|
"message": "'@always_inline(\"builtin\")' does not support recursion",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "'@always_inline(\"builtin\")' does not support recursion",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "'@always_inline(\"builtin\")' does not support recursion",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 35,
|
|
"message": "'@always_inline(\"builtin\")' does not support recursion",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "'@always_inline(\"builtin\")' does not support recursion",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/builtin_inline_recursion.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/builtin_inline_recursion",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/builtin_inline_recursion.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics -split-input-file %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "import of 'Foo' is ambiguous",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "import of 'Foo' is ambiguous",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 69,
|
|
"kind": "error",
|
|
"line": 70,
|
|
"message": "import of 'Foo' is ambiguous",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 75,
|
|
"kind": "error",
|
|
"line": 76,
|
|
"message": "invalid call to 'Foo': unexpected argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "error",
|
|
"line": 88,
|
|
"message": "import of 'Foo' is ambiguous",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 104,
|
|
"kind": "error",
|
|
"line": 105,
|
|
"message": "import of 'Foo' is ambiguous",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 116,
|
|
"kind": "error",
|
|
"line": 117,
|
|
"message": "import of 'Foo' is ambiguous",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "import of 'Foo' is ambiguous",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "import of 'Foo' is ambiguous",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 69,
|
|
"kind": "error",
|
|
"line": 70,
|
|
"message": "import of 'Foo' is ambiguous",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 75,
|
|
"kind": "error",
|
|
"line": 76,
|
|
"message": "invalid call to 'Foo': unexpected argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "error",
|
|
"line": 88,
|
|
"message": "import of 'Foo' is ambiguous",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 104,
|
|
"kind": "error",
|
|
"line": 105,
|
|
"message": "import of 'Foo' is ambiguous",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 116,
|
|
"kind": "error",
|
|
"line": 117,
|
|
"message": "import of 'Foo' is ambiguous",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/conflicting_imports_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/conflicting_imports_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/conflicting_imports_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -I %S/inputs %s -split-input-file -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 107,
|
|
"kind": "note",
|
|
"line": 108,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 113,
|
|
"kind": "error",
|
|
"line": 114,
|
|
"message": "invalid call to 'takes_constrained': value passed to 's' cannot be converted from 'Int' to 'Constrained[m]'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 113,
|
|
"kind": "error",
|
|
"line": 114,
|
|
"message": "invalid call to 'takes_constrained': value passed to 's' cannot be converted from 'Int' to 'Constrained[m]'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/conformance_parametric_constraint_alias.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/conformance_parametric_constraint_alias",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/conformance_parametric_constraint_alias.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "note",
|
|
"line": 25,
|
|
"message": "cannot evaluate call to non-builtin function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "note",
|
|
"line": 29,
|
|
"message": "cannot evaluate call to non-builtin function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "note",
|
|
"line": 37,
|
|
"message": "cannot prove constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "note",
|
|
"line": 39,
|
|
"message": "constraint declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "invalid call to 'single_fn_constraint': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "note",
|
|
"line": 45,
|
|
"message": "provide evidence for the constraint here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "note",
|
|
"line": 53,
|
|
"message": "cannot prove constraint for candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 54,
|
|
"kind": "note",
|
|
"line": 55,
|
|
"message": "constraint declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 58,
|
|
"kind": "note",
|
|
"line": 59,
|
|
"message": "candidate is valid but cannot be selected until other candidates are disproved",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 66,
|
|
"message": "ambiguous call to 'multi_fn_one_inconclusive': lacking evidence to select candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 65,
|
|
"kind": "note",
|
|
"line": 66,
|
|
"message": "provide evidence for or against the constraints here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 73,
|
|
"kind": "note",
|
|
"line": 74,
|
|
"message": "cannot prove constraint for candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 75,
|
|
"kind": "note",
|
|
"line": 76,
|
|
"message": "constraint declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "note",
|
|
"line": 80,
|
|
"message": "cannot prove constraint for candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 81,
|
|
"kind": "note",
|
|
"line": 82,
|
|
"message": "constraint declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 86,
|
|
"kind": "error",
|
|
"line": 88,
|
|
"message": "ambiguous call to 'multi_fn_multi_inconclusive': lacking evidence to select candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "note",
|
|
"line": 88,
|
|
"message": "provide evidence for or against the constraints here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 123,
|
|
"kind": "note",
|
|
"line": 124,
|
|
"message": "cannot prove constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 125,
|
|
"kind": "note",
|
|
"line": 126,
|
|
"message": "constraint declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 134,
|
|
"kind": "error",
|
|
"line": 136,
|
|
"message": "invalid call to 'multi_fn_best_fitness_inconclusive': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 135,
|
|
"kind": "note",
|
|
"line": 136,
|
|
"message": "provide evidence for the constraint here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 143,
|
|
"kind": "note",
|
|
"line": 144,
|
|
"message": "cannot prove constraint for candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 145,
|
|
"kind": "note",
|
|
"line": 146,
|
|
"message": "constraint declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 151,
|
|
"kind": "note",
|
|
"line": 152,
|
|
"message": "candidate is valid but cannot be selected until other candidates are disproved",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 158,
|
|
"kind": "error",
|
|
"line": 160,
|
|
"message": "ambiguous call to 'mixed_constraints': lacking evidence to select candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 159,
|
|
"kind": "note",
|
|
"line": 160,
|
|
"message": "provide evidence for or against the constraints here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 167,
|
|
"kind": "note",
|
|
"line": 168,
|
|
"message": "cannot prove constraint for candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 169,
|
|
"kind": "note",
|
|
"line": 170,
|
|
"message": "constraint declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 173,
|
|
"kind": "note",
|
|
"line": 174,
|
|
"message": "candidate is valid but cannot be selected until other candidates are disproved",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 179,
|
|
"kind": "error",
|
|
"line": 181,
|
|
"message": "ambiguous call to 'ref_to_overload': lacking evidence to select candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 180,
|
|
"kind": "note",
|
|
"line": 181,
|
|
"message": "provide evidence for or against the constraints here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 188,
|
|
"kind": "note",
|
|
"line": 189,
|
|
"message": "cannot prove or disprove constraints for candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 190,
|
|
"kind": "note",
|
|
"line": 191,
|
|
"message": "constraint declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 192,
|
|
"kind": "note",
|
|
"line": 193,
|
|
"message": "constraint declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 197,
|
|
"kind": "error",
|
|
"line": 199,
|
|
"message": "invalid call to 'multiple_inconclusive_same': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 198,
|
|
"kind": "note",
|
|
"line": 199,
|
|
"message": "provide evidence for the constraint here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 206,
|
|
"kind": "note",
|
|
"line": 207,
|
|
"message": "cannot prove constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 209,
|
|
"kind": "note",
|
|
"line": 210,
|
|
"message": "constraint declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 218,
|
|
"kind": "error",
|
|
"line": 220,
|
|
"message": "invalid call to 'provable_and_inconclusive': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 219,
|
|
"kind": "note",
|
|
"line": 220,
|
|
"message": "provide evidence for the constraint here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 233,
|
|
"kind": "note",
|
|
"line": 234,
|
|
"message": "cannot prove constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 235,
|
|
"kind": "note",
|
|
"line": 236,
|
|
"message": "constraint declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 242,
|
|
"kind": "error",
|
|
"line": 244,
|
|
"message": "invalid call to 'violated_vs_inconclusive': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 243,
|
|
"kind": "note",
|
|
"line": 244,
|
|
"message": "provide evidence for the constraint here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 256,
|
|
"kind": "note",
|
|
"line": 257,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 262,
|
|
"kind": "note",
|
|
"line": 263,
|
|
"message": "constraint declared here evaluated to False, expected 'conforms_to(Keys.IteratorType[{{.*}}].Element, Deinitable)'",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 270,
|
|
"kind": "error",
|
|
"line": 271,
|
|
"message": "invalid call to 'make': violated constraint",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "invalid call to 'single_fn_constraint': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 66,
|
|
"message": "ambiguous call to 'multi_fn_one_inconclusive': lacking evidence to select candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 86,
|
|
"kind": "error",
|
|
"line": 88,
|
|
"message": "ambiguous call to 'multi_fn_multi_inconclusive': lacking evidence to select candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 134,
|
|
"kind": "error",
|
|
"line": 136,
|
|
"message": "invalid call to 'multi_fn_best_fitness_inconclusive': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 158,
|
|
"kind": "error",
|
|
"line": 160,
|
|
"message": "ambiguous call to 'mixed_constraints': lacking evidence to select candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 179,
|
|
"kind": "error",
|
|
"line": 181,
|
|
"message": "ambiguous call to 'ref_to_overload': lacking evidence to select candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 197,
|
|
"kind": "error",
|
|
"line": 199,
|
|
"message": "invalid call to 'multiple_inconclusive_same': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 218,
|
|
"kind": "error",
|
|
"line": 220,
|
|
"message": "invalid call to 'provable_and_inconclusive': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 242,
|
|
"kind": "error",
|
|
"line": 244,
|
|
"message": "invalid call to 'violated_vs_inconclusive': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 270,
|
|
"kind": "error",
|
|
"line": 271,
|
|
"message": "invalid call to 'make': violated constraint",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/constraint_overload_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/constraint_overload_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/constraint_overload_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "note",
|
|
"line": 34,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "invalid call to 'test_bool_context': value passed to 'a' cannot be converted from 'None' to 'NotBoolConvertible'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 43,
|
|
"message": "cannot implicitly convert 'None' value to '__mlir_type.index' in return value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 46,
|
|
"message": "cannot implicitly convert 'FloatLiteral[4]' value to '__mlir_type.index' in return value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "warning",
|
|
"line": 52,
|
|
"message": "'Coroutine[None, {}]' value is not awaited; use 'await' to get its result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "warning",
|
|
"line": 53,
|
|
"message": "'Coroutine[Int, {}]' value is not awaited; use 'await' to get its result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 68,
|
|
"message": "Could not infer capture convention of the captured value a",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "error",
|
|
"line": 84,
|
|
"message": "expected ':' in function definition",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 89,
|
|
"kind": "error",
|
|
"line": 90,
|
|
"message": "'out' convention must not be variadic",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 92,
|
|
"kind": "error",
|
|
"line": 93,
|
|
"message": "expected ']' for parameter list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 95,
|
|
"kind": "error",
|
|
"line": 96,
|
|
"message": "function may not have multiple 'out' arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 98,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "functions must not declare both an 'out' argument and a return type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 101,
|
|
"kind": "error",
|
|
"line": 102,
|
|
"message": "functions must not declare both an 'out' argument and a return type; remove the '-> None' to fix it",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 105,
|
|
"kind": "error",
|
|
"line": 106,
|
|
"message": "__init__ method must return Self type with 'out' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 110,
|
|
"kind": "error",
|
|
"line": 112,
|
|
"message": "__init__ method must return Self type with 'out' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 111,
|
|
"kind": "error",
|
|
"line": 112,
|
|
"message": "self argument must be present in instance method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 115,
|
|
"kind": "error",
|
|
"line": 116,
|
|
"message": "argument type must be specified",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 119,
|
|
"kind": "error",
|
|
"line": 120,
|
|
"message": "'abi(\"C\")' function may not be marked 'raises'; remove 'raises' or use 'abi(\"Mojo\")'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 130,
|
|
"kind": "error",
|
|
"line": 132,
|
|
"message": "required positional argument follows optional positional argument; change the ordering",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 131,
|
|
"kind": "error",
|
|
"line": 132,
|
|
"message": "argument type must be specified",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 133,
|
|
"kind": "error",
|
|
"line": 133,
|
|
"message": "required positional argument follows optional positional argument; change the ordering",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 135,
|
|
"kind": "error",
|
|
"line": 137,
|
|
"message": "required positional argument follows optional positional argument; change the ordering",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 136,
|
|
"kind": "error",
|
|
"line": 137,
|
|
"message": "argument type must be specified",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "argument type must be specified",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 145,
|
|
"kind": "error",
|
|
"line": 145,
|
|
"message": "required positional argument follows optional positional argument; change the ordering",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 147,
|
|
"kind": "error",
|
|
"line": 147,
|
|
"message": "required positional argument follows optional positional argument; change the ordering",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 151,
|
|
"kind": "error",
|
|
"line": 152,
|
|
"message": "use of unknown declaration 'unknown'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 154,
|
|
"kind": "error",
|
|
"line": 155,
|
|
"message": "cannot use a dynamic value in default argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 164,
|
|
"kind": "error",
|
|
"line": 165,
|
|
"message": "invalid call to '__init__': no candidates found",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 172,
|
|
"kind": "error",
|
|
"line": 173,
|
|
"message": "'mut' arguments must not have defaults",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 175,
|
|
"kind": "error",
|
|
"line": 176,
|
|
"message": "'**' marker must be at end of argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 178,
|
|
"kind": "error",
|
|
"line": 179,
|
|
"message": "'**' marker must be at end of argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 181,
|
|
"kind": "error",
|
|
"line": 182,
|
|
"message": "expected argument name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 184,
|
|
"kind": "error",
|
|
"line": 185,
|
|
"message": "variadic arguments must not have defaults",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "note",
|
|
"line": 190,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 191,
|
|
"kind": "note",
|
|
"line": 192,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 199,
|
|
"kind": "note",
|
|
"line": 200,
|
|
"message": "struct declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 201,
|
|
"kind": "note",
|
|
"line": 202,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 207,
|
|
"kind": "error",
|
|
"line": 208,
|
|
"message": "cannot use Self parameter 'a' in constructor whose result defines it to '(a + Int(1))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 209,
|
|
"kind": "error",
|
|
"line": 210,
|
|
"message": "cannot use Self parameter 'a' in constructor whose result defines it to 'Int(4)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 211,
|
|
"kind": "error",
|
|
"line": 212,
|
|
"message": "cannot use Self parameter 'a' in constructor whose result defines it to 'Int(7)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 223,
|
|
"kind": "note",
|
|
"line": 224,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 234,
|
|
"kind": "error",
|
|
"line": 235,
|
|
"message": "invalid call to 'exampleByRefVariadic': value passed to mutable argument 'b' must be mutable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 236,
|
|
"kind": "error",
|
|
"line": 237,
|
|
"message": "invalid call to 'exampleByRefVariadic': l-value of type 'FloatDyn' cannot be converted to reference of type 'Int'",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 238,
|
|
"kind": "error",
|
|
"line": 239,
|
|
"message": "value passed to mutable argument 'b' must be mutable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 242,
|
|
"kind": "error",
|
|
"line": 243,
|
|
"message": "failed to infer parameter 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 244,
|
|
"kind": "error",
|
|
"line": 245,
|
|
"message": "failed to infer parameter 'T' of parent struct 'ParameterizedStruct'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 250,
|
|
"kind": "error",
|
|
"line": 251,
|
|
"message": "invalid call to 'test': failed to infer parameter 'j'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 254,
|
|
"kind": "error",
|
|
"line": 255,
|
|
"message": "cannot implicitly convert 'ParameterizedStruct[Int]' value to 'ParameterizedStruct[Bool]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 257,
|
|
"kind": "note",
|
|
"line": 258,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 259,
|
|
"kind": "note",
|
|
"line": 260,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 262,
|
|
"kind": "note",
|
|
"line": 263,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 266,
|
|
"kind": "error",
|
|
"line": 267,
|
|
"message": "cannot convert function to non-function type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 269,
|
|
"kind": "error",
|
|
"line": 270,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 272,
|
|
"kind": "error",
|
|
"line": 273,
|
|
"message": "pack argument type list must reference a variadic list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 276,
|
|
"kind": "error",
|
|
"line": 277,
|
|
"message": "parameters must not be variadic packs",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 279,
|
|
"kind": "error",
|
|
"line": 281,
|
|
"message": "variadic unpacking with '*' requires a variadic argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 280,
|
|
"kind": "note",
|
|
"line": 281,
|
|
"message": "'x' is not a variadic argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 283,
|
|
"kind": "error",
|
|
"line": 284,
|
|
"message": "argument already has a convention specified",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 286,
|
|
"kind": "note",
|
|
"line": 287,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 297,
|
|
"kind": "note",
|
|
"line": 298,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 303,
|
|
"kind": "error",
|
|
"line": 304,
|
|
"message": "assigning 0 operands to an unresolvable variadic pack argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 307,
|
|
"kind": "error",
|
|
"line": 308,
|
|
"message": "expected 1 element in variadic pack, got 2 argument values",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 309,
|
|
"kind": "error",
|
|
"line": 310,
|
|
"message": "expected 2 elements in variadic pack, got 1 argument value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 311,
|
|
"kind": "error",
|
|
"line": 312,
|
|
"message": "invalid call to 'examplePack': value passed to 'args' cannot be converted from '__mlir_type.`!kgen.scalar<index>`' to 'FloatDyn'",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 313,
|
|
"kind": "error",
|
|
"line": 314,
|
|
"message": "invalid call to 'examplePack': could not infer type of parameter pack 'args' given value with unresolved type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 315,
|
|
"kind": "error",
|
|
"line": 316,
|
|
"message": "invalid call to 'first_and_rest': failed to infer parameter 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 319,
|
|
"kind": "error",
|
|
"line": 322,
|
|
"message": "'self' argument must have type 'TestPackErrorMessage[Ts]', but actually has type 'VariadicPack[False, Ts]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 320,
|
|
"kind": "error",
|
|
"line": 322,
|
|
"message": "__init__ method must return Self type with 'out' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 327,
|
|
"kind": "error",
|
|
"line": 329,
|
|
"message": "'@always_inline(\"builtin\")' does not support this argument convention",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 331,
|
|
"kind": "error",
|
|
"line": 333,
|
|
"message": "'@always_inline(\"builtin\")' does not support this argument convention",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 335,
|
|
"kind": "error",
|
|
"line": 337,
|
|
"message": "'@always_inline(\"builtin\")' does not support this argument convention",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 341,
|
|
"kind": "error",
|
|
"line": 342,
|
|
"message": "'@always_inline(\"builtin\")' can only handle single-result if",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 345,
|
|
"kind": "error",
|
|
"line": 346,
|
|
"message": "'where' clauses must be used with parameters and cannot be used with arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 349,
|
|
"kind": "note",
|
|
"line": 350,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 351,
|
|
"kind": "note",
|
|
"line": 352,
|
|
"message": "constraint declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 353,
|
|
"kind": "note",
|
|
"line": 354,
|
|
"message": "constraint declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 357,
|
|
"kind": "note",
|
|
"line": 358,
|
|
"message": "cannot evaluate call to non-builtin function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 365,
|
|
"kind": "note",
|
|
"line": 367,
|
|
"message": "cannot prove constraint for candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 366,
|
|
"kind": "note",
|
|
"line": 367,
|
|
"message": "constraint declared here needs evidence for 'foldable_predicate(x)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 371,
|
|
"kind": "error",
|
|
"line": 373,
|
|
"message": "invalid call to 'need_foldable_predicate': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 372,
|
|
"kind": "note",
|
|
"line": 373,
|
|
"message": "provide evidence for the constraint here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 375,
|
|
"kind": "note",
|
|
"line": 377,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 376,
|
|
"kind": "note",
|
|
"line": 377,
|
|
"message": "cannot prove constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 378,
|
|
"kind": "note",
|
|
"line": 379,
|
|
"message": "constraint declared here evaluated to False, expected '(x > Int(1))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 380,
|
|
"kind": "note",
|
|
"line": 381,
|
|
"message": "constraint declared here needs evidence for 'unfoldable_predicate(Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 397,
|
|
"kind": "note",
|
|
"line": 399,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 398,
|
|
"kind": "note",
|
|
"line": 399,
|
|
"message": "constraint declared here evaluated to False",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 403,
|
|
"kind": "error",
|
|
"line": 404,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 405,
|
|
"kind": "error",
|
|
"line": 406,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 407,
|
|
"kind": "error",
|
|
"line": 408,
|
|
"message": "violated constraints",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 410,
|
|
"kind": "error",
|
|
"line": 411,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 412,
|
|
"kind": "error",
|
|
"line": 414,
|
|
"message": "invalid call to 'unprovable_constraints': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 413,
|
|
"kind": "note",
|
|
"line": 414,
|
|
"message": "provide evidence for the constraint here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 416,
|
|
"kind": "error",
|
|
"line": 417,
|
|
"message": "invalid call to 'failing_constraint_with_depth': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 419,
|
|
"kind": "note",
|
|
"line": 420,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 421,
|
|
"kind": "note",
|
|
"line": 422,
|
|
"message": "constraint declared here evaluated to False, expected '(x > Int(1))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 426,
|
|
"kind": "error",
|
|
"line": 427,
|
|
"message": "invalid call to 'unprovable_param_constraints': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 429,
|
|
"kind": "error",
|
|
"line": 431,
|
|
"message": "'where' clauses inside parameter lists are no longer supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 430,
|
|
"kind": "note",
|
|
"line": 431,
|
|
"message": "use a trailing 'where' clause after the signature instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 437,
|
|
"kind": "error",
|
|
"line": 439,
|
|
"message": "'where' clauses inside parameter lists are no longer supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 438,
|
|
"kind": "note",
|
|
"line": 439,
|
|
"message": "use a trailing 'where' clause after the result type of a 'thin' function type instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 443,
|
|
"kind": "note",
|
|
"line": 446,
|
|
"message": "'ConstraintStruct' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 444,
|
|
"kind": "note",
|
|
"line": 446,
|
|
"message": "constraint declared here needs evidence for '(x > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 445,
|
|
"kind": "note",
|
|
"line": 446,
|
|
"message": "constraint declared here evaluated to False, expected '(a > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 449,
|
|
"kind": "note",
|
|
"line": 450,
|
|
"message": "add a trailing 'where' clause that requires '(x > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 451,
|
|
"kind": "error",
|
|
"line": 450,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 454,
|
|
"kind": "error",
|
|
"line": 455,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 458,
|
|
"kind": "note",
|
|
"line": 462,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 459,
|
|
"kind": "note",
|
|
"line": 462,
|
|
"message": "constraint declared here evaluated to False, expected '(a > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 460,
|
|
"kind": "note",
|
|
"line": 462,
|
|
"message": "cannot prove constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 461,
|
|
"kind": "note",
|
|
"line": 462,
|
|
"message": "constraint declared here needs evidence for '(x > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 466,
|
|
"kind": "error",
|
|
"line": 467,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 468,
|
|
"kind": "error",
|
|
"line": 469,
|
|
"message": "invalid bindings for 'constraint_fn': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 474,
|
|
"kind": "note",
|
|
"line": 476,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 475,
|
|
"kind": "note",
|
|
"line": 476,
|
|
"message": "constraint declared here evaluated to False, expected '(x > Int(3))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 480,
|
|
"kind": "error",
|
|
"line": 481,
|
|
"message": "invalid call to 'violated_default_constraint': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 496,
|
|
"kind": "note",
|
|
"line": 497,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 498,
|
|
"kind": "error",
|
|
"line": 499,
|
|
"message": "redefinition of function 'fn_redecl' with identical signature",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 501,
|
|
"kind": "note",
|
|
"line": 502,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 503,
|
|
"kind": "error",
|
|
"line": 504,
|
|
"message": "redefinition of function 'fn_redecl2', cannot overload on return type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 506,
|
|
"kind": "note",
|
|
"line": 509,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 507,
|
|
"kind": "note",
|
|
"line": 509,
|
|
"message": "candidate not viable: value passed to 'a' cannot be converted from 'TestOverloading' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 508,
|
|
"kind": "note",
|
|
"line": 509,
|
|
"message": "candidate not viable: unexpected argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 511,
|
|
"kind": "note",
|
|
"line": 514,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 512,
|
|
"kind": "note",
|
|
"line": 514,
|
|
"message": "candidate not viable: value passed to 'a' cannot be converted from 'TestOverloading' to 'FloatDyn'",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 513,
|
|
"kind": "note",
|
|
"line": 514,
|
|
"message": "candidate not viable: unexpected argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 516,
|
|
"kind": "note",
|
|
"line": 519,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 517,
|
|
"kind": "note",
|
|
"line": 519,
|
|
"message": "candidate not viable: missing required argument: 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 518,
|
|
"kind": "note",
|
|
"line": 519,
|
|
"message": "candidate not viable: value passed to 'b' cannot be converted from 'FloatDyn' to 'Int'",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 521,
|
|
"kind": "note",
|
|
"line": 524,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 522,
|
|
"kind": "note",
|
|
"line": 524,
|
|
"message": "candidate not viable: missing required argument: 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 523,
|
|
"kind": "note",
|
|
"line": 524,
|
|
"message": "value passed to mutable argument 'b' must be mutable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 526,
|
|
"kind": "note",
|
|
"line": 529,
|
|
"message": "candidate not viable: missing required argument: 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 527,
|
|
"kind": "note",
|
|
"line": 529,
|
|
"message": "candidate not viable: missing required argument: 'c'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 528,
|
|
"kind": "note",
|
|
"line": 529,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 532,
|
|
"kind": "note",
|
|
"line": 532,
|
|
"message": "cannot overload with this non-function definition",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 533,
|
|
"kind": "error",
|
|
"line": 533,
|
|
"message": "invalid redefinition of 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 537,
|
|
"kind": "note",
|
|
"line": 539,
|
|
"message": "add '()' to call the function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 538,
|
|
"kind": "error",
|
|
"line": 539,
|
|
"message": "cannot form a reference to overloaded declaration",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 541,
|
|
"kind": "error",
|
|
"line": 542,
|
|
"message": "no matching function in call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 543,
|
|
"kind": "error",
|
|
"line": 544,
|
|
"message": "no matching function in call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 550,
|
|
"kind": "note",
|
|
"line": 551,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 554,
|
|
"kind": "error",
|
|
"line": 555,
|
|
"message": "redefinition of function '__getitem__', cannot overload on return type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 562,
|
|
"kind": "note",
|
|
"line": 564,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 569,
|
|
"kind": "error",
|
|
"line": 570,
|
|
"message": "invalid call to 'bar': missing required argument: 'f'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 573,
|
|
"kind": "note",
|
|
"line": 574,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 576,
|
|
"kind": "error",
|
|
"line": 577,
|
|
"message": "invalid call to 'takesAtLeastOneInt': missing required argument: 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 581,
|
|
"kind": "note",
|
|
"line": 582,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 585,
|
|
"kind": "error",
|
|
"line": 586,
|
|
"message": "invalid call to 'too_few_pos_only': missing required argument: 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 590,
|
|
"kind": "note",
|
|
"line": 591,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 594,
|
|
"kind": "error",
|
|
"line": 595,
|
|
"message": "invalid call to 'missing_args': missing required argument: 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 603,
|
|
"kind": "note",
|
|
"line": 605,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 604,
|
|
"kind": "note",
|
|
"line": 605,
|
|
"message": "candidate not viable: value passed to 'b' cannot be converted from 'ConvertibleFromInt' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 606,
|
|
"kind": "note",
|
|
"line": 608,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 607,
|
|
"kind": "note",
|
|
"line": 608,
|
|
"message": "candidate not viable: value passed to 'a' cannot be converted from 'ConvertibleFromInt' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 613,
|
|
"kind": "error",
|
|
"line": 614,
|
|
"message": "ambiguous call to 'ambiguousConversions', each candidate requires 1 implicit conversion, disambiguate with an explicit cast",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 615,
|
|
"kind": "error",
|
|
"line": 616,
|
|
"message": "no matching function in call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 622,
|
|
"kind": "error",
|
|
"line": 623,
|
|
"message": "invalid indirect call: value passed to 'a' cannot be converted from 'ConvertibleFromInt' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 629,
|
|
"kind": "note",
|
|
"line": 630,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 635,
|
|
"kind": "error",
|
|
"line": 636,
|
|
"message": "invalid call to 'takes_same_arg_types': missing required argument: 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 638,
|
|
"kind": "error",
|
|
"line": 639,
|
|
"message": "invalid call to 'takes_same_arg_types': value passed to 'a' cannot be converted from 'Int' to 'Parametric[x]', it depends on an unresolved parameter 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 641,
|
|
"kind": "error",
|
|
"line": 642,
|
|
"message": "invalid indirect call: missing required argument: 'd'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 645,
|
|
"kind": "error",
|
|
"line": 646,
|
|
"message": "invalid indirect call: value passed to 'c' cannot be converted from 'Int' to 'Parametric[func]', it depends on an unresolved parameter 'func'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 649,
|
|
"kind": "note",
|
|
"line": 651,
|
|
"message": "value passed to 'a' cannot be converted from 'StringLiteral[\"foo\"]' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 650,
|
|
"kind": "note",
|
|
"line": 651,
|
|
"message": "value passed to 'a' cannot be converted from 'Parametric[Int(1)]' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 652,
|
|
"kind": "note",
|
|
"line": 654,
|
|
"message": "value passed to 'a' cannot be converted from 'StringLiteral[\"foo\"]' to '__mlir_type.index'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 653,
|
|
"kind": "note",
|
|
"line": 654,
|
|
"message": "value passed to 'a' cannot be converted from 'Parametric[Int(1)]' to '__mlir_type.index'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 657,
|
|
"kind": "error",
|
|
"line": 658,
|
|
"message": "cannot construct 'InitOverloaded' with itself, you can remove the constructor call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 660,
|
|
"kind": "error",
|
|
"line": 661,
|
|
"message": "no matching function in initialization",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 666,
|
|
"kind": "error",
|
|
"line": 667,
|
|
"message": "no matching function in initialization",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 670,
|
|
"kind": "error",
|
|
"line": 671,
|
|
"message": "cannot emit initializer list without a contextual type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 678,
|
|
"kind": "note",
|
|
"line": 681,
|
|
"message": "by declaration 'Rec'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 679,
|
|
"kind": "error",
|
|
"line": 681,
|
|
"message": "attempt to resolve a recursive reference to declaration 'Rec'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 680,
|
|
"kind": "note",
|
|
"line": 681,
|
|
"message": "referenced through this use",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 682,
|
|
"kind": "note",
|
|
"line": 683,
|
|
"message": "referenced from here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 687,
|
|
"kind": "error",
|
|
"line": 688,
|
|
"message": "'Self' type is not available in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 691,
|
|
"kind": "error",
|
|
"line": 693,
|
|
"message": "attempt to resolve a recursive reference to declaration 'Rec1'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 692,
|
|
"kind": "note",
|
|
"line": 693,
|
|
"message": "referenced through this use",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 693,
|
|
"kind": "note",
|
|
"line": 693,
|
|
"message": "by declaration 'Rec1'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 694,
|
|
"kind": "note",
|
|
"line": 695,
|
|
"message": "referenced through this use",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 697,
|
|
"kind": "note",
|
|
"line": 698,
|
|
"message": "by declaration 'Rec2'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 699,
|
|
"kind": "note",
|
|
"line": 700,
|
|
"message": "referenced from here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 703,
|
|
"kind": "error",
|
|
"line": 704,
|
|
"message": "'def' statement must be on its own line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 707,
|
|
"kind": "error",
|
|
"line": 708,
|
|
"message": "'return' must be inside a function; move this into a function body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 710,
|
|
"kind": "note",
|
|
"line": 710,
|
|
"message": "conflicts with this previous struct declaration",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 711,
|
|
"kind": "error",
|
|
"line": 711,
|
|
"message": "invalid redefinition of 'ReDef'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 720,
|
|
"kind": "note",
|
|
"line": 720,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 721,
|
|
"kind": "error",
|
|
"line": 721,
|
|
"message": "invalid redefinition of 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 724,
|
|
"kind": "error",
|
|
"line": 725,
|
|
"message": "'__new__' is not supported on structs",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 728,
|
|
"kind": "error",
|
|
"line": 729,
|
|
"message": "'__add__' requires 2 operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 735,
|
|
"kind": "note",
|
|
"line": 736,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 738,
|
|
"kind": "error",
|
|
"line": 740,
|
|
"message": "'__iadd__' result type must be elided (or None)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 739,
|
|
"kind": "error",
|
|
"line": 740,
|
|
"message": "redefinition of function '__iadd__', cannot overload on return type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 744,
|
|
"kind": "error",
|
|
"line": 744,
|
|
"message": "'SpecialFunctions' does not implement the '__mul__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 746,
|
|
"kind": "error",
|
|
"line": 747,
|
|
"message": "destructor must not declare 'raises'; remove the 'raises' keyword",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 752,
|
|
"kind": "error",
|
|
"line": 753,
|
|
"message": "expected ')' in argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 755,
|
|
"kind": "error",
|
|
"line": 756,
|
|
"message": "expected ')' in argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 758,
|
|
"kind": "error",
|
|
"line": 759,
|
|
"message": "expected ')' in argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 761,
|
|
"kind": "note",
|
|
"line": 762,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 763,
|
|
"kind": "error",
|
|
"line": 766,
|
|
"message": "__init__ method must return Self type with 'out' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 764,
|
|
"kind": "error",
|
|
"line": 766,
|
|
"message": "'self' argument must have type 'WrongType', but actually has type 'None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 768,
|
|
"kind": "error",
|
|
"line": 769,
|
|
"message": "'self' argument must have type 'WrongType', but actually has type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 774,
|
|
"kind": "error",
|
|
"line": 776,
|
|
"message": "redefinition of function '__init__', cannot overload on return type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 775,
|
|
"kind": "error",
|
|
"line": 776,
|
|
"message": "'RegisterPassable' types must not declare explicit move constructors; values of these types have no identity, and the compiler can freely move them between registers",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 780,
|
|
"kind": "error",
|
|
"line": 782,
|
|
"message": "'self' argument must have type 'WrongSelfType[a]', but actually has type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 788,
|
|
"kind": "error",
|
|
"line": 789,
|
|
"message": "'__add__' requires 2 operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 795,
|
|
"kind": "error",
|
|
"line": 796,
|
|
"message": "'__pow__' requires at least 2 operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 798,
|
|
"kind": "error",
|
|
"line": 799,
|
|
"message": "'__pow__' requires at most 3 operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 806,
|
|
"kind": "error",
|
|
"line": 807,
|
|
"message": "cannot implicitly convert '__mlir_type.`!kgen.simd<size, FloatDyn>`' value to 'BadInit[size]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 810,
|
|
"kind": "error",
|
|
"line": 811,
|
|
"message": "bare expressions must not appear within structs; use 'var' for a field or move this into a method body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 814,
|
|
"kind": "error",
|
|
"line": 815,
|
|
"message": "bare expressions must not appear within traits; use 'comptime' for an associated type or move this into a method body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 821,
|
|
"kind": "error",
|
|
"line": 822,
|
|
"message": "bare expressions must not appear within extensions; move this into a method body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 828,
|
|
"kind": "error",
|
|
"line": 829,
|
|
"message": "all members of 'RegisterPassable' struct must themselves be 'RegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 831,
|
|
"kind": "error",
|
|
"line": 832,
|
|
"message": "cannot synthesize move constructor because field 'y' has non-movable and non-implicitly-copyable type 'InMemStruct'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 832,
|
|
"kind": "note",
|
|
"line": 832,
|
|
"message": "'y' declared with type 'InMemStruct'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 839,
|
|
"kind": "note",
|
|
"line": 840,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 842,
|
|
"kind": "error",
|
|
"line": 843,
|
|
"message": "'RegisterPassable' types must not declare explicit move constructors; values of these types have no identity, and the compiler can freely move them between registers",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 844,
|
|
"kind": "error",
|
|
"line": 846,
|
|
"message": "redefinition of function '__init__', cannot overload on return type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 845,
|
|
"kind": "error",
|
|
"line": 846,
|
|
"message": "trivial types must not declare explicit copy constructors; they are trivially copyable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 847,
|
|
"kind": "error",
|
|
"line": 849,
|
|
"message": "trivial types must not declare '__deinit__' methods; they are trivially destroyable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 848,
|
|
"kind": "note",
|
|
"line": 849,
|
|
"message": "trivial types have no identity; the compiler destroys them automatically with no observable effect",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 851,
|
|
"kind": "error",
|
|
"line": 851,
|
|
"message": "body must not be empty; use 'pass' or check that the lines below are indented",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 854,
|
|
"kind": "error",
|
|
"line": 854,
|
|
"message": "'self' argument must be passed as 'deinit'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 857,
|
|
"kind": "error",
|
|
"line": 858,
|
|
"message": "'deinit' must only be applied to arguments of Self type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 859,
|
|
"kind": "error",
|
|
"line": 860,
|
|
"message": "'self' argument must not be variadic; remove '*' before 'self'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 861,
|
|
"kind": "error",
|
|
"line": 862,
|
|
"message": "'self' argument must not be variadic; remove '*' before 'self'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 864,
|
|
"kind": "error",
|
|
"line": 865,
|
|
"message": "'deinit' convention is only valid on struct method arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 875,
|
|
"kind": "error",
|
|
"line": 876,
|
|
"message": "'self' argument must be passed as 'deinit'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 887,
|
|
"kind": "error",
|
|
"line": 888,
|
|
"message": "function types do not support 'deinit'; replace with 'var'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 896,
|
|
"kind": "warning",
|
|
"line": 897,
|
|
"message": "'deinit' argument 'take' does not define a move constructor; declare it as '__init__(*, deinit move)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 900,
|
|
"kind": "warning",
|
|
"line": 901,
|
|
"message": "'deinit' argument 'move' does not define a move constructor; declare it as '__init__(*, deinit move)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 904,
|
|
"kind": "error",
|
|
"line": 905,
|
|
"message": "'move' argument must be passed as 'deinit'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 917,
|
|
"kind": "error",
|
|
"line": 920,
|
|
"message": "cannot synthesize fieldwise init because field 'x' has non-copyable and non-movable type 'InMemStruct'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 918,
|
|
"kind": "error",
|
|
"line": 920,
|
|
"message": "cannot synthesize move constructor because field 'x' has non-movable and non-implicitly-copyable type 'InMemStruct'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 919,
|
|
"kind": "error",
|
|
"line": 920,
|
|
"message": "cannot synthesize implicit copy constructor because field 'x' has non-implicitly-copyable type 'InMemStruct'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 927,
|
|
"kind": "error",
|
|
"line": 927,
|
|
"message": "use of unknown declaration 'unknown'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 931,
|
|
"kind": "error",
|
|
"line": 931,
|
|
"message": "struct inside a function not supported here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 941,
|
|
"kind": "error",
|
|
"line": 941,
|
|
"message": "struct inside a function not supported here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 950,
|
|
"kind": "error",
|
|
"line": 951,
|
|
"message": "functions must not declare both an 'out' argument and a return type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 966,
|
|
"kind": "error",
|
|
"line": 966,
|
|
"message": "all members of 'RegisterPassable' struct must themselves be 'RegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 967,
|
|
"kind": "error",
|
|
"line": 970,
|
|
"message": "cannot synthesize move constructor because field '_inner' has non-movable and non-implicitly-copyable type 'NotRegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 968,
|
|
"kind": "error",
|
|
"line": 970,
|
|
"message": "cannot synthesize copy constructor because field '_inner' has non-copyable type 'NotRegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 969,
|
|
"kind": "note",
|
|
"line": 970,
|
|
"message": "'_inner' declared with type 'NotRegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 983,
|
|
"kind": "error",
|
|
"line": 984,
|
|
"message": "cannot synthesize implicit copy constructor because field 'begin' has non-implicitly-copyable type 'StructWithoutBody'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 989,
|
|
"kind": "error",
|
|
"line": 990,
|
|
"message": "cannot synthesize copy constructor because field 'begin' has non-copyable type 'StructWithoutBody'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 998,
|
|
"kind": "error",
|
|
"line": 999,
|
|
"message": "cannot synthesize implicit copy constructor because field 'begin' has non-implicitly-copyable type 'ExplicitlyCopyableStructWithoutBody'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1007,
|
|
"kind": "error",
|
|
"line": 1008,
|
|
"message": "cannot synthesize implicit copy constructor because field 'f' has non-implicitly-copyable type 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1013,
|
|
"kind": "note",
|
|
"line": 1013,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1016,
|
|
"kind": "error",
|
|
"line": 1017,
|
|
"message": "invalid initialization: return type 'StructWithSpecificInit[Int(4)]' parameter 'X' value 'Int(4)' doesn't match expected value 'Int(1)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1028,
|
|
"kind": "error",
|
|
"line": 1029,
|
|
"message": "use of unknown declaration 'UnknownTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1034,
|
|
"kind": "error",
|
|
"line": 1034,
|
|
"message": "traits do not support 'var' fields; use 'comptime' to declare associated types",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1036,
|
|
"kind": "error",
|
|
"line": 1036,
|
|
"message": "body must not be empty; use 'pass' or check that the lines below are indented",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1038,
|
|
"kind": "error",
|
|
"line": 1038,
|
|
"message": "nested trait not supported here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1043,
|
|
"kind": "error",
|
|
"line": 1043,
|
|
"message": "nested struct in a trait not supported here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1046,
|
|
"kind": "error",
|
|
"line": 1046,
|
|
"message": "trait declarations do not support parameters; remove the parameter list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1059,
|
|
"kind": "error",
|
|
"line": 1059,
|
|
"message": "struct fields do not support trait types; 'Shape' is a trait, use a concrete type or compile-time generic",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1063,
|
|
"kind": "error",
|
|
"line": 1066,
|
|
"message": "struct fields cannot expose AnyOrigin in their type; foo has type 'Pointer[Int, MutAnyOrigin]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1064,
|
|
"kind": "note",
|
|
"line": 1066,
|
|
"message": "consider parameterizing enclosing struct with an Origin",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1065,
|
|
"kind": "note",
|
|
"line": 1066,
|
|
"message": "alternatively, use UntrackedOrigin if lifetime is managed explicitly",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1092,
|
|
"kind": "note",
|
|
"line": 1092,
|
|
"message": "trait 'CFMTrait' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1093,
|
|
"kind": "note",
|
|
"line": 1094,
|
|
"message": "no 'f1' candidates have type 'def(self: CFMStructFail) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1098,
|
|
"kind": "note",
|
|
"line": 1098,
|
|
"message": "required function 'f2' is not implemented",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1102,
|
|
"kind": "error",
|
|
"line": 1102,
|
|
"message": "'CFMStructFail' does not implement all requirements for 'CFMTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1103,
|
|
"kind": "note",
|
|
"line": 1103,
|
|
"message": "candidate declared here with type 'def(self: CFMStructFail, x: Int) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1109,
|
|
"kind": "note",
|
|
"line": 1110,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1114,
|
|
"kind": "error",
|
|
"line": 1114,
|
|
"message": "invalid call to 'trait_fn': 'trait_fn' parameter 'T' has 'CFMTrait' type, but value has type 'AnyStruct[NoTraits]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1117,
|
|
"kind": "error",
|
|
"line": 1117,
|
|
"message": "value of type 'T' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1127,
|
|
"kind": "note",
|
|
"line": 1127,
|
|
"message": "trait 'GrandFather' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1128,
|
|
"kind": "note",
|
|
"line": 1128,
|
|
"message": "required function 'foo' is not implemented",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1131,
|
|
"kind": "note",
|
|
"line": 1131,
|
|
"message": "inherited through 'Father' here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1134,
|
|
"kind": "error",
|
|
"line": 1135,
|
|
"message": "'MissingInheriteddef' does not implement all requirements for 'GrandFather'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1145,
|
|
"kind": "note",
|
|
"line": 1146,
|
|
"message": "trait 'TraitWithIntParamOnMethodReallyLongName' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1147,
|
|
"kind": "note",
|
|
"line": 1148,
|
|
"message": "no 'f' candidates have type 'def[n: Int](self: UseTraitWithIntParamOnMethodReallyLongName) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1150,
|
|
"kind": "error",
|
|
"line": 1151,
|
|
"message": "'UseTraitWithIntParamOnMethodReallyLongName' does not implement all requirements for 'TraitWithIntParamOnMethodReallyLongName'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1152,
|
|
"kind": "note",
|
|
"line": 1154,
|
|
"message": "candidate declared here with type 'def[n: Bool](self: UseTraitWithIntParamOnMethodReallyLongName) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1153,
|
|
"kind": "note",
|
|
"line": 1154,
|
|
"message": ".n of the first type is 'Int' but the second type is 'Bool'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1161,
|
|
"kind": "error",
|
|
"line": 1161,
|
|
"message": "classes are not supported yet",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1166,
|
|
"kind": "note",
|
|
"line": 1166,
|
|
"message": "conflicts with this previous declaration",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1167,
|
|
"kind": "error",
|
|
"line": 1167,
|
|
"message": "cannot define a struct here with name 'DTypePointer'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1174,
|
|
"kind": "error",
|
|
"line": 1175,
|
|
"message": "copy constructor must not declare 'raises'; remove the 'raises' keyword",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1179,
|
|
"kind": "error",
|
|
"line": 1180,
|
|
"message": "copy constructor must not declare 'raises'; remove the 'raises' keyword",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1191,
|
|
"kind": "error",
|
|
"line": 1191,
|
|
"message": "all members of 'RegisterPassable' struct must themselves be 'RegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1192,
|
|
"kind": "error",
|
|
"line": 1193,
|
|
"message": "cannot synthesize move constructor because field 'inner' has non-movable and non-implicitly-copyable type 'Inner'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1193,
|
|
"kind": "note",
|
|
"line": 1193,
|
|
"message": "'inner' declared with type 'Inner'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1196,
|
|
"kind": "warning",
|
|
"line": 1198,
|
|
"message": "redundant trait composition: 'Deinitable' already implies 'AnyType'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1199,
|
|
"kind": "error",
|
|
"line": 1202,
|
|
"message": "cannot synthesize fieldwise init because field 'value' has non-copyable and non-movable type 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1200,
|
|
"kind": "error",
|
|
"line": 1202,
|
|
"message": "cannot synthesize move constructor because field 'value' has non-movable and non-implicitly-copyable type 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1201,
|
|
"kind": "error",
|
|
"line": 1202,
|
|
"message": "cannot synthesize implicit copy constructor because field 'value' has non-implicitly-copyable type 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1209,
|
|
"kind": "note",
|
|
"line": 1209,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1210,
|
|
"kind": "error",
|
|
"line": 1210,
|
|
"message": "invalid redefinition of 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1216,
|
|
"kind": "note",
|
|
"line": 1218,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1217,
|
|
"kind": "note",
|
|
"line": 1218,
|
|
"message": "cannot overload with this non-function definition",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1219,
|
|
"kind": "error",
|
|
"line": 1219,
|
|
"message": "invalid redefinition of 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1221,
|
|
"kind": "error",
|
|
"line": 1221,
|
|
"message": "invalid redefinition of 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1239,
|
|
"kind": "error",
|
|
"line": 1240,
|
|
"message": "cannot implicitly convert 'HasBoolParam[True]' value to 'HasBoolParam[False]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1251,
|
|
"kind": "note",
|
|
"line": 1252,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1255,
|
|
"kind": "error",
|
|
"line": 1255,
|
|
"message": "cannot implicitly convert 'Int' value to 'Foo'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1257,
|
|
"kind": "error",
|
|
"line": 1257,
|
|
"message": "cannot implicitly convert 'FloatLiteral[1.2]' value to 'Foo'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1263,
|
|
"kind": "error",
|
|
"line": 1263,
|
|
"message": "cannot implicitly convert 'Int' value to 'Foo'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1267,
|
|
"kind": "error",
|
|
"line": 1267,
|
|
"message": "cannot implicitly convert 'IntLiteral[42]' value to 'Foo'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1271,
|
|
"kind": "error",
|
|
"line": 1271,
|
|
"message": "cannot implicitly convert 'IntLiteral[42]' value to 'Foo'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1275,
|
|
"kind": "error",
|
|
"line": 1275,
|
|
"message": "cannot implicitly convert 'IntLiteral[42]' value to 'Foo'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1280,
|
|
"kind": "error",
|
|
"line": 1280,
|
|
"message": "invalid call to 'take_foo': value passed to 'x' cannot be converted from 'IntLiteral[24]' to 'Foo'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1292,
|
|
"kind": "error",
|
|
"line": 1293,
|
|
"message": "expressions must not appear at file scope; move this into a function body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1303,
|
|
"kind": "error",
|
|
"line": 1304,
|
|
"message": "expressions must not appear at file scope; move this into a function body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1306,
|
|
"kind": "error",
|
|
"line": 1307,
|
|
"message": "global variables are not supported; move this into a function body or use 'comptime' to declare a constant",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1310,
|
|
"kind": "note",
|
|
"line": 1310,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1311,
|
|
"kind": "error",
|
|
"line": 1311,
|
|
"message": "invalid redefinition of 'param'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1318,
|
|
"kind": "note",
|
|
"line": 1319,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1320,
|
|
"kind": "error",
|
|
"line": 1320,
|
|
"message": "invalid redefinition of 'p'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1324,
|
|
"kind": "error",
|
|
"line": 1324,
|
|
"message": "'__deinit__' must be a method, not a global function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1332,
|
|
"kind": "error",
|
|
"line": 1333,
|
|
"message": "cannot implicitly convert 'Error' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1336,
|
|
"kind": "error",
|
|
"line": 1337,
|
|
"message": "cannot call function that may raise 'Int' in context that supports an error type of 'Error'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1339,
|
|
"kind": "error",
|
|
"line": 1340,
|
|
"message": "cannot implicitly convert 'FloatLiteral[4]' value to 'Error'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1345,
|
|
"kind": "error",
|
|
"line": 1346,
|
|
"message": "cannot implicitly convert 'Error' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1349,
|
|
"kind": "error",
|
|
"line": 1350,
|
|
"message": "cannot implicitly convert 'Int' value to 'Error'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1355,
|
|
"kind": "error",
|
|
"line": 1356,
|
|
"message": "cannot implicitly convert 'Int' value to 'String'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1359,
|
|
"kind": "error",
|
|
"line": 1360,
|
|
"message": "@export can not be applied on parametric functions",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1364,
|
|
"kind": "error",
|
|
"line": 1365,
|
|
"message": "@export can not be applied on parametric functions",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1375,
|
|
"kind": "error",
|
|
"line": 1375,
|
|
"message": "'p' refers to an unbound parameter in 'MyParam[_]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1381,
|
|
"kind": "error",
|
|
"line": 1382,
|
|
"message": "cannot construct a value with parametric type: 'Origin[mut=_]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1387,
|
|
"kind": "note",
|
|
"line": 1388,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1392,
|
|
"kind": "error",
|
|
"line": 1393,
|
|
"message": "redefinition of function 'overload_on_arg_conv', cannot overload on argument conventions",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1396,
|
|
"kind": "error",
|
|
"line": 1397,
|
|
"message": "'List[_]' is not concrete, use '[]' to bind missing parameters",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {
|
|
"older": [
|
|
"owned-convention"
|
|
]
|
|
},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "invalid call to 'test_bool_context': value passed to 'a' cannot be converted from 'None' to 'NotBoolConvertible'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 43,
|
|
"message": "cannot implicitly convert 'None' value to '__mlir_type.index' in return value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 46,
|
|
"message": "cannot implicitly convert 'FloatLiteral[4]' value to '__mlir_type.index' in return value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 68,
|
|
"message": "Could not infer capture convention of the captured value a",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "error",
|
|
"line": 84,
|
|
"message": "expected ':' in function definition",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 89,
|
|
"kind": "error",
|
|
"line": 90,
|
|
"message": "'out' convention must not be variadic",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 92,
|
|
"kind": "error",
|
|
"line": 93,
|
|
"message": "expected ']' for parameter list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 95,
|
|
"kind": "error",
|
|
"line": 96,
|
|
"message": "function may not have multiple 'out' arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 98,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "functions must not declare both an 'out' argument and a return type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 101,
|
|
"kind": "error",
|
|
"line": 102,
|
|
"message": "functions must not declare both an 'out' argument and a return type; remove the '-> None' to fix it",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 105,
|
|
"kind": "error",
|
|
"line": 106,
|
|
"message": "__init__ method must return Self type with 'out' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 110,
|
|
"kind": "error",
|
|
"line": 112,
|
|
"message": "__init__ method must return Self type with 'out' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 111,
|
|
"kind": "error",
|
|
"line": 112,
|
|
"message": "self argument must be present in instance method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 115,
|
|
"kind": "error",
|
|
"line": 116,
|
|
"message": "argument type must be specified",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 119,
|
|
"kind": "error",
|
|
"line": 120,
|
|
"message": "'abi(\"C\")' function may not be marked 'raises'; remove 'raises' or use 'abi(\"Mojo\")'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 130,
|
|
"kind": "error",
|
|
"line": 132,
|
|
"message": "required positional argument follows optional positional argument; change the ordering",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 131,
|
|
"kind": "error",
|
|
"line": 132,
|
|
"message": "argument type must be specified",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 133,
|
|
"kind": "error",
|
|
"line": 133,
|
|
"message": "required positional argument follows optional positional argument; change the ordering",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 135,
|
|
"kind": "error",
|
|
"line": 137,
|
|
"message": "required positional argument follows optional positional argument; change the ordering",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 136,
|
|
"kind": "error",
|
|
"line": 137,
|
|
"message": "argument type must be specified",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "argument type must be specified",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 145,
|
|
"kind": "error",
|
|
"line": 145,
|
|
"message": "required positional argument follows optional positional argument; change the ordering",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 147,
|
|
"kind": "error",
|
|
"line": 147,
|
|
"message": "required positional argument follows optional positional argument; change the ordering",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 151,
|
|
"kind": "error",
|
|
"line": 152,
|
|
"message": "use of unknown declaration 'unknown'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 154,
|
|
"kind": "error",
|
|
"line": 155,
|
|
"message": "cannot use a dynamic value in default argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 164,
|
|
"kind": "error",
|
|
"line": 165,
|
|
"message": "invalid call to '__init__': no candidates found",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 172,
|
|
"kind": "error",
|
|
"line": 173,
|
|
"message": "'mut' arguments must not have defaults",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 175,
|
|
"kind": "error",
|
|
"line": 176,
|
|
"message": "'**' marker must be at end of argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 178,
|
|
"kind": "error",
|
|
"line": 179,
|
|
"message": "'**' marker must be at end of argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 181,
|
|
"kind": "error",
|
|
"line": 182,
|
|
"message": "expected argument name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 184,
|
|
"kind": "error",
|
|
"line": 185,
|
|
"message": "variadic arguments must not have defaults",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 207,
|
|
"kind": "error",
|
|
"line": 208,
|
|
"message": "cannot use Self parameter 'a' in constructor whose result defines it to '(a + Int(1))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 209,
|
|
"kind": "error",
|
|
"line": 210,
|
|
"message": "cannot use Self parameter 'a' in constructor whose result defines it to 'Int(4)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 211,
|
|
"kind": "error",
|
|
"line": 212,
|
|
"message": "cannot use Self parameter 'a' in constructor whose result defines it to 'Int(7)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 234,
|
|
"kind": "error",
|
|
"line": 235,
|
|
"message": "invalid call to 'exampleByRefVariadic': value passed to mutable argument 'b' must be mutable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 236,
|
|
"kind": "error",
|
|
"line": 237,
|
|
"message": "invalid call to 'exampleByRefVariadic': l-value of type 'FloatDyn' cannot be converted to reference of type 'Int'",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 238,
|
|
"kind": "error",
|
|
"line": 239,
|
|
"message": "value passed to mutable argument 'b' must be mutable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 242,
|
|
"kind": "error",
|
|
"line": 243,
|
|
"message": "failed to infer parameter 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 244,
|
|
"kind": "error",
|
|
"line": 245,
|
|
"message": "failed to infer parameter 'T' of parent struct 'ParameterizedStruct'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 250,
|
|
"kind": "error",
|
|
"line": 251,
|
|
"message": "invalid call to 'test': failed to infer parameter 'j'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 254,
|
|
"kind": "error",
|
|
"line": 255,
|
|
"message": "cannot implicitly convert 'ParameterizedStruct[Int]' value to 'ParameterizedStruct[Bool]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 266,
|
|
"kind": "error",
|
|
"line": 267,
|
|
"message": "cannot convert function to non-function type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 269,
|
|
"kind": "error",
|
|
"line": 270,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 272,
|
|
"kind": "error",
|
|
"line": 273,
|
|
"message": "pack argument type list must reference a variadic list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 276,
|
|
"kind": "error",
|
|
"line": 277,
|
|
"message": "parameters must not be variadic packs",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 279,
|
|
"kind": "error",
|
|
"line": 281,
|
|
"message": "variadic unpacking with '*' requires a variadic argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 283,
|
|
"kind": "error",
|
|
"line": 284,
|
|
"message": "argument already has a convention specified",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 303,
|
|
"kind": "error",
|
|
"line": 304,
|
|
"message": "assigning 0 operands to an unresolvable variadic pack argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 307,
|
|
"kind": "error",
|
|
"line": 308,
|
|
"message": "expected 1 element in variadic pack, got 2 argument values",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 309,
|
|
"kind": "error",
|
|
"line": 310,
|
|
"message": "expected 2 elements in variadic pack, got 1 argument value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 311,
|
|
"kind": "error",
|
|
"line": 312,
|
|
"message": "invalid call to 'examplePack': value passed to 'args' cannot be converted from '__mlir_type.`!kgen.scalar<index>`' to 'FloatDyn'",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 313,
|
|
"kind": "error",
|
|
"line": 314,
|
|
"message": "invalid call to 'examplePack': could not infer type of parameter pack 'args' given value with unresolved type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 315,
|
|
"kind": "error",
|
|
"line": 316,
|
|
"message": "invalid call to 'first_and_rest': failed to infer parameter 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 319,
|
|
"kind": "error",
|
|
"line": 322,
|
|
"message": "'self' argument must have type 'TestPackErrorMessage[Ts]', but actually has type 'VariadicPack[False, Ts]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 320,
|
|
"kind": "error",
|
|
"line": 322,
|
|
"message": "__init__ method must return Self type with 'out' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 327,
|
|
"kind": "error",
|
|
"line": 329,
|
|
"message": "'@always_inline(\"builtin\")' does not support this argument convention",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 331,
|
|
"kind": "error",
|
|
"line": 333,
|
|
"message": "'@always_inline(\"builtin\")' does not support this argument convention",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 335,
|
|
"kind": "error",
|
|
"line": 337,
|
|
"message": "'@always_inline(\"builtin\")' does not support this argument convention",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 341,
|
|
"kind": "error",
|
|
"line": 342,
|
|
"message": "'@always_inline(\"builtin\")' can only handle single-result if",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 345,
|
|
"kind": "error",
|
|
"line": 346,
|
|
"message": "'where' clauses must be used with parameters and cannot be used with arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 371,
|
|
"kind": "error",
|
|
"line": 373,
|
|
"message": "invalid call to 'need_foldable_predicate': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 403,
|
|
"kind": "error",
|
|
"line": 404,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 405,
|
|
"kind": "error",
|
|
"line": 406,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 407,
|
|
"kind": "error",
|
|
"line": 408,
|
|
"message": "violated constraints",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 410,
|
|
"kind": "error",
|
|
"line": 411,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 412,
|
|
"kind": "error",
|
|
"line": 414,
|
|
"message": "invalid call to 'unprovable_constraints': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 416,
|
|
"kind": "error",
|
|
"line": 417,
|
|
"message": "invalid call to 'failing_constraint_with_depth': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 426,
|
|
"kind": "error",
|
|
"line": 427,
|
|
"message": "invalid call to 'unprovable_param_constraints': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 429,
|
|
"kind": "error",
|
|
"line": 431,
|
|
"message": "'where' clauses inside parameter lists are no longer supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 437,
|
|
"kind": "error",
|
|
"line": 439,
|
|
"message": "'where' clauses inside parameter lists are no longer supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 451,
|
|
"kind": "error",
|
|
"line": 450,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 454,
|
|
"kind": "error",
|
|
"line": 455,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 466,
|
|
"kind": "error",
|
|
"line": 467,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 468,
|
|
"kind": "error",
|
|
"line": 469,
|
|
"message": "invalid bindings for 'constraint_fn': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 480,
|
|
"kind": "error",
|
|
"line": 481,
|
|
"message": "invalid call to 'violated_default_constraint': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 498,
|
|
"kind": "error",
|
|
"line": 499,
|
|
"message": "redefinition of function 'fn_redecl' with identical signature",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 503,
|
|
"kind": "error",
|
|
"line": 504,
|
|
"message": "redefinition of function 'fn_redecl2', cannot overload on return type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 533,
|
|
"kind": "error",
|
|
"line": 533,
|
|
"message": "invalid redefinition of 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 538,
|
|
"kind": "error",
|
|
"line": 539,
|
|
"message": "cannot form a reference to overloaded declaration",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 541,
|
|
"kind": "error",
|
|
"line": 542,
|
|
"message": "no matching function in call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 543,
|
|
"kind": "error",
|
|
"line": 544,
|
|
"message": "no matching function in call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 554,
|
|
"kind": "error",
|
|
"line": 555,
|
|
"message": "redefinition of function '__getitem__', cannot overload on return type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 569,
|
|
"kind": "error",
|
|
"line": 570,
|
|
"message": "invalid call to 'bar': missing required argument: 'f'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 576,
|
|
"kind": "error",
|
|
"line": 577,
|
|
"message": "invalid call to 'takesAtLeastOneInt': missing required argument: 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 585,
|
|
"kind": "error",
|
|
"line": 586,
|
|
"message": "invalid call to 'too_few_pos_only': missing required argument: 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 594,
|
|
"kind": "error",
|
|
"line": 595,
|
|
"message": "invalid call to 'missing_args': missing required argument: 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 613,
|
|
"kind": "error",
|
|
"line": 614,
|
|
"message": "ambiguous call to 'ambiguousConversions', each candidate requires 1 implicit conversion, disambiguate with an explicit cast",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 615,
|
|
"kind": "error",
|
|
"line": 616,
|
|
"message": "no matching function in call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 622,
|
|
"kind": "error",
|
|
"line": 623,
|
|
"message": "invalid indirect call: value passed to 'a' cannot be converted from 'ConvertibleFromInt' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 635,
|
|
"kind": "error",
|
|
"line": 636,
|
|
"message": "invalid call to 'takes_same_arg_types': missing required argument: 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 638,
|
|
"kind": "error",
|
|
"line": 639,
|
|
"message": "invalid call to 'takes_same_arg_types': value passed to 'a' cannot be converted from 'Int' to 'Parametric[x]', it depends on an unresolved parameter 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 641,
|
|
"kind": "error",
|
|
"line": 642,
|
|
"message": "invalid indirect call: missing required argument: 'd'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 645,
|
|
"kind": "error",
|
|
"line": 646,
|
|
"message": "invalid indirect call: value passed to 'c' cannot be converted from 'Int' to 'Parametric[func]', it depends on an unresolved parameter 'func'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 657,
|
|
"kind": "error",
|
|
"line": 658,
|
|
"message": "cannot construct 'InitOverloaded' with itself, you can remove the constructor call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 660,
|
|
"kind": "error",
|
|
"line": 661,
|
|
"message": "no matching function in initialization",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 666,
|
|
"kind": "error",
|
|
"line": 667,
|
|
"message": "no matching function in initialization",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 670,
|
|
"kind": "error",
|
|
"line": 671,
|
|
"message": "cannot emit initializer list without a contextual type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 679,
|
|
"kind": "error",
|
|
"line": 681,
|
|
"message": "attempt to resolve a recursive reference to declaration 'Rec'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 687,
|
|
"kind": "error",
|
|
"line": 688,
|
|
"message": "'Self' type is not available in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 691,
|
|
"kind": "error",
|
|
"line": 693,
|
|
"message": "attempt to resolve a recursive reference to declaration 'Rec1'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 703,
|
|
"kind": "error",
|
|
"line": 704,
|
|
"message": "'def' statement must be on its own line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 707,
|
|
"kind": "error",
|
|
"line": 708,
|
|
"message": "'return' must be inside a function; move this into a function body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 711,
|
|
"kind": "error",
|
|
"line": 711,
|
|
"message": "invalid redefinition of 'ReDef'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 721,
|
|
"kind": "error",
|
|
"line": 721,
|
|
"message": "invalid redefinition of 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 724,
|
|
"kind": "error",
|
|
"line": 725,
|
|
"message": "'__new__' is not supported on structs",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 728,
|
|
"kind": "error",
|
|
"line": 729,
|
|
"message": "'__add__' requires 2 operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 738,
|
|
"kind": "error",
|
|
"line": 740,
|
|
"message": "'__iadd__' result type must be elided (or None)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 739,
|
|
"kind": "error",
|
|
"line": 740,
|
|
"message": "redefinition of function '__iadd__', cannot overload on return type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 744,
|
|
"kind": "error",
|
|
"line": 744,
|
|
"message": "'SpecialFunctions' does not implement the '__mul__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 746,
|
|
"kind": "error",
|
|
"line": 747,
|
|
"message": "destructor must not declare 'raises'; remove the 'raises' keyword",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 752,
|
|
"kind": "error",
|
|
"line": 753,
|
|
"message": "expected ')' in argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 755,
|
|
"kind": "error",
|
|
"line": 756,
|
|
"message": "expected ')' in argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 758,
|
|
"kind": "error",
|
|
"line": 759,
|
|
"message": "expected ')' in argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 763,
|
|
"kind": "error",
|
|
"line": 766,
|
|
"message": "__init__ method must return Self type with 'out' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 764,
|
|
"kind": "error",
|
|
"line": 766,
|
|
"message": "'self' argument must have type 'WrongType', but actually has type 'None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 768,
|
|
"kind": "error",
|
|
"line": 769,
|
|
"message": "'self' argument must have type 'WrongType', but actually has type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 774,
|
|
"kind": "error",
|
|
"line": 776,
|
|
"message": "redefinition of function '__init__', cannot overload on return type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 775,
|
|
"kind": "error",
|
|
"line": 776,
|
|
"message": "'RegisterPassable' types must not declare explicit move constructors; values of these types have no identity, and the compiler can freely move them between registers",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 780,
|
|
"kind": "error",
|
|
"line": 782,
|
|
"message": "'self' argument must have type 'WrongSelfType[a]', but actually has type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 788,
|
|
"kind": "error",
|
|
"line": 789,
|
|
"message": "'__add__' requires 2 operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 795,
|
|
"kind": "error",
|
|
"line": 796,
|
|
"message": "'__pow__' requires at least 2 operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 798,
|
|
"kind": "error",
|
|
"line": 799,
|
|
"message": "'__pow__' requires at most 3 operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 806,
|
|
"kind": "error",
|
|
"line": 807,
|
|
"message": "cannot implicitly convert '__mlir_type.`!kgen.simd<size, FloatDyn>`' value to 'BadInit[size]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 810,
|
|
"kind": "error",
|
|
"line": 811,
|
|
"message": "bare expressions must not appear within structs; use 'var' for a field or move this into a method body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 814,
|
|
"kind": "error",
|
|
"line": 815,
|
|
"message": "bare expressions must not appear within traits; use 'comptime' for an associated type or move this into a method body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 821,
|
|
"kind": "error",
|
|
"line": 822,
|
|
"message": "bare expressions must not appear within extensions; move this into a method body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 828,
|
|
"kind": "error",
|
|
"line": 829,
|
|
"message": "all members of 'RegisterPassable' struct must themselves be 'RegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 831,
|
|
"kind": "error",
|
|
"line": 832,
|
|
"message": "cannot synthesize move constructor because field 'y' has non-movable and non-implicitly-copyable type 'InMemStruct'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 842,
|
|
"kind": "error",
|
|
"line": 843,
|
|
"message": "'RegisterPassable' types must not declare explicit move constructors; values of these types have no identity, and the compiler can freely move them between registers",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 844,
|
|
"kind": "error",
|
|
"line": 846,
|
|
"message": "redefinition of function '__init__', cannot overload on return type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 845,
|
|
"kind": "error",
|
|
"line": 846,
|
|
"message": "trivial types must not declare explicit copy constructors; they are trivially copyable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 847,
|
|
"kind": "error",
|
|
"line": 849,
|
|
"message": "trivial types must not declare '__deinit__' methods; they are trivially destroyable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 851,
|
|
"kind": "error",
|
|
"line": 851,
|
|
"message": "body must not be empty; use 'pass' or check that the lines below are indented",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 854,
|
|
"kind": "error",
|
|
"line": 854,
|
|
"message": "'self' argument must be passed as 'deinit'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 857,
|
|
"kind": "error",
|
|
"line": 858,
|
|
"message": "'deinit' must only be applied to arguments of Self type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 859,
|
|
"kind": "error",
|
|
"line": 860,
|
|
"message": "'self' argument must not be variadic; remove '*' before 'self'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 861,
|
|
"kind": "error",
|
|
"line": 862,
|
|
"message": "'self' argument must not be variadic; remove '*' before 'self'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 864,
|
|
"kind": "error",
|
|
"line": 865,
|
|
"message": "'deinit' convention is only valid on struct method arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 875,
|
|
"kind": "error",
|
|
"line": 876,
|
|
"message": "'self' argument must be passed as 'deinit'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 887,
|
|
"kind": "error",
|
|
"line": 888,
|
|
"message": "function types do not support 'deinit'; replace with 'var'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 904,
|
|
"kind": "error",
|
|
"line": 905,
|
|
"message": "'move' argument must be passed as 'deinit'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 917,
|
|
"kind": "error",
|
|
"line": 920,
|
|
"message": "cannot synthesize fieldwise init because field 'x' has non-copyable and non-movable type 'InMemStruct'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 918,
|
|
"kind": "error",
|
|
"line": 920,
|
|
"message": "cannot synthesize move constructor because field 'x' has non-movable and non-implicitly-copyable type 'InMemStruct'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 919,
|
|
"kind": "error",
|
|
"line": 920,
|
|
"message": "cannot synthesize implicit copy constructor because field 'x' has non-implicitly-copyable type 'InMemStruct'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 927,
|
|
"kind": "error",
|
|
"line": 927,
|
|
"message": "use of unknown declaration 'unknown'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 931,
|
|
"kind": "error",
|
|
"line": 931,
|
|
"message": "struct inside a function not supported here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 941,
|
|
"kind": "error",
|
|
"line": 941,
|
|
"message": "struct inside a function not supported here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 950,
|
|
"kind": "error",
|
|
"line": 951,
|
|
"message": "functions must not declare both an 'out' argument and a return type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 966,
|
|
"kind": "error",
|
|
"line": 966,
|
|
"message": "all members of 'RegisterPassable' struct must themselves be 'RegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 967,
|
|
"kind": "error",
|
|
"line": 970,
|
|
"message": "cannot synthesize move constructor because field '_inner' has non-movable and non-implicitly-copyable type 'NotRegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 968,
|
|
"kind": "error",
|
|
"line": 970,
|
|
"message": "cannot synthesize copy constructor because field '_inner' has non-copyable type 'NotRegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 983,
|
|
"kind": "error",
|
|
"line": 984,
|
|
"message": "cannot synthesize implicit copy constructor because field 'begin' has non-implicitly-copyable type 'StructWithoutBody'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 989,
|
|
"kind": "error",
|
|
"line": 990,
|
|
"message": "cannot synthesize copy constructor because field 'begin' has non-copyable type 'StructWithoutBody'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 998,
|
|
"kind": "error",
|
|
"line": 999,
|
|
"message": "cannot synthesize implicit copy constructor because field 'begin' has non-implicitly-copyable type 'ExplicitlyCopyableStructWithoutBody'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1007,
|
|
"kind": "error",
|
|
"line": 1008,
|
|
"message": "cannot synthesize implicit copy constructor because field 'f' has non-implicitly-copyable type 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1016,
|
|
"kind": "error",
|
|
"line": 1017,
|
|
"message": "invalid initialization: return type 'StructWithSpecificInit[Int(4)]' parameter 'X' value 'Int(4)' doesn't match expected value 'Int(1)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1028,
|
|
"kind": "error",
|
|
"line": 1029,
|
|
"message": "use of unknown declaration 'UnknownTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1034,
|
|
"kind": "error",
|
|
"line": 1034,
|
|
"message": "traits do not support 'var' fields; use 'comptime' to declare associated types",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1036,
|
|
"kind": "error",
|
|
"line": 1036,
|
|
"message": "body must not be empty; use 'pass' or check that the lines below are indented",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1038,
|
|
"kind": "error",
|
|
"line": 1038,
|
|
"message": "nested trait not supported here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1043,
|
|
"kind": "error",
|
|
"line": 1043,
|
|
"message": "nested struct in a trait not supported here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1046,
|
|
"kind": "error",
|
|
"line": 1046,
|
|
"message": "trait declarations do not support parameters; remove the parameter list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1059,
|
|
"kind": "error",
|
|
"line": 1059,
|
|
"message": "struct fields do not support trait types; 'Shape' is a trait, use a concrete type or compile-time generic",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1063,
|
|
"kind": "error",
|
|
"line": 1066,
|
|
"message": "struct fields cannot expose AnyOrigin in their type; foo has type 'Pointer[Int, MutAnyOrigin]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1102,
|
|
"kind": "error",
|
|
"line": 1102,
|
|
"message": "'CFMStructFail' does not implement all requirements for 'CFMTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1114,
|
|
"kind": "error",
|
|
"line": 1114,
|
|
"message": "invalid call to 'trait_fn': 'trait_fn' parameter 'T' has 'CFMTrait' type, but value has type 'AnyStruct[NoTraits]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1117,
|
|
"kind": "error",
|
|
"line": 1117,
|
|
"message": "value of type 'T' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1134,
|
|
"kind": "error",
|
|
"line": 1135,
|
|
"message": "'MissingInheriteddef' does not implement all requirements for 'GrandFather'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1150,
|
|
"kind": "error",
|
|
"line": 1151,
|
|
"message": "'UseTraitWithIntParamOnMethodReallyLongName' does not implement all requirements for 'TraitWithIntParamOnMethodReallyLongName'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1161,
|
|
"kind": "error",
|
|
"line": 1161,
|
|
"message": "classes are not supported yet",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1167,
|
|
"kind": "error",
|
|
"line": 1167,
|
|
"message": "cannot define a struct here with name 'DTypePointer'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1174,
|
|
"kind": "error",
|
|
"line": 1175,
|
|
"message": "copy constructor must not declare 'raises'; remove the 'raises' keyword",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1179,
|
|
"kind": "error",
|
|
"line": 1180,
|
|
"message": "copy constructor must not declare 'raises'; remove the 'raises' keyword",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1191,
|
|
"kind": "error",
|
|
"line": 1191,
|
|
"message": "all members of 'RegisterPassable' struct must themselves be 'RegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1192,
|
|
"kind": "error",
|
|
"line": 1193,
|
|
"message": "cannot synthesize move constructor because field 'inner' has non-movable and non-implicitly-copyable type 'Inner'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1199,
|
|
"kind": "error",
|
|
"line": 1202,
|
|
"message": "cannot synthesize fieldwise init because field 'value' has non-copyable and non-movable type 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1200,
|
|
"kind": "error",
|
|
"line": 1202,
|
|
"message": "cannot synthesize move constructor because field 'value' has non-movable and non-implicitly-copyable type 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1201,
|
|
"kind": "error",
|
|
"line": 1202,
|
|
"message": "cannot synthesize implicit copy constructor because field 'value' has non-implicitly-copyable type 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1210,
|
|
"kind": "error",
|
|
"line": 1210,
|
|
"message": "invalid redefinition of 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1219,
|
|
"kind": "error",
|
|
"line": 1219,
|
|
"message": "invalid redefinition of 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1221,
|
|
"kind": "error",
|
|
"line": 1221,
|
|
"message": "invalid redefinition of 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1239,
|
|
"kind": "error",
|
|
"line": 1240,
|
|
"message": "cannot implicitly convert 'HasBoolParam[True]' value to 'HasBoolParam[False]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1255,
|
|
"kind": "error",
|
|
"line": 1255,
|
|
"message": "cannot implicitly convert 'Int' value to 'Foo'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1257,
|
|
"kind": "error",
|
|
"line": 1257,
|
|
"message": "cannot implicitly convert 'FloatLiteral[1.2]' value to 'Foo'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1263,
|
|
"kind": "error",
|
|
"line": 1263,
|
|
"message": "cannot implicitly convert 'Int' value to 'Foo'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1267,
|
|
"kind": "error",
|
|
"line": 1267,
|
|
"message": "cannot implicitly convert 'IntLiteral[42]' value to 'Foo'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1271,
|
|
"kind": "error",
|
|
"line": 1271,
|
|
"message": "cannot implicitly convert 'IntLiteral[42]' value to 'Foo'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1275,
|
|
"kind": "error",
|
|
"line": 1275,
|
|
"message": "cannot implicitly convert 'IntLiteral[42]' value to 'Foo'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1280,
|
|
"kind": "error",
|
|
"line": 1280,
|
|
"message": "invalid call to 'take_foo': value passed to 'x' cannot be converted from 'IntLiteral[24]' to 'Foo'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1292,
|
|
"kind": "error",
|
|
"line": 1293,
|
|
"message": "expressions must not appear at file scope; move this into a function body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1303,
|
|
"kind": "error",
|
|
"line": 1304,
|
|
"message": "expressions must not appear at file scope; move this into a function body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1306,
|
|
"kind": "error",
|
|
"line": 1307,
|
|
"message": "global variables are not supported; move this into a function body or use 'comptime' to declare a constant",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1311,
|
|
"kind": "error",
|
|
"line": 1311,
|
|
"message": "invalid redefinition of 'param'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1320,
|
|
"kind": "error",
|
|
"line": 1320,
|
|
"message": "invalid redefinition of 'p'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1324,
|
|
"kind": "error",
|
|
"line": 1324,
|
|
"message": "'__deinit__' must be a method, not a global function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1332,
|
|
"kind": "error",
|
|
"line": 1333,
|
|
"message": "cannot implicitly convert 'Error' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1336,
|
|
"kind": "error",
|
|
"line": 1337,
|
|
"message": "cannot call function that may raise 'Int' in context that supports an error type of 'Error'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1339,
|
|
"kind": "error",
|
|
"line": 1340,
|
|
"message": "cannot implicitly convert 'FloatLiteral[4]' value to 'Error'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1345,
|
|
"kind": "error",
|
|
"line": 1346,
|
|
"message": "cannot implicitly convert 'Error' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1349,
|
|
"kind": "error",
|
|
"line": 1350,
|
|
"message": "cannot implicitly convert 'Int' value to 'Error'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1355,
|
|
"kind": "error",
|
|
"line": 1356,
|
|
"message": "cannot implicitly convert 'Int' value to 'String'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1359,
|
|
"kind": "error",
|
|
"line": 1360,
|
|
"message": "@export can not be applied on parametric functions",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1364,
|
|
"kind": "error",
|
|
"line": 1365,
|
|
"message": "@export can not be applied on parametric functions",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1375,
|
|
"kind": "error",
|
|
"line": 1375,
|
|
"message": "'p' refers to an unbound parameter in 'MyParam[_]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1381,
|
|
"kind": "error",
|
|
"line": 1382,
|
|
"message": "cannot construct a value with parametric type: 'Origin[mut=_]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1392,
|
|
"kind": "error",
|
|
"line": 1393,
|
|
"message": "redefinition of function 'overload_on_arg_conv', cannot overload on argument conventions",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1396,
|
|
"kind": "error",
|
|
"line": 1397,
|
|
"message": "'List[_]' is not concrete, use '[]' to bind missing parameters",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/decls_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/decls_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/decls_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s -I=%S/inputs"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "unexpected tokens after decorator, each need to be on their own line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "cannot use a dynamic value in decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "use of unknown declaration 'invalid_dec'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "'var' statement in function body does not support decorators; remove the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 40,
|
|
"message": "'comptime' statement in function body does not support decorators; remove the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 43,
|
|
"message": "'while' statement does not support decorators; remove the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "error",
|
|
"line": 47,
|
|
"message": "statement does not support decorators; remove the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 50,
|
|
"kind": "error",
|
|
"line": 51,
|
|
"message": "decorators must be on their own line; add a newline after the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "decorators must be on their own line; add a newline after the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 61,
|
|
"kind": "error",
|
|
"line": 62,
|
|
"message": "decorator must be followed by a definition on the next line; remove any blank lines between them",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 63,
|
|
"kind": "error",
|
|
"line": 64,
|
|
"message": "statement indentation must match the rest of the block; adjust to align",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "warning",
|
|
"line": 64,
|
|
"message": "'if' condition always evaluates to 'True'; 'else' branch is unreachable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 67,
|
|
"message": "invalid expression in decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 71,
|
|
"message": "invalid expression in decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 75,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "invalid expression in decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "error",
|
|
"line": 83,
|
|
"message": "'@always_inline' decorator takes 0 or 1 arguments, found 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "error",
|
|
"line": 87,
|
|
"message": "'@always_inline' operand must be \"nodebug\" or \"builtin\"",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 91,
|
|
"kind": "error",
|
|
"line": 91,
|
|
"message": "'@always_inline' operand must be \"nodebug\" or \"builtin\"",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 99,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "'@inline' decorator takes exactly 1 argument, found 0",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 103,
|
|
"kind": "error",
|
|
"line": 103,
|
|
"message": "'@inline' decorator takes exactly 1 argument, found 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 107,
|
|
"kind": "error",
|
|
"line": 107,
|
|
"message": "cannot implicitly convert 'IntLiteral[99]' value to 'InlineLevel'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 112,
|
|
"kind": "error",
|
|
"line": 112,
|
|
"message": "cannot implicitly convert 'IntLiteral[3]' value to 'InlineLevel'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 116,
|
|
"kind": "error",
|
|
"line": 116,
|
|
"message": "'@inline' argument must be an InlineLevel, not a string; use '.always', '.nodebug', '.never' or '.automatic'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 120,
|
|
"kind": "error",
|
|
"line": 120,
|
|
"message": "'@inline' argument must be positional",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 125,
|
|
"kind": "error",
|
|
"line": 125,
|
|
"message": "function has conflicting inline level from a previous '@inline' decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 130,
|
|
"kind": "error",
|
|
"line": 130,
|
|
"message": "function has conflicting inline level from a previous '@inline' decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 135,
|
|
"kind": "error",
|
|
"line": 135,
|
|
"message": "function has conflicting inline level from a previous '@inline' decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 144,
|
|
"kind": "error",
|
|
"line": 144,
|
|
"message": "only methods on structs may be declared static",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 148,
|
|
"kind": "error",
|
|
"line": 148,
|
|
"message": "'@staticmethod' cannot have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 151,
|
|
"kind": "error",
|
|
"line": 151,
|
|
"message": "'@staticmethod' cannot have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 159,
|
|
"kind": "error",
|
|
"line": 159,
|
|
"message": "'@no_inline' cannot have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 163,
|
|
"kind": "error",
|
|
"line": 163,
|
|
"message": "'@no_inline' cannot have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 173,
|
|
"kind": "error",
|
|
"line": 174,
|
|
"message": "'@implicit' may only be applied to '__init__' methods",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 177,
|
|
"kind": "error",
|
|
"line": 179,
|
|
"message": "'@implicit' initializers must accept a single positional argument value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 181,
|
|
"kind": "error",
|
|
"line": 183,
|
|
"message": "'@implicit' initializers must accept a single positional argument value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 185,
|
|
"kind": "error",
|
|
"line": 187,
|
|
"message": "'@implicit' initializers must accept a single positional argument value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "error",
|
|
"line": 190,
|
|
"message": "'@implicit' may only be applied to '__init__' methods",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 193,
|
|
"kind": "error",
|
|
"line": 194,
|
|
"message": "'@implicit' decorator takes 0 or 1 arguments, found 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 197,
|
|
"kind": "error",
|
|
"line": 198,
|
|
"message": "'@implicit' may only have a keyword argument 'deprecated' with literal boolean value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 201,
|
|
"kind": "error",
|
|
"line": 202,
|
|
"message": "'@implicit' may only have a keyword argument 'deprecated' with literal boolean value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 205,
|
|
"kind": "error",
|
|
"line": 206,
|
|
"message": "'@implicit' may only have a keyword argument 'deprecated' with literal boolean value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 210,
|
|
"kind": "note",
|
|
"line": 212,
|
|
"message": "implicit constructor for 'DeprecatedImplicitConversion' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 220,
|
|
"kind": "warning",
|
|
"line": 222,
|
|
"message": "deprecated implicit conversion from 'IntLiteral[1]' to 'DeprecatedImplicitConversion'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 221,
|
|
"kind": "note",
|
|
"line": 222,
|
|
"message": "call 'DeprecatedImplicitConversion(...)' explicitly",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 224,
|
|
"kind": "warning",
|
|
"line": 226,
|
|
"message": "deprecated implicit conversion from 'Int' to 'DeprecatedImplicitConversion'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 225,
|
|
"kind": "note",
|
|
"line": 226,
|
|
"message": "call 'DeprecatedImplicitConversion(...)' explicitly",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 232,
|
|
"kind": "error",
|
|
"line": 232,
|
|
"message": "'@extern' requires 1 argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 235,
|
|
"kind": "error",
|
|
"line": 235,
|
|
"message": "'@extern' requires 1 argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 238,
|
|
"kind": "error",
|
|
"line": 238,
|
|
"message": "'@extern' requires a string literal argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 241,
|
|
"kind": "error",
|
|
"line": 241,
|
|
"message": "'@extern' requires 1 argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 244,
|
|
"kind": "error",
|
|
"line": 246,
|
|
"message": "unexpected function body in extern function declaration, use `...`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 250,
|
|
"kind": "error",
|
|
"line": 251,
|
|
"message": "'@extern' cannot be applied to a method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 255,
|
|
"kind": "error",
|
|
"line": 256,
|
|
"message": "'@extern' requires an explicit 'abi()' effect on the function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 263,
|
|
"kind": "error",
|
|
"line": 263,
|
|
"message": "'@__llvm_metadata' requires operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 267,
|
|
"kind": "error",
|
|
"line": 267,
|
|
"message": "'@__llvm_metadata' requires operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 276,
|
|
"kind": "error",
|
|
"line": 276,
|
|
"message": "'@__llvm_arg_metadata' requires operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 280,
|
|
"kind": "error",
|
|
"line": 280,
|
|
"message": "'@__llvm_arg_metadata' requires operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 284,
|
|
"kind": "error",
|
|
"line": 285,
|
|
"message": "First argument of '@__llvm_arg_metadata' must be an argument name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 289,
|
|
"kind": "error",
|
|
"line": 290,
|
|
"message": "Function decorated by '@__llvm_arg_metadata' has no argument named 'c'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 299,
|
|
"kind": "error",
|
|
"line": 299,
|
|
"message": "'@__copy_capture' must have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 300,
|
|
"kind": "error",
|
|
"line": 300,
|
|
"message": "'@__parameter' cannot have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 304,
|
|
"kind": "error",
|
|
"line": 304,
|
|
"message": "'@__copy_capture' must have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 305,
|
|
"kind": "error",
|
|
"line": 305,
|
|
"message": "'@__parameter' cannot have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 309,
|
|
"kind": "error",
|
|
"line": 309,
|
|
"message": "'@__move_capture' must have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 314,
|
|
"kind": "error",
|
|
"line": 314,
|
|
"message": "'@__move_capture' must have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 323,
|
|
"kind": "error",
|
|
"line": 323,
|
|
"message": "use of unknown declaration 'invalid_dec'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 328,
|
|
"kind": "error",
|
|
"line": 329,
|
|
"message": "decorators must be on their own line; add a newline after the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 332,
|
|
"kind": "error",
|
|
"line": 332,
|
|
"message": "'FieldwiseInitExample' has an explicitly declared fieldwise initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 337,
|
|
"kind": "note",
|
|
"line": 338,
|
|
"message": "initializer declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 346,
|
|
"kind": "error",
|
|
"line": 346,
|
|
"message": "unrecognized body decorators",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "unexpected tokens after decorator, each need to be on their own line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "cannot use a dynamic value in decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "use of unknown declaration 'invalid_dec'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "'var' statement in function body does not support decorators; remove the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 40,
|
|
"message": "'comptime' statement in function body does not support decorators; remove the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 43,
|
|
"message": "'while' statement does not support decorators; remove the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "error",
|
|
"line": 47,
|
|
"message": "statement does not support decorators; remove the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 50,
|
|
"kind": "error",
|
|
"line": 51,
|
|
"message": "decorators must be on their own line; add a newline after the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "decorators must be on their own line; add a newline after the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 61,
|
|
"kind": "error",
|
|
"line": 62,
|
|
"message": "decorator must be followed by a definition on the next line; remove any blank lines between them",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 63,
|
|
"kind": "error",
|
|
"line": 64,
|
|
"message": "statement indentation must match the rest of the block; adjust to align",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 67,
|
|
"message": "invalid expression in decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 71,
|
|
"message": "invalid expression in decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 75,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "invalid expression in decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "error",
|
|
"line": 83,
|
|
"message": "'@always_inline' decorator takes 0 or 1 arguments, found 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "error",
|
|
"line": 87,
|
|
"message": "'@always_inline' operand must be \"nodebug\" or \"builtin\"",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 91,
|
|
"kind": "error",
|
|
"line": 91,
|
|
"message": "'@always_inline' operand must be \"nodebug\" or \"builtin\"",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 99,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "'@inline' decorator takes exactly 1 argument, found 0",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 103,
|
|
"kind": "error",
|
|
"line": 103,
|
|
"message": "'@inline' decorator takes exactly 1 argument, found 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 107,
|
|
"kind": "error",
|
|
"line": 107,
|
|
"message": "cannot implicitly convert 'IntLiteral[99]' value to 'InlineLevel'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 112,
|
|
"kind": "error",
|
|
"line": 112,
|
|
"message": "cannot implicitly convert 'IntLiteral[3]' value to 'InlineLevel'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 116,
|
|
"kind": "error",
|
|
"line": 116,
|
|
"message": "'@inline' argument must be an InlineLevel, not a string; use '.always', '.nodebug', '.never' or '.automatic'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 120,
|
|
"kind": "error",
|
|
"line": 120,
|
|
"message": "'@inline' argument must be positional",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 125,
|
|
"kind": "error",
|
|
"line": 125,
|
|
"message": "function has conflicting inline level from a previous '@inline' decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 130,
|
|
"kind": "error",
|
|
"line": 130,
|
|
"message": "function has conflicting inline level from a previous '@inline' decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 135,
|
|
"kind": "error",
|
|
"line": 135,
|
|
"message": "function has conflicting inline level from a previous '@inline' decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 144,
|
|
"kind": "error",
|
|
"line": 144,
|
|
"message": "only methods on structs may be declared static",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 148,
|
|
"kind": "error",
|
|
"line": 148,
|
|
"message": "'@staticmethod' cannot have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 151,
|
|
"kind": "error",
|
|
"line": 151,
|
|
"message": "'@staticmethod' cannot have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 159,
|
|
"kind": "error",
|
|
"line": 159,
|
|
"message": "'@no_inline' cannot have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 163,
|
|
"kind": "error",
|
|
"line": 163,
|
|
"message": "'@no_inline' cannot have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 173,
|
|
"kind": "error",
|
|
"line": 174,
|
|
"message": "'@implicit' may only be applied to '__init__' methods",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 177,
|
|
"kind": "error",
|
|
"line": 179,
|
|
"message": "'@implicit' initializers must accept a single positional argument value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 181,
|
|
"kind": "error",
|
|
"line": 183,
|
|
"message": "'@implicit' initializers must accept a single positional argument value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 185,
|
|
"kind": "error",
|
|
"line": 187,
|
|
"message": "'@implicit' initializers must accept a single positional argument value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "error",
|
|
"line": 190,
|
|
"message": "'@implicit' may only be applied to '__init__' methods",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 193,
|
|
"kind": "error",
|
|
"line": 194,
|
|
"message": "'@implicit' decorator takes 0 or 1 arguments, found 2",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 197,
|
|
"kind": "error",
|
|
"line": 198,
|
|
"message": "'@implicit' may only have a keyword argument 'deprecated' with literal boolean value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 201,
|
|
"kind": "error",
|
|
"line": 202,
|
|
"message": "'@implicit' may only have a keyword argument 'deprecated' with literal boolean value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 205,
|
|
"kind": "error",
|
|
"line": 206,
|
|
"message": "'@implicit' may only have a keyword argument 'deprecated' with literal boolean value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 232,
|
|
"kind": "error",
|
|
"line": 232,
|
|
"message": "'@extern' requires 1 argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 235,
|
|
"kind": "error",
|
|
"line": 235,
|
|
"message": "'@extern' requires 1 argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 238,
|
|
"kind": "error",
|
|
"line": 238,
|
|
"message": "'@extern' requires a string literal argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 241,
|
|
"kind": "error",
|
|
"line": 241,
|
|
"message": "'@extern' requires 1 argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 244,
|
|
"kind": "error",
|
|
"line": 246,
|
|
"message": "unexpected function body in extern function declaration, use `...`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 250,
|
|
"kind": "error",
|
|
"line": 251,
|
|
"message": "'@extern' cannot be applied to a method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 255,
|
|
"kind": "error",
|
|
"line": 256,
|
|
"message": "'@extern' requires an explicit 'abi()' effect on the function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 263,
|
|
"kind": "error",
|
|
"line": 263,
|
|
"message": "'@__llvm_metadata' requires operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 267,
|
|
"kind": "error",
|
|
"line": 267,
|
|
"message": "'@__llvm_metadata' requires operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 276,
|
|
"kind": "error",
|
|
"line": 276,
|
|
"message": "'@__llvm_arg_metadata' requires operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 280,
|
|
"kind": "error",
|
|
"line": 280,
|
|
"message": "'@__llvm_arg_metadata' requires operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 284,
|
|
"kind": "error",
|
|
"line": 285,
|
|
"message": "First argument of '@__llvm_arg_metadata' must be an argument name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 289,
|
|
"kind": "error",
|
|
"line": 290,
|
|
"message": "Function decorated by '@__llvm_arg_metadata' has no argument named 'c'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 299,
|
|
"kind": "error",
|
|
"line": 299,
|
|
"message": "'@__copy_capture' must have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 300,
|
|
"kind": "error",
|
|
"line": 300,
|
|
"message": "'@__parameter' cannot have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 304,
|
|
"kind": "error",
|
|
"line": 304,
|
|
"message": "'@__copy_capture' must have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 305,
|
|
"kind": "error",
|
|
"line": 305,
|
|
"message": "'@__parameter' cannot have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 309,
|
|
"kind": "error",
|
|
"line": 309,
|
|
"message": "'@__move_capture' must have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 314,
|
|
"kind": "error",
|
|
"line": 314,
|
|
"message": "'@__move_capture' must have arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 323,
|
|
"kind": "error",
|
|
"line": 323,
|
|
"message": "use of unknown declaration 'invalid_dec'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 328,
|
|
"kind": "error",
|
|
"line": 329,
|
|
"message": "decorators must be on their own line; add a newline after the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 332,
|
|
"kind": "error",
|
|
"line": 332,
|
|
"message": "'FieldwiseInitExample' has an explicitly declared fieldwise initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 346,
|
|
"kind": "error",
|
|
"line": 346,
|
|
"message": "unrecognized body decorators",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/decorators/decorators_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/decorators/decorators_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/decorators/decorators_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "note",
|
|
"line": 26,
|
|
"message": "'DeprecatedStruct' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "note",
|
|
"line": 32,
|
|
"message": "'deprecated_fn' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "note",
|
|
"line": 42,
|
|
"message": "'DeprecatedTrait' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "note",
|
|
"line": 54,
|
|
"message": "'deprecated_alias{{.*}}' declared here",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "note",
|
|
"line": 69,
|
|
"message": "'deprecated_method' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 81,
|
|
"kind": "warning",
|
|
"line": 82,
|
|
"message": "deprecated struct",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 92,
|
|
"kind": "warning",
|
|
"line": 93,
|
|
"message": "deprecated function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 110,
|
|
"kind": "warning",
|
|
"line": 111,
|
|
"message": "deprecated function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 124,
|
|
"kind": "warning",
|
|
"line": 125,
|
|
"message": "deprecated trait",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 140,
|
|
"kind": "warning",
|
|
"line": 141,
|
|
"message": "deprecated alias",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 155,
|
|
"kind": "warning",
|
|
"line": 156,
|
|
"message": "deprecated method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 169,
|
|
"kind": "warning",
|
|
"line": 170,
|
|
"message": "deprecated method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 182,
|
|
"kind": "note",
|
|
"line": 183,
|
|
"message": "'overloaded_fn' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 187,
|
|
"kind": "warning",
|
|
"line": 188,
|
|
"message": "deprecated struct",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 193,
|
|
"kind": "warning",
|
|
"line": 194,
|
|
"message": "deprecated overload",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 202,
|
|
"kind": "error",
|
|
"line": 203,
|
|
"message": "@deprecated requires a reason message",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 211,
|
|
"kind": "error",
|
|
"line": 212,
|
|
"message": "'reason' argument must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 217,
|
|
"kind": "error",
|
|
"line": 218,
|
|
"message": "'reason' argument must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 230,
|
|
"kind": "error",
|
|
"line": 231,
|
|
"message": "@deprecated and @stable cannot be used together",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 238,
|
|
"kind": "error",
|
|
"line": 239,
|
|
"message": "@deprecated and @stable cannot be used together",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 247,
|
|
"kind": "error",
|
|
"line": 248,
|
|
"message": "@deprecated and @stable cannot be used together",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 264,
|
|
"kind": "error",
|
|
"line": 265,
|
|
"message": "cannot reference unknown value 'some_top_level_func'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 278,
|
|
"kind": "warning",
|
|
"line": 279,
|
|
"message": "use of deprecated struct 'DeprecatedInAnotherModule'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 202,
|
|
"kind": "error",
|
|
"line": 203,
|
|
"message": "@deprecated requires a reason message",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 211,
|
|
"kind": "error",
|
|
"line": 212,
|
|
"message": "'reason' argument must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 217,
|
|
"kind": "error",
|
|
"line": 218,
|
|
"message": "'reason' argument must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 230,
|
|
"kind": "error",
|
|
"line": 231,
|
|
"message": "@deprecated and @stable cannot be used together",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 238,
|
|
"kind": "error",
|
|
"line": 239,
|
|
"message": "@deprecated and @stable cannot be used together",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 247,
|
|
"kind": "error",
|
|
"line": 248,
|
|
"message": "@deprecated and @stable cannot be used together",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 264,
|
|
"kind": "error",
|
|
"line": 265,
|
|
"message": "cannot reference unknown value 'some_top_level_func'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/decorators/deprecated/deprecated_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/decorators/deprecated/deprecated_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/decorators/deprecated/deprecated_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s -I=%S/inputs"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "note",
|
|
"line": 20,
|
|
"message": "'DeprecatedInAnotherModule' declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/decorators/deprecated/inputs/imported_module.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/decorators/deprecated/inputs/imported_module",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/decorators/deprecated/inputs/imported_module.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 18,
|
|
"message": "@__doc_inline is not supported on wildcard imports",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 23,
|
|
"message": "@__doc_inline is not supported on renamed imports ('import ... as ...')",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "'from' statement supports only the @stable and @__doc_inline decorators; remove the decorator",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 18,
|
|
"message": "@__doc_inline is not supported on wildcard imports",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 23,
|
|
"message": "@__doc_inline is not supported on renamed imports ('import ... as ...')",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "'from' statement supports only the @stable and @__doc_inline decorators; remove the decorator",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/decorators/doc_inline/errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/decorators/doc_inline/errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/decorators/doc_inline/errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s -I=%S/inputs"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "warning",
|
|
"line": 18,
|
|
"message": "@export requires an explicit 'abi()' effect on the function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "'abi(\"C\")' function may not be marked 'raises'; remove 'raises' or use 'abi(\"Mojo\")'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "@export requires a string specifying the name of the exported symbol",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "note",
|
|
"line": 36,
|
|
"message": "previous export here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "invalid re-export of my_foo",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "warning",
|
|
"line": 49,
|
|
"message": "ABI=\"C\" is deprecated; use abi(\"C\") instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "my+foo is not a valid C identifier",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "warning",
|
|
"line": 55,
|
|
"message": "ABI=\"C\" is deprecated; use abi(\"C\") instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 54,
|
|
"kind": "error",
|
|
"line": 55,
|
|
"message": "'abi(\"C\")' function may not be marked 'raises'; remove 'raises' or use 'abi(\"Mojo\")'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 59,
|
|
"kind": "note",
|
|
"line": 60,
|
|
"message": "previous export here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 65,
|
|
"kind": "error",
|
|
"line": 66,
|
|
"message": "invalid re-export of func_overloaded",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "'abi(\"C\")' function may not be marked 'raises'; remove 'raises' or use 'abi(\"Mojo\")'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "@export requires a string specifying the name of the exported symbol",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "invalid re-export of my_foo",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "my+foo is not a valid C identifier",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 54,
|
|
"kind": "error",
|
|
"line": 55,
|
|
"message": "'abi(\"C\")' function may not be marked 'raises'; remove 'raises' or use 'abi(\"Mojo\")'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 65,
|
|
"kind": "error",
|
|
"line": 66,
|
|
"message": "invalid re-export of func_overloaded",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/decorators/export/errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/decorators/export/errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/decorators/export/errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "note",
|
|
"line": 21,
|
|
"message": "'DeprecatedInAnotherModule' declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/decorators/inputs/imported_module.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/decorators/inputs/imported_module",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/decorators/inputs/imported_module.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "error",
|
|
"line": 18,
|
|
"message": "@__name must have at least 1 argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "@__name must have at most 1 name argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "function has conflicting linkage name from a previous @__name or @export decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "function has conflicting linkage name from a previous @__name or @export decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "warning",
|
|
"line": 45,
|
|
"message": "ABI=\"C\" is deprecated; use abi(\"C\") instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "function has conflicting linkage name from a previous @__name or @export decorator",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "error",
|
|
"line": 18,
|
|
"message": "@__name must have at least 1 argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "@__name must have at most 1 name argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "function has conflicting linkage name from a previous @__name or @export decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "function has conflicting linkage name from a previous @__name or @export decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "function has conflicting linkage name from a previous @__name or @export decorator",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/decorators/name/errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/decorators/name/errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/decorators/name/errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 22,
|
|
"kind": "error",
|
|
"line": 23,
|
|
"message": "@stable requires a keyword argument ('since' or 'recursive'), not a positional argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "'var' statement in function body does not support decorators; remove the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 73,
|
|
"message": "@stable(recursive=True) is not supported on wildcard imports",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 76,
|
|
"kind": "error",
|
|
"line": 77,
|
|
"message": "@stable on import requires 'recursive=True' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 81,
|
|
"kind": "error",
|
|
"line": 82,
|
|
"message": "'recursive' argument to @stable must be True",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 86,
|
|
"kind": "error",
|
|
"line": 87,
|
|
"message": "'recursive' argument to @stable must be True",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 22,
|
|
"kind": "error",
|
|
"line": 23,
|
|
"message": "@stable requires a keyword argument ('since' or 'recursive'), not a positional argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "'var' statement in function body does not support decorators; remove the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 73,
|
|
"message": "@stable(recursive=True) is not supported on wildcard imports",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 76,
|
|
"kind": "error",
|
|
"line": 77,
|
|
"message": "@stable on import requires 'recursive=True' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 81,
|
|
"kind": "error",
|
|
"line": 82,
|
|
"message": "'recursive' argument to @stable must be True",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 86,
|
|
"kind": "error",
|
|
"line": 87,
|
|
"message": "'recursive' argument to @stable must be True",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/decorators/stable/errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/decorators/stable/errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/decorators/stable/errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -mojo-search-paths=%S -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "error",
|
|
"line": 21,
|
|
"message": "@stable requires a keyword argument ('since' or 'recursive'), not a positional argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 28,
|
|
"message": "@stable only accepts keyword arguments 'since' or 'recursive'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 35,
|
|
"message": "'since' argument must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "'since' argument must be a valid version string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "'since' argument must be a valid version string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "error",
|
|
"line": 56,
|
|
"message": "'since' argument must be a valid version string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "@stable accepts only one argument, either 'since' or 'recursive'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "error",
|
|
"line": 21,
|
|
"message": "@stable requires a keyword argument ('since' or 'recursive'), not a positional argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 28,
|
|
"message": "@stable only accepts keyword arguments 'since' or 'recursive'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 35,
|
|
"message": "'since' argument must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "'since' argument must be a valid version string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "'since' argument must be a valid version string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "error",
|
|
"line": 56,
|
|
"message": "'since' argument must be a valid version string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "@stable accepts only one argument, either 'since' or 'recursive'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/decorators/stable/errors_since.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/decorators/stable/errors_since",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/decorators/stable/errors_since.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 225,
|
|
"kind": "note",
|
|
"line": 226,
|
|
"message": "trait alias 'Value{{.*}}' in 'TraitWithStableAlias' is marked @stable",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 234,
|
|
"kind": "warning",
|
|
"line": 235,
|
|
"message": "stable struct 'StableStructWithUnstableAliasImpl' implements stable trait alias 'Value{{.*}}' with unstable implementation",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 264,
|
|
"kind": "warning",
|
|
"line": 265,
|
|
"message": "@stable member cannot be declared in an unstable struct",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 273,
|
|
"kind": "warning",
|
|
"line": 274,
|
|
"message": "@stable member cannot be declared in an unstable trait",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/decorators/stable/test_std_mock/__init__.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/decorators/stable/test_std_mock/__init__",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/decorators/stable/test_std_mock/__init__.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "warning",
|
|
"line": 31,
|
|
"message": "use of unstable function '__get_current_function_name'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/decorators/stable/warn_magic_fn.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/decorators/stable/warn_magic_fn",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/decorators/stable/warn_magic_fn.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -warn-on-unstable-apis -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "note",
|
|
"line": 21,
|
|
"message": "'unavailable_in_another_module' declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/decorators/unavailable/inputs/imported_module.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/decorators/unavailable/inputs/imported_module",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/decorators/unavailable/inputs/imported_module.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "note",
|
|
"line": 63,
|
|
"message": "in 'rejects_pass_body', declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "unexpected function body in @unavailable function declaration, use '...'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 69,
|
|
"kind": "note",
|
|
"line": 70,
|
|
"message": "in 'rejects_return_body', declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "unexpected function body in @unavailable function declaration, use '...'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "unexpected function body in @unavailable function declaration, use '...'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "unexpected function body in @unavailable function declaration, use '...'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/decorators/unavailable/unavailable_body.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/decorators/unavailable/unavailable_body",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/decorators/unavailable/unavailable_body.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "note",
|
|
"line": 26,
|
|
"message": "'unavailable_fn' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "note",
|
|
"line": 40,
|
|
"message": "'unavailable_method' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "unavailable function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "unavailable function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "unavailable method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 102,
|
|
"kind": "error",
|
|
"line": 103,
|
|
"message": "unavailable method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 114,
|
|
"kind": "error",
|
|
"line": 115,
|
|
"message": "@unavailable can only be applied to functions and methods",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 120,
|
|
"kind": "error",
|
|
"line": 121,
|
|
"message": "@unavailable can only be applied to functions and methods",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 126,
|
|
"kind": "error",
|
|
"line": 127,
|
|
"message": "@unavailable can only be applied to functions and methods",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 136,
|
|
"kind": "error",
|
|
"line": 137,
|
|
"message": "@unavailable can only be applied to functions and methods",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 147,
|
|
"kind": "error",
|
|
"line": 148,
|
|
"message": "@unavailable requires a reason message",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 156,
|
|
"kind": "error",
|
|
"line": 157,
|
|
"message": "'reason' argument must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 164,
|
|
"kind": "note",
|
|
"line": 165,
|
|
"message": "'unavailable_with_reason_keyword' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 170,
|
|
"kind": "error",
|
|
"line": 171,
|
|
"message": "reason keyword works",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 175,
|
|
"kind": "error",
|
|
"line": 176,
|
|
"message": "'reason' argument must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 182,
|
|
"kind": "error",
|
|
"line": 183,
|
|
"message": "@unavailable accepts either a reason message or a replacement symbol (with 'use')",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "error",
|
|
"line": 190,
|
|
"message": "unavailable must specify either a message or a symbol (with the 'use' argument)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 197,
|
|
"kind": "error",
|
|
"line": 198,
|
|
"message": "'use' must reference a symbol",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 210,
|
|
"kind": "error",
|
|
"line": 211,
|
|
"message": "@unavailable and @deprecated cannot be used together",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 218,
|
|
"kind": "error",
|
|
"line": 219,
|
|
"message": "@unavailable and @deprecated cannot be used together",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 225,
|
|
"kind": "error",
|
|
"line": 226,
|
|
"message": "@unavailable and @stable cannot be used together",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 233,
|
|
"kind": "error",
|
|
"line": 234,
|
|
"message": "@unavailable and @stable cannot be used together",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 250,
|
|
"kind": "error",
|
|
"line": 251,
|
|
"message": "cannot reference unknown value 'some_top_level_func'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 265,
|
|
"kind": "error",
|
|
"line": 266,
|
|
"message": "use of unavailable function in another module",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 285,
|
|
"kind": "error",
|
|
"line": 286,
|
|
"message": "unavailable trait method 'foo'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 291,
|
|
"kind": "note",
|
|
"line": 292,
|
|
"message": "'foo' declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "unavailable function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "unavailable function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "unavailable method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 102,
|
|
"kind": "error",
|
|
"line": 103,
|
|
"message": "unavailable method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 114,
|
|
"kind": "error",
|
|
"line": 115,
|
|
"message": "@unavailable can only be applied to functions and methods",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 120,
|
|
"kind": "error",
|
|
"line": 121,
|
|
"message": "@unavailable can only be applied to functions and methods",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 126,
|
|
"kind": "error",
|
|
"line": 127,
|
|
"message": "@unavailable can only be applied to functions and methods",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 136,
|
|
"kind": "error",
|
|
"line": 137,
|
|
"message": "@unavailable can only be applied to functions and methods",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 147,
|
|
"kind": "error",
|
|
"line": 148,
|
|
"message": "@unavailable requires a reason message",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 156,
|
|
"kind": "error",
|
|
"line": 157,
|
|
"message": "'reason' argument must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 170,
|
|
"kind": "error",
|
|
"line": 171,
|
|
"message": "reason keyword works",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 175,
|
|
"kind": "error",
|
|
"line": 176,
|
|
"message": "'reason' argument must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 182,
|
|
"kind": "error",
|
|
"line": 183,
|
|
"message": "@unavailable accepts either a reason message or a replacement symbol (with 'use')",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "error",
|
|
"line": 190,
|
|
"message": "unavailable must specify either a message or a symbol (with the 'use' argument)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 197,
|
|
"kind": "error",
|
|
"line": 198,
|
|
"message": "'use' must reference a symbol",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 210,
|
|
"kind": "error",
|
|
"line": 211,
|
|
"message": "@unavailable and @deprecated cannot be used together",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 218,
|
|
"kind": "error",
|
|
"line": 219,
|
|
"message": "@unavailable and @deprecated cannot be used together",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 225,
|
|
"kind": "error",
|
|
"line": 226,
|
|
"message": "@unavailable and @stable cannot be used together",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 233,
|
|
"kind": "error",
|
|
"line": 234,
|
|
"message": "@unavailable and @stable cannot be used together",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 250,
|
|
"kind": "error",
|
|
"line": 251,
|
|
"message": "cannot reference unknown value 'some_top_level_func'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 265,
|
|
"kind": "error",
|
|
"line": 266,
|
|
"message": "use of unavailable function in another module",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 285,
|
|
"kind": "error",
|
|
"line": 286,
|
|
"message": "unavailable trait method 'foo'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/decorators/unavailable/unavailable_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/decorators/unavailable/unavailable_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/decorators/unavailable/unavailable_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s -I=%S/inputs"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "warning",
|
|
"line": 34,
|
|
"message": "'__del__' is deprecated; use '__deinit__'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/deinit_deprecation_warning.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/deinit_deprecation_warning",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/deinit_deprecation_warning.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s",
|
|
"%parse-mojo-isolated --diagnostic-format json --use-mlir-diagnostics=false %s 2>&1 | FileCheck %s --check-prefix=FIXIT"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "use of unknown declaration 'never_declared_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "implicit declaration of 'c' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "'__add__' requires 2 operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "'__sub__' must be a method, not a global function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "expected ':' in function definition",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "missing ':' at end of function signature",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "function effect 'thin' must only be used on function types",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "function effect 'thin' must only be used on function types",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "function effect 'thin' must only be used on function types",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "expected argument name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 63,
|
|
"kind": "error",
|
|
"line": 64,
|
|
"message": "expected parameter name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 66,
|
|
"kind": "error",
|
|
"line": 67,
|
|
"message": "use of unknown declaration 'InvalidType'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "cannot have two '*' markers in the same argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 75,
|
|
"kind": "error",
|
|
"line": 76,
|
|
"message": "cannot have two '/' markers in the same argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "error",
|
|
"line": 80,
|
|
"message": "cannot specify '/' marker after '*' marker",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "error",
|
|
"line": 84,
|
|
"message": "'/' marker cannot be used at the start of the argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "error",
|
|
"line": 88,
|
|
"message": "'*' marker is not allowed at end of argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 91,
|
|
"kind": "error",
|
|
"line": 92,
|
|
"message": "cannot have two '*' markers in the same argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 95,
|
|
"kind": "error",
|
|
"line": 96,
|
|
"message": "cannot have two '*' markers in the same argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 99,
|
|
"kind": "error",
|
|
"line": 101,
|
|
"message": "parametric functions must not be used as arguments; pass as a parameter instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 100,
|
|
"kind": "note",
|
|
"line": 101,
|
|
"message": "alternatively, bind its type parameters to create a concrete function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 109,
|
|
"kind": "error",
|
|
"line": 111,
|
|
"message": "parametric functions must not be used as arguments; pass as a parameter instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 110,
|
|
"kind": "note",
|
|
"line": 111,
|
|
"message": "alternatively, bind its type parameters to create a concrete function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 116,
|
|
"kind": "error",
|
|
"line": 118,
|
|
"message": "parametric functions must not be used as arguments; pass as a parameter instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 117,
|
|
"kind": "note",
|
|
"line": 118,
|
|
"message": "alternatively, bind its type parameters to create a concrete function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 121,
|
|
"kind": "error",
|
|
"line": 122,
|
|
"message": "non-owned variadic keyword arguments are not supported yet",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 125,
|
|
"kind": "error",
|
|
"line": 126,
|
|
"message": "variadic keyword arguments only support the 'var' convention; add 'var' before '**'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 130,
|
|
"kind": "error",
|
|
"line": 131,
|
|
"message": "variadic keyword arguments only support the 'var' convention; add 'var' before '**'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 137,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "variadic keyword arguments only support the 'var' convention; add 'var' before '**'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "'**' marker must be at end of argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 142,
|
|
"kind": "error",
|
|
"line": 143,
|
|
"message": "'//' marker cannot be used at the start of the parameter list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 146,
|
|
"kind": "error",
|
|
"line": 147,
|
|
"message": "cannot specify '//' marker after '*' marker in parameter list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 150,
|
|
"kind": "error",
|
|
"line": 151,
|
|
"message": "'//' is reserved for parameter lists; it marks the end of 'infer-only' parameter listings",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 163,
|
|
"kind": "error",
|
|
"line": 164,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 166,
|
|
"kind": "error",
|
|
"line": 167,
|
|
"message": "value of type 'IntLiteral[4]' doesn't have a memory origin in origin specifier",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 171,
|
|
"kind": "error",
|
|
"line": 172,
|
|
"message": "value of type 'Int' doesn't have a memory origin in return value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 176,
|
|
"kind": "error",
|
|
"line": 177,
|
|
"message": "cannot return reference with incompatible origin: 'origin_of(b)' vs 'origin_of(a)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 180,
|
|
"kind": "error",
|
|
"line": 181,
|
|
"message": "cannot implicitly convert 'Int' value to 'MemoryType'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 183,
|
|
"kind": "error",
|
|
"line": 184,
|
|
"message": "cannot return 'a's origin, because it might expand to a RegisterPassable type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 187,
|
|
"kind": "error",
|
|
"line": 188,
|
|
"message": "cannot return 'b's origin, because it has RegisterPassable type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 191,
|
|
"kind": "error",
|
|
"line": 192,
|
|
"message": "'ref' result requires an origin specifier",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 195,
|
|
"kind": "error",
|
|
"line": 196,
|
|
"message": "value of type 'Int' doesn't have a memory origin in origin specifier",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 199,
|
|
"kind": "error",
|
|
"line": 200,
|
|
"message": "cannot infer origin for a function result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 207,
|
|
"kind": "error",
|
|
"line": 208,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 211,
|
|
"kind": "error",
|
|
"line": 212,
|
|
"message": "cannot implicitly convert 'def(x: MemoryType) thin -> ref[*[0,0]] MemoryType' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 217,
|
|
"kind": "error",
|
|
"line": 218,
|
|
"message": "TODO: read-only non-trivial register-passable arguments are not yet supported in async functions",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 221,
|
|
"kind": "error",
|
|
"line": 222,
|
|
"message": "TODO: read-only non-trivial register-passable arguments are not yet supported in async functions",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 231,
|
|
"kind": "error",
|
|
"line": 232,
|
|
"message": "address space must be specified once; remove duplicate address space specifications",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 242,
|
|
"kind": "error",
|
|
"line": 242,
|
|
"message": "cannot implicitly convert 'String' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 246,
|
|
"kind": "error",
|
|
"line": 246,
|
|
"message": "cannot implicitly convert 'Int' value to 'String'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "use of unknown declaration 'never_declared_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "implicit declaration of 'c' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "'__add__' requires 2 operands",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "'__sub__' must be a method, not a global function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "expected ':' in function definition",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "missing ':' at end of function signature",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "function effect 'thin' must only be used on function types",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "function effect 'thin' must only be used on function types",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "function effect 'thin' must only be used on function types",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "expected argument name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 63,
|
|
"kind": "error",
|
|
"line": 64,
|
|
"message": "expected parameter name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 66,
|
|
"kind": "error",
|
|
"line": 67,
|
|
"message": "use of unknown declaration 'InvalidType'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "cannot have two '*' markers in the same argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 75,
|
|
"kind": "error",
|
|
"line": 76,
|
|
"message": "cannot have two '/' markers in the same argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "error",
|
|
"line": 80,
|
|
"message": "cannot specify '/' marker after '*' marker",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "error",
|
|
"line": 84,
|
|
"message": "'/' marker cannot be used at the start of the argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "error",
|
|
"line": 88,
|
|
"message": "'*' marker is not allowed at end of argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 91,
|
|
"kind": "error",
|
|
"line": 92,
|
|
"message": "cannot have two '*' markers in the same argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 95,
|
|
"kind": "error",
|
|
"line": 96,
|
|
"message": "cannot have two '*' markers in the same argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 99,
|
|
"kind": "error",
|
|
"line": 101,
|
|
"message": "parametric functions must not be used as arguments; pass as a parameter instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 109,
|
|
"kind": "error",
|
|
"line": 111,
|
|
"message": "parametric functions must not be used as arguments; pass as a parameter instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 116,
|
|
"kind": "error",
|
|
"line": 118,
|
|
"message": "parametric functions must not be used as arguments; pass as a parameter instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 121,
|
|
"kind": "error",
|
|
"line": 122,
|
|
"message": "non-owned variadic keyword arguments are not supported yet",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 125,
|
|
"kind": "error",
|
|
"line": 126,
|
|
"message": "variadic keyword arguments only support the 'var' convention; add 'var' before '**'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 130,
|
|
"kind": "error",
|
|
"line": 131,
|
|
"message": "variadic keyword arguments only support the 'var' convention; add 'var' before '**'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 137,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "variadic keyword arguments only support the 'var' convention; add 'var' before '**'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "'**' marker must be at end of argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 142,
|
|
"kind": "error",
|
|
"line": 143,
|
|
"message": "'//' marker cannot be used at the start of the parameter list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 146,
|
|
"kind": "error",
|
|
"line": 147,
|
|
"message": "cannot specify '//' marker after '*' marker in parameter list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 150,
|
|
"kind": "error",
|
|
"line": 151,
|
|
"message": "'//' is reserved for parameter lists; it marks the end of 'infer-only' parameter listings",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 163,
|
|
"kind": "error",
|
|
"line": 164,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 166,
|
|
"kind": "error",
|
|
"line": 167,
|
|
"message": "value of type 'IntLiteral[4]' doesn't have a memory origin in origin specifier",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 171,
|
|
"kind": "error",
|
|
"line": 172,
|
|
"message": "value of type 'Int' doesn't have a memory origin in return value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 176,
|
|
"kind": "error",
|
|
"line": 177,
|
|
"message": "cannot return reference with incompatible origin: 'origin_of(b)' vs 'origin_of(a)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 180,
|
|
"kind": "error",
|
|
"line": 181,
|
|
"message": "cannot implicitly convert 'Int' value to 'MemoryType'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 183,
|
|
"kind": "error",
|
|
"line": 184,
|
|
"message": "cannot return 'a's origin, because it might expand to a RegisterPassable type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 187,
|
|
"kind": "error",
|
|
"line": 188,
|
|
"message": "cannot return 'b's origin, because it has RegisterPassable type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 191,
|
|
"kind": "error",
|
|
"line": 192,
|
|
"message": "'ref' result requires an origin specifier",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 195,
|
|
"kind": "error",
|
|
"line": 196,
|
|
"message": "value of type 'Int' doesn't have a memory origin in origin specifier",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 199,
|
|
"kind": "error",
|
|
"line": 200,
|
|
"message": "cannot infer origin for a function result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 207,
|
|
"kind": "error",
|
|
"line": 208,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 211,
|
|
"kind": "error",
|
|
"line": 212,
|
|
"message": "cannot implicitly convert 'def(x: MemoryType) thin -> ref[*[0,0]] MemoryType' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 217,
|
|
"kind": "error",
|
|
"line": 218,
|
|
"message": "TODO: read-only non-trivial register-passable arguments are not yet supported in async functions",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 221,
|
|
"kind": "error",
|
|
"line": 222,
|
|
"message": "TODO: read-only non-trivial register-passable arguments are not yet supported in async functions",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 231,
|
|
"kind": "error",
|
|
"line": 232,
|
|
"message": "address space must be specified once; remove duplicate address space specifications",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 242,
|
|
"kind": "error",
|
|
"line": 242,
|
|
"message": "cannot implicitly convert 'String' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 246,
|
|
"kind": "error",
|
|
"line": 246,
|
|
"message": "cannot implicitly convert 'Int' value to 'String'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/fn_def_decls_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/fn_def_decls_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/fn_def_decls_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics -o /dev/null"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "note",
|
|
"line": 32,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 40,
|
|
"message": "parameter 'F' has 'def[T: AnyType](Int) thin -> None' type, but value has type 'def marked_impl[T: AnyType](x: Int) thin -> None where conforms_to(T, Marker)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "note",
|
|
"line": 56,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 61,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "parameter 'F' has 'PlainGenType' type, but value has type '__generator_type[U: AnyType] AnyType where conforms_to(U, Marker)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "note",
|
|
"line": 63,
|
|
"message": "'PlainGenType' is aka '__generator_type[U: AnyType] AnyType'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 40,
|
|
"message": "parameter 'F' has 'def[T: AnyType](Int) thin -> None' type, but value has type 'def marked_impl[T: AnyType](x: Int) thin -> None where conforms_to(T, Marker)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 61,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "parameter 'F' has 'PlainGenType' type, but value has type '__generator_type[U: AnyType] AnyType where conforms_to(U, Marker)'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/fn_type_where_conversion_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/fn_type_where_conversion_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/fn_type_where_conversion_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 18,
|
|
"kind": "note",
|
|
"line": 19,
|
|
"message": "constraint declared here evaluated to False, expected '(w > Int(0))': width must be positive",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "note",
|
|
"line": 28,
|
|
"message": "constraint declared here evaluated to False, expected '(Int(0) > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "invalid indirect call: violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "'where' clauses inside parameter lists are no longer supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "note",
|
|
"line": 45,
|
|
"message": "use a trailing 'where' clause after the result type of a 'thin' function type instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "'where' clauses must be used with parameters and cannot be used with arguments",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "invalid indirect call: violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "'where' clauses inside parameter lists are no longer supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "'where' clauses must be used with parameters and cannot be used with arguments",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/fn_type_where_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/fn_type_where_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/fn_type_where_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "'read' was removed; use 'imm'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "'read' was removed; use 'imm'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 65,
|
|
"kind": "error",
|
|
"line": 66,
|
|
"message": "expected argument name",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {
|
|
"older": [
|
|
"read-convention"
|
|
]
|
|
},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "'read' was removed; use 'imm'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "'read' was removed; use 'imm'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 65,
|
|
"kind": "error",
|
|
"line": 66,
|
|
"message": "expected argument name",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/imm_convention.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/imm_convention",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/imm_convention.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 47,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 59,
|
|
"kind": "error",
|
|
"line": 60,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 78,
|
|
"kind": "error",
|
|
"line": 79,
|
|
"message": "implicit declaration of 'a' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 81,
|
|
"kind": "error",
|
|
"line": 82,
|
|
"message": "use of unknown declaration 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "implicit declaration of 'b' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 96,
|
|
"kind": "error",
|
|
"line": 97,
|
|
"message": "implicit declaration of 'a' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 99,
|
|
"kind": "error",
|
|
"line": 100,
|
|
"message": "use of unknown declaration 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 101,
|
|
"kind": "error",
|
|
"line": 102,
|
|
"message": "use of unknown declaration 'c'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 126,
|
|
"kind": "error",
|
|
"line": 128,
|
|
"message": "implicit declaration of 'a' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 127,
|
|
"kind": "error",
|
|
"line": 128,
|
|
"message": "implicit declaration of 'b' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 141,
|
|
"kind": "error",
|
|
"line": 143,
|
|
"message": "implicit declaration of 'a' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 142,
|
|
"kind": "error",
|
|
"line": 143,
|
|
"message": "implicit declaration of 'c' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 145,
|
|
"kind": "error",
|
|
"line": 146,
|
|
"message": "use of unknown declaration 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 148,
|
|
"kind": "error",
|
|
"line": 149,
|
|
"message": "use of unknown declaration 'd'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 163,
|
|
"kind": "error",
|
|
"line": 164,
|
|
"message": "use of unknown declaration 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 209,
|
|
"kind": "error",
|
|
"line": 211,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 216,
|
|
"kind": "error",
|
|
"line": 218,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 223,
|
|
"kind": "error",
|
|
"line": 225,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 232,
|
|
"kind": "error",
|
|
"line": 234,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 253,
|
|
"kind": "error",
|
|
"line": 255,
|
|
"message": "implicit declaration of 'a' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 260,
|
|
"kind": "error",
|
|
"line": 262,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 266,
|
|
"kind": "error",
|
|
"line": 268,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 275,
|
|
"kind": "error",
|
|
"line": 277,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 285,
|
|
"kind": "error",
|
|
"line": 286,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 295,
|
|
"kind": "error",
|
|
"line": 296,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 306,
|
|
"kind": "error",
|
|
"line": 307,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 317,
|
|
"kind": "error",
|
|
"line": 318,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 326,
|
|
"kind": "error",
|
|
"line": 328,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 327,
|
|
"kind": "note",
|
|
"line": 328,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 329,
|
|
"kind": "error",
|
|
"line": 330,
|
|
"message": "invalid redefinition of 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 387,
|
|
"kind": "note",
|
|
"line": 388,
|
|
"message": "'f' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 391,
|
|
"kind": "error",
|
|
"line": 393,
|
|
"message": "implicit declaration of 'f' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 392,
|
|
"kind": "note",
|
|
"line": 393,
|
|
"message": "'f' is also a struct field; did you mean 'self.'?",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 47,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 59,
|
|
"kind": "error",
|
|
"line": 60,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 78,
|
|
"kind": "error",
|
|
"line": 79,
|
|
"message": "implicit declaration of 'a' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 81,
|
|
"kind": "error",
|
|
"line": 82,
|
|
"message": "use of unknown declaration 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "implicit declaration of 'b' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 96,
|
|
"kind": "error",
|
|
"line": 97,
|
|
"message": "implicit declaration of 'a' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 99,
|
|
"kind": "error",
|
|
"line": 100,
|
|
"message": "use of unknown declaration 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 101,
|
|
"kind": "error",
|
|
"line": 102,
|
|
"message": "use of unknown declaration 'c'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 126,
|
|
"kind": "error",
|
|
"line": 128,
|
|
"message": "implicit declaration of 'a' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 127,
|
|
"kind": "error",
|
|
"line": 128,
|
|
"message": "implicit declaration of 'b' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 141,
|
|
"kind": "error",
|
|
"line": 143,
|
|
"message": "implicit declaration of 'a' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 142,
|
|
"kind": "error",
|
|
"line": 143,
|
|
"message": "implicit declaration of 'c' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 145,
|
|
"kind": "error",
|
|
"line": 146,
|
|
"message": "use of unknown declaration 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 148,
|
|
"kind": "error",
|
|
"line": 149,
|
|
"message": "use of unknown declaration 'd'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 163,
|
|
"kind": "error",
|
|
"line": 164,
|
|
"message": "use of unknown declaration 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 209,
|
|
"kind": "error",
|
|
"line": 211,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 216,
|
|
"kind": "error",
|
|
"line": 218,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 223,
|
|
"kind": "error",
|
|
"line": 225,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 232,
|
|
"kind": "error",
|
|
"line": 234,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 253,
|
|
"kind": "error",
|
|
"line": 255,
|
|
"message": "implicit declaration of 'a' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 260,
|
|
"kind": "error",
|
|
"line": 262,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 266,
|
|
"kind": "error",
|
|
"line": 268,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 275,
|
|
"kind": "error",
|
|
"line": 277,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 285,
|
|
"kind": "error",
|
|
"line": 286,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 295,
|
|
"kind": "error",
|
|
"line": 296,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 306,
|
|
"kind": "error",
|
|
"line": 307,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 317,
|
|
"kind": "error",
|
|
"line": 318,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 326,
|
|
"kind": "error",
|
|
"line": 328,
|
|
"message": "implicit declaration of 'x' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 329,
|
|
"kind": "error",
|
|
"line": 330,
|
|
"message": "invalid redefinition of 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 391,
|
|
"kind": "error",
|
|
"line": 393,
|
|
"message": "implicit declaration of 'f' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/implicit_var_decl.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/implicit_var_decl",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/implicit_var_decl.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics -o /dev/null"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "note",
|
|
"line": 20,
|
|
"message": "'Foo' declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/inputs/comptime_a/__init__.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/inputs/comptime_a/__init__",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/inputs/comptime_a/__init__.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "note",
|
|
"line": 20,
|
|
"message": "'Foo' also declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/inputs/comptime_b/__init__.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/inputs/comptime_b/__init__",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/inputs/comptime_b/__init__.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 15,
|
|
"kind": "note",
|
|
"line": 17,
|
|
"message": "'Foo' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "note",
|
|
"line": 17,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/inputs/fn_a/__init__.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/inputs/fn_a/__init__",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/inputs/fn_a/__init__.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 15,
|
|
"kind": "note",
|
|
"line": 16,
|
|
"message": "'Foo' also declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/inputs/fn_b/__init__.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/inputs/fn_b/__init__",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/inputs/fn_b/__init__.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 15,
|
|
"kind": "note",
|
|
"line": 16,
|
|
"message": "'Foo' also declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/inputs/fn_c/__init__.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/inputs/fn_c/__init__",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/inputs/fn_c/__init__.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 15,
|
|
"kind": "note",
|
|
"line": 16,
|
|
"message": "'Foo' declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/inputs/fn_d/__init__.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/inputs/fn_d/__init__",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/inputs/fn_d/__init__.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "note",
|
|
"line": 21,
|
|
"message": "'DeprecatedInAnotherModule' declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/inputs/imported_module.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/inputs/imported_module",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/inputs/imported_module.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 14,
|
|
"kind": "note",
|
|
"line": 15,
|
|
"message": "'Foo' declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/inputs/mlirtype_a/__init__.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/inputs/mlirtype_a/__init__",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/inputs/mlirtype_a/__init__.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 14,
|
|
"kind": "note",
|
|
"line": 15,
|
|
"message": "'Foo' also declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/inputs/mlirtype_b/__init__.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/inputs/mlirtype_b/__init__",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/inputs/mlirtype_b/__init__.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 15,
|
|
"kind": "note",
|
|
"line": 16,
|
|
"message": "'Foo' declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/inputs/struct_a/__init__.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/inputs/struct_a/__init__",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/inputs/struct_a/__init__.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 15,
|
|
"kind": "note",
|
|
"line": 16,
|
|
"message": "'Foo' also declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/inputs/struct_b/__init__.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/inputs/struct_b/__init__",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/inputs/struct_b/__init__.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 15,
|
|
"kind": "note",
|
|
"line": 16,
|
|
"message": "'Foo' declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/inputs/struct_c/__init__.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/inputs/struct_c/__init__",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/inputs/struct_c/__init__.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 15,
|
|
"kind": "note",
|
|
"line": 16,
|
|
"message": "'Foo' also declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/inputs/struct_d/__init__.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/inputs/struct_d/__init__",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/inputs/struct_d/__init__.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 15,
|
|
"kind": "note",
|
|
"line": 16,
|
|
"message": "also referencing struct 'PlainStruct' declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/inputs/struct_package_for_conflict/plain_struct.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/inputs/struct_package_for_conflict/plain_struct",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/inputs/struct_package_for_conflict/plain_struct.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 17,
|
|
"message": "'_' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "error",
|
|
"line": 21,
|
|
"message": "'and' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "'as' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "'assert' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "'async' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "'await' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "'break' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "'case' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "'class' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "'comptime' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "'continue' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "'def' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "'del' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "'elif' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 72,
|
|
"kind": "error",
|
|
"line": 73,
|
|
"message": "'else' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 76,
|
|
"kind": "error",
|
|
"line": 77,
|
|
"message": "'except' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 80,
|
|
"kind": "error",
|
|
"line": 81,
|
|
"message": "'False' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 84,
|
|
"kind": "error",
|
|
"line": 85,
|
|
"message": "'finally' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "'for' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 92,
|
|
"kind": "error",
|
|
"line": 93,
|
|
"message": "'from' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 96,
|
|
"kind": "error",
|
|
"line": 97,
|
|
"message": "'global' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 100,
|
|
"kind": "error",
|
|
"line": 101,
|
|
"message": "'if' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 104,
|
|
"kind": "error",
|
|
"line": 105,
|
|
"message": "'import' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 108,
|
|
"kind": "error",
|
|
"line": 109,
|
|
"message": "'in' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 112,
|
|
"kind": "error",
|
|
"line": 113,
|
|
"message": "'is' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 116,
|
|
"kind": "error",
|
|
"line": 117,
|
|
"message": "'lambda' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 120,
|
|
"kind": "error",
|
|
"line": 121,
|
|
"message": "'match' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 124,
|
|
"kind": "error",
|
|
"line": 125,
|
|
"message": "'None' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 128,
|
|
"kind": "error",
|
|
"line": 129,
|
|
"message": "'nonlocal' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 132,
|
|
"kind": "error",
|
|
"line": 133,
|
|
"message": "'not' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 136,
|
|
"kind": "error",
|
|
"line": 137,
|
|
"message": "'or' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 140,
|
|
"kind": "error",
|
|
"line": 141,
|
|
"message": "'pass' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 144,
|
|
"kind": "error",
|
|
"line": 145,
|
|
"message": "'raise' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 148,
|
|
"kind": "error",
|
|
"line": 149,
|
|
"message": "'ref' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 152,
|
|
"kind": "error",
|
|
"line": 153,
|
|
"message": "'return' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 156,
|
|
"kind": "error",
|
|
"line": 157,
|
|
"message": "'Self' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 160,
|
|
"kind": "error",
|
|
"line": 161,
|
|
"message": "'struct' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 164,
|
|
"kind": "error",
|
|
"line": 165,
|
|
"message": "'trait' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 168,
|
|
"kind": "error",
|
|
"line": 169,
|
|
"message": "'__extension' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 172,
|
|
"kind": "error",
|
|
"line": 173,
|
|
"message": "'True' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 176,
|
|
"kind": "error",
|
|
"line": 177,
|
|
"message": "'try' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 180,
|
|
"kind": "error",
|
|
"line": 181,
|
|
"message": "'var' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 184,
|
|
"kind": "error",
|
|
"line": 185,
|
|
"message": "'while' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 188,
|
|
"kind": "error",
|
|
"line": 189,
|
|
"message": "'with' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 192,
|
|
"kind": "error",
|
|
"line": 193,
|
|
"message": "'yield' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 196,
|
|
"kind": "error",
|
|
"line": 197,
|
|
"message": "'__mlir_region' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 200,
|
|
"kind": "error",
|
|
"line": 201,
|
|
"message": "'__get_address_as_uninit_lvalue' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 204,
|
|
"kind": "error",
|
|
"line": 205,
|
|
"message": "'__get_mvalue_as_litref' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 208,
|
|
"kind": "error",
|
|
"line": 209,
|
|
"message": "'__get_litref_as_mvalue' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 212,
|
|
"kind": "error",
|
|
"line": 213,
|
|
"message": "'__get_address_as_owned_value' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 216,
|
|
"kind": "error",
|
|
"line": 217,
|
|
"message": "'origin_of' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 220,
|
|
"kind": "error",
|
|
"line": 221,
|
|
"message": "'type_of' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 224,
|
|
"kind": "error",
|
|
"line": 225,
|
|
"message": "'conforms_to' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 228,
|
|
"kind": "error",
|
|
"line": 229,
|
|
"message": "'__functions_in_module' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 232,
|
|
"kind": "error",
|
|
"line": 233,
|
|
"message": "'__get_current_function_name' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 236,
|
|
"kind": "error",
|
|
"line": 237,
|
|
"message": "'__struct_field_ref' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 240,
|
|
"kind": "error",
|
|
"line": 241,
|
|
"message": "'__is_run_in_comptime_interpreter' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 244,
|
|
"kind": "error",
|
|
"line": 245,
|
|
"message": "'__match' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 251,
|
|
"kind": "error",
|
|
"line": 252,
|
|
"message": "'match' cannot be used as a function name in this context",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 17,
|
|
"message": "'_' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "error",
|
|
"line": 21,
|
|
"message": "'and' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "'as' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "'assert' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "'async' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "'await' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "'break' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "'case' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "'class' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "'comptime' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "'continue' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "'def' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "'del' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "'elif' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 72,
|
|
"kind": "error",
|
|
"line": 73,
|
|
"message": "'else' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 76,
|
|
"kind": "error",
|
|
"line": 77,
|
|
"message": "'except' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 80,
|
|
"kind": "error",
|
|
"line": 81,
|
|
"message": "'False' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 84,
|
|
"kind": "error",
|
|
"line": 85,
|
|
"message": "'finally' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "'for' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 92,
|
|
"kind": "error",
|
|
"line": 93,
|
|
"message": "'from' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 96,
|
|
"kind": "error",
|
|
"line": 97,
|
|
"message": "'global' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 100,
|
|
"kind": "error",
|
|
"line": 101,
|
|
"message": "'if' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 104,
|
|
"kind": "error",
|
|
"line": 105,
|
|
"message": "'import' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 108,
|
|
"kind": "error",
|
|
"line": 109,
|
|
"message": "'in' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 112,
|
|
"kind": "error",
|
|
"line": 113,
|
|
"message": "'is' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 116,
|
|
"kind": "error",
|
|
"line": 117,
|
|
"message": "'lambda' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 120,
|
|
"kind": "error",
|
|
"line": 121,
|
|
"message": "'match' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 124,
|
|
"kind": "error",
|
|
"line": 125,
|
|
"message": "'None' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 128,
|
|
"kind": "error",
|
|
"line": 129,
|
|
"message": "'nonlocal' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 132,
|
|
"kind": "error",
|
|
"line": 133,
|
|
"message": "'not' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 136,
|
|
"kind": "error",
|
|
"line": 137,
|
|
"message": "'or' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 140,
|
|
"kind": "error",
|
|
"line": 141,
|
|
"message": "'pass' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 144,
|
|
"kind": "error",
|
|
"line": 145,
|
|
"message": "'raise' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 148,
|
|
"kind": "error",
|
|
"line": 149,
|
|
"message": "'ref' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 152,
|
|
"kind": "error",
|
|
"line": 153,
|
|
"message": "'return' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 156,
|
|
"kind": "error",
|
|
"line": 157,
|
|
"message": "'Self' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 160,
|
|
"kind": "error",
|
|
"line": 161,
|
|
"message": "'struct' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 164,
|
|
"kind": "error",
|
|
"line": 165,
|
|
"message": "'trait' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 168,
|
|
"kind": "error",
|
|
"line": 169,
|
|
"message": "'__extension' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 172,
|
|
"kind": "error",
|
|
"line": 173,
|
|
"message": "'True' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 176,
|
|
"kind": "error",
|
|
"line": 177,
|
|
"message": "'try' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 180,
|
|
"kind": "error",
|
|
"line": 181,
|
|
"message": "'var' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 184,
|
|
"kind": "error",
|
|
"line": 185,
|
|
"message": "'while' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 188,
|
|
"kind": "error",
|
|
"line": 189,
|
|
"message": "'with' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 192,
|
|
"kind": "error",
|
|
"line": 193,
|
|
"message": "'yield' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 196,
|
|
"kind": "error",
|
|
"line": 197,
|
|
"message": "'__mlir_region' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 200,
|
|
"kind": "error",
|
|
"line": 201,
|
|
"message": "'__get_address_as_uninit_lvalue' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 204,
|
|
"kind": "error",
|
|
"line": 205,
|
|
"message": "'__get_mvalue_as_litref' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 208,
|
|
"kind": "error",
|
|
"line": 209,
|
|
"message": "'__get_litref_as_mvalue' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 212,
|
|
"kind": "error",
|
|
"line": 213,
|
|
"message": "'__get_address_as_owned_value' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 216,
|
|
"kind": "error",
|
|
"line": 217,
|
|
"message": "'origin_of' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 220,
|
|
"kind": "error",
|
|
"line": 221,
|
|
"message": "'type_of' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 224,
|
|
"kind": "error",
|
|
"line": 225,
|
|
"message": "'conforms_to' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 228,
|
|
"kind": "error",
|
|
"line": 229,
|
|
"message": "'__functions_in_module' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 232,
|
|
"kind": "error",
|
|
"line": 233,
|
|
"message": "'__get_current_function_name' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 236,
|
|
"kind": "error",
|
|
"line": 237,
|
|
"message": "'__struct_field_ref' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 240,
|
|
"kind": "error",
|
|
"line": 241,
|
|
"message": "'__is_run_in_comptime_interpreter' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 244,
|
|
"kind": "error",
|
|
"line": 245,
|
|
"message": "'__match' cannot be used as a function name in this context",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 251,
|
|
"kind": "error",
|
|
"line": 252,
|
|
"message": "'match' cannot be used as a function name in this context",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/keyword_fn_names.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/keyword_fn_names",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/keyword_fn_names.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 28,
|
|
"message": "StructWithField' value has no attribute 'badPropertyError'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "StructWithField' value has no attribute 'badPropertyError'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "'SomeTrait' value has no attribute 'value'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "cannot access instance field 'field' without an instance of 'StructWithField'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 45,
|
|
"kind": "error",
|
|
"line": 46,
|
|
"message": "cannot access instance field 'value' directly; did you mean 'self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "error",
|
|
"line": 48,
|
|
"message": "cannot access comptime 'my_alias' directly; did you mean 'Self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "cannot access method 'fxn' directly; did you mean 'Self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "cannot access method 'fxn' directly; did you mean 'self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 58,
|
|
"kind": "error",
|
|
"line": 59,
|
|
"message": "cannot access method 'stat' directly; did you mean 'Self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 63,
|
|
"kind": "error",
|
|
"line": 64,
|
|
"message": "'DirectInstanceReference' value has no attribute 'badField'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "cannot access comptime 'my_alias' directly; did you mean 'Self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 76,
|
|
"kind": "error",
|
|
"line": 77,
|
|
"message": "cannot access method 'fxn' directly; did you mean 'Self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 80,
|
|
"kind": "error",
|
|
"line": 81,
|
|
"message": "cannot access method 'fxn' directly; did you mean 'Self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 82,
|
|
"kind": "error",
|
|
"line": 83,
|
|
"message": "cannot access method 'stat' directly; did you mean 'Self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 92,
|
|
"kind": "note",
|
|
"line": 92,
|
|
"message": "parameter 'my_param' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 96,
|
|
"kind": "error",
|
|
"line": 97,
|
|
"message": "unqualified access to struct parameter 'my_param'; use 'Self.my_param' instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 101,
|
|
"kind": "error",
|
|
"line": 102,
|
|
"message": "unqualified access to struct parameter 'my_param'; use 'Self.my_param' instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 111,
|
|
"kind": "error",
|
|
"line": 112,
|
|
"message": "unqualified access to struct parameter 'my_param'; use 'Self.my_param' instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 113,
|
|
"kind": "error",
|
|
"line": 114,
|
|
"message": "unqualified access to struct parameter 'my_param'; use 'Self.my_param' instead",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 28,
|
|
"message": "StructWithField' value has no attribute 'badPropertyError'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "StructWithField' value has no attribute 'badPropertyError'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "'SomeTrait' value has no attribute 'value'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "cannot access instance field 'field' without an instance of 'StructWithField'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 45,
|
|
"kind": "error",
|
|
"line": 46,
|
|
"message": "cannot access instance field 'value' directly; did you mean 'self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "error",
|
|
"line": 48,
|
|
"message": "cannot access comptime 'my_alias' directly; did you mean 'Self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "cannot access method 'fxn' directly; did you mean 'Self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "cannot access method 'fxn' directly; did you mean 'self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 58,
|
|
"kind": "error",
|
|
"line": 59,
|
|
"message": "cannot access method 'stat' directly; did you mean 'Self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 63,
|
|
"kind": "error",
|
|
"line": 64,
|
|
"message": "'DirectInstanceReference' value has no attribute 'badField'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "cannot access comptime 'my_alias' directly; did you mean 'Self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 76,
|
|
"kind": "error",
|
|
"line": 77,
|
|
"message": "cannot access method 'fxn' directly; did you mean 'Self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 80,
|
|
"kind": "error",
|
|
"line": 81,
|
|
"message": "cannot access method 'fxn' directly; did you mean 'Self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 82,
|
|
"kind": "error",
|
|
"line": 83,
|
|
"message": "cannot access method 'stat' directly; did you mean 'Self.'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 96,
|
|
"kind": "error",
|
|
"line": 97,
|
|
"message": "unqualified access to struct parameter 'my_param'; use 'Self.my_param' instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 101,
|
|
"kind": "error",
|
|
"line": 102,
|
|
"message": "unqualified access to struct parameter 'my_param'; use 'Self.my_param' instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 111,
|
|
"kind": "error",
|
|
"line": 112,
|
|
"message": "unqualified access to struct parameter 'my_param'; use 'Self.my_param' instead",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 113,
|
|
"kind": "error",
|
|
"line": 114,
|
|
"message": "unqualified access to struct parameter 'my_param'; use 'Self.my_param' instead",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/lookup_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/lookup_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/lookup_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "note",
|
|
"line": 22,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "kwargs unpack can only satisfy another kwargs argument, it can't fulfill 'd'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "unpack is only supported when the callee accepts a variadic; to forward a runtime pack to a fixed-arity callee, route the call through a dispatcher whose argument is itself a variadic pack (e.g. `def shim[Ts: TypeList[Trait=AnyType, ...], //, callee: def(*args: *Ts) thin](...): callee(*pack)`)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "positional argument must not follow an unpack; move it before or convert to a keyword argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "note",
|
|
"line": 29,
|
|
"message": "unpacked positional argument specified here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 35,
|
|
"message": "unpack markers (*name syntax) must not appear more than once in a call; remove the second unpack",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "note",
|
|
"line": 35,
|
|
"message": "previous unpacked positional argument specified here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "positional unpack must not follow keyword unpacking; move it before the '**' unpack",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "note",
|
|
"line": 45,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 48,
|
|
"message": "combining a '**' unpack with other keyword arguments for '**kwargs' is not supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "note",
|
|
"line": 48,
|
|
"message": "other keyword argument specified here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 51,
|
|
"kind": "note",
|
|
"line": 52,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 55,
|
|
"message": "combining a '**' unpack with other keyword arguments for '**kwargs' is not supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 54,
|
|
"kind": "note",
|
|
"line": 55,
|
|
"message": "other keyword argument specified here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 58,
|
|
"kind": "note",
|
|
"line": 59,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "invalid call to 'test_sum_intable': cannot unpack a pack of type 'AnyType' ('Ts.values') into a call that expects a pack of type 'Intable' ('Ts.values')",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "note",
|
|
"line": 72,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 77,
|
|
"kind": "error",
|
|
"line": 78,
|
|
"message": "unpack is only supported when the callee accepts a variadic; to forward a runtime pack to a fixed-arity callee, route the call through a dispatcher whose argument is itself a variadic pack (e.g. `def shim[Ts: TypeList[Trait=AnyType, ...], //, callee: def(*args: *Ts) thin](...): callee(*pack)`)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "note",
|
|
"line": 89,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 96,
|
|
"kind": "error",
|
|
"line": 97,
|
|
"message": "unpack is only supported when the callee accepts a variadic; to forward a runtime pack to a fixed-arity callee, route the call through a dispatcher whose argument is itself a variadic pack (e.g. `def shim[Ts: TypeList[Trait=AnyType, ...], //, callee: def(*args: *Ts) thin](...): callee(*pack)`)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 100,
|
|
"kind": "note",
|
|
"line": 101,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 108,
|
|
"kind": "error",
|
|
"line": 109,
|
|
"message": "unpack is only supported when the callee accepts a variadic; to forward a runtime pack to a fixed-arity callee, route the call through a dispatcher whose argument is itself a variadic pack (e.g. `def shim[Ts: TypeList[Trait=AnyType, ...], //, callee: def(*args: *Ts) thin](...): callee(*pack)`)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 112,
|
|
"kind": "note",
|
|
"line": 113,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 120,
|
|
"kind": "error",
|
|
"line": 121,
|
|
"message": "unpack is only supported when the callee accepts a variadic; to forward a runtime pack to a fixed-arity callee, route the call through a dispatcher whose argument is itself a variadic pack (e.g. `def shim[Ts: TypeList[Trait=AnyType, ...], //, callee: def(*args: *Ts) thin](...): callee(*pack)`)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 126,
|
|
"kind": "note",
|
|
"line": 127,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 132,
|
|
"kind": "error",
|
|
"line": 133,
|
|
"message": "value passed to 'args' cannot be converted from 'VariadicPack[False, Ts]' to 'VariadicList[Int, False]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 137,
|
|
"kind": "error",
|
|
"line": 138,
|
|
"message": "unpack is only supported when the callee accepts a variadic; to forward a runtime pack to a fixed-arity callee, route the call through a dispatcher whose argument is itself a variadic pack (e.g. `def shim[Ts: TypeList[Trait=AnyType, ...], //, callee: def(*args: *Ts) thin](...): callee(*pack)`)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 147,
|
|
"kind": "error",
|
|
"line": 149,
|
|
"message": "value of type 'StringDict[Int]' cannot be implicitly copied",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 148,
|
|
"kind": "note",
|
|
"line": 149,
|
|
"message": "consider transferring the value with '^'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 154,
|
|
"kind": "note",
|
|
"line": 155,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 160,
|
|
"kind": "error",
|
|
"line": 161,
|
|
"message": "concatenating unpacked positional arguments is not supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 163,
|
|
"kind": "error",
|
|
"line": 165,
|
|
"message": "positional argument must not follow an unpack; move it before or convert to a keyword argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 164,
|
|
"kind": "note",
|
|
"line": 165,
|
|
"message": "unpacked positional argument specified here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 169,
|
|
"kind": "error",
|
|
"line": 171,
|
|
"message": "unpack markers (*name syntax) must not appear more than once in a call; remove the second unpack",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 170,
|
|
"kind": "note",
|
|
"line": 171,
|
|
"message": "previous unpacked positional argument specified here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 182,
|
|
"kind": "note",
|
|
"line": 183,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "error",
|
|
"line": 190,
|
|
"message": "cannot unpack value of type 'MyStruct' into a variadic pack argument; expected a VariadicPack",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "kwargs unpack can only satisfy another kwargs argument, it can't fulfill 'd'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "unpack is only supported when the callee accepts a variadic; to forward a runtime pack to a fixed-arity callee, route the call through a dispatcher whose argument is itself a variadic pack (e.g. `def shim[Ts: TypeList[Trait=AnyType, ...], //, callee: def(*args: *Ts) thin](...): callee(*pack)`)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "positional argument must not follow an unpack; move it before or convert to a keyword argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 35,
|
|
"message": "unpack markers (*name syntax) must not appear more than once in a call; remove the second unpack",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "positional unpack must not follow keyword unpacking; move it before the '**' unpack",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 48,
|
|
"message": "combining a '**' unpack with other keyword arguments for '**kwargs' is not supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 55,
|
|
"message": "combining a '**' unpack with other keyword arguments for '**kwargs' is not supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "invalid call to 'test_sum_intable': cannot unpack a pack of type 'AnyType' ('Ts.values') into a call that expects a pack of type 'Intable' ('Ts.values')",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 77,
|
|
"kind": "error",
|
|
"line": 78,
|
|
"message": "unpack is only supported when the callee accepts a variadic; to forward a runtime pack to a fixed-arity callee, route the call through a dispatcher whose argument is itself a variadic pack (e.g. `def shim[Ts: TypeList[Trait=AnyType, ...], //, callee: def(*args: *Ts) thin](...): callee(*pack)`)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 96,
|
|
"kind": "error",
|
|
"line": 97,
|
|
"message": "unpack is only supported when the callee accepts a variadic; to forward a runtime pack to a fixed-arity callee, route the call through a dispatcher whose argument is itself a variadic pack (e.g. `def shim[Ts: TypeList[Trait=AnyType, ...], //, callee: def(*args: *Ts) thin](...): callee(*pack)`)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 108,
|
|
"kind": "error",
|
|
"line": 109,
|
|
"message": "unpack is only supported when the callee accepts a variadic; to forward a runtime pack to a fixed-arity callee, route the call through a dispatcher whose argument is itself a variadic pack (e.g. `def shim[Ts: TypeList[Trait=AnyType, ...], //, callee: def(*args: *Ts) thin](...): callee(*pack)`)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 120,
|
|
"kind": "error",
|
|
"line": 121,
|
|
"message": "unpack is only supported when the callee accepts a variadic; to forward a runtime pack to a fixed-arity callee, route the call through a dispatcher whose argument is itself a variadic pack (e.g. `def shim[Ts: TypeList[Trait=AnyType, ...], //, callee: def(*args: *Ts) thin](...): callee(*pack)`)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 132,
|
|
"kind": "error",
|
|
"line": 133,
|
|
"message": "value passed to 'args' cannot be converted from 'VariadicPack[False, Ts]' to 'VariadicList[Int, False]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 137,
|
|
"kind": "error",
|
|
"line": 138,
|
|
"message": "unpack is only supported when the callee accepts a variadic; to forward a runtime pack to a fixed-arity callee, route the call through a dispatcher whose argument is itself a variadic pack (e.g. `def shim[Ts: TypeList[Trait=AnyType, ...], //, callee: def(*args: *Ts) thin](...): callee(*pack)`)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 147,
|
|
"kind": "error",
|
|
"line": 149,
|
|
"message": "value of type 'StringDict[Int]' cannot be implicitly copied",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 160,
|
|
"kind": "error",
|
|
"line": 161,
|
|
"message": "concatenating unpacked positional arguments is not supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 163,
|
|
"kind": "error",
|
|
"line": 165,
|
|
"message": "positional argument must not follow an unpack; move it before or convert to a keyword argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 169,
|
|
"kind": "error",
|
|
"line": 171,
|
|
"message": "unpack markers (*name syntax) must not appear more than once in a call; remove the second unpack",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "error",
|
|
"line": 190,
|
|
"message": "cannot unpack value of type 'MyStruct' into a variadic pack argument; expected a VariadicPack",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/pack_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/pack_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/pack_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "note",
|
|
"line": 36,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "note",
|
|
"line": 41,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "error",
|
|
"line": 51,
|
|
"message": "invalid call to 'take_two_int_dep': value passed to 'a' cannot be converted from 'TwoIntParamStruct[Int(2), Int(2)]' to 'TwoIntParamStruct[Int(2), Int(3)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 50,
|
|
"kind": "note",
|
|
"line": 51,
|
|
"message": ".b of the first value is 'Int(2)' but the second value is 'Int(3)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "invalid call to 'take_two_int_dep': value passed to 'a' cannot be converted from 'TwoIntParamStruct[y, (y + Int(2))]' to 'TwoIntParamStruct[y, (y + Int(1))]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "note",
|
|
"line": 57,
|
|
"message": ".b of the first value is '(y + Int(2))' but the second value is '(y + Int(1))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 59,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "invalid call to 'take_tied_values': value passed to 'b' cannot be converted from 'TwoIntParamStruct[Int(20), Int(2)]' to 'TwoIntParamStruct[Int(20), Int(1)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "note",
|
|
"line": 61,
|
|
"message": ".b of the first value is 'Int(2)' but the second value is 'Int(1)'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "error",
|
|
"line": 51,
|
|
"message": "invalid call to 'take_two_int_dep': value passed to 'a' cannot be converted from 'TwoIntParamStruct[Int(2), Int(2)]' to 'TwoIntParamStruct[Int(2), Int(3)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "invalid call to 'take_two_int_dep': value passed to 'a' cannot be converted from 'TwoIntParamStruct[y, (y + Int(2))]' to 'TwoIntParamStruct[y, (y + Int(1))]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 59,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "invalid call to 'take_tied_values': value passed to 'b' cannot be converted from 'TwoIntParamStruct[Int(20), Int(2)]' to 'TwoIntParamStruct[Int(20), Int(1)]'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/param_infer_diags.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/param_infer_diags",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/param_infer_diags.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics -o /dev/null"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "note",
|
|
"line": 18,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "'bind_fat_to_thin_target' parameter 'g' has 'def(y: Int) thin -> Int' type, but value has type 'def(y: Int) capturing thin -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 73,
|
|
"message": "value of type 'NoCopyType' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 72,
|
|
"kind": "note",
|
|
"line": 73,
|
|
"message": "consider transferring the value with '^'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 82,
|
|
"kind": "error",
|
|
"line": 83,
|
|
"message": "cannot capture unknown value 'not_a_thing'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "cannot capture unknown value 'not_a_thing'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "'bind_fat_to_thin_target' parameter 'g' has 'def(y: Int) thin -> Int' type, but value has type 'def(y: Int) capturing thin -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 73,
|
|
"message": "value of type 'NoCopyType' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 82,
|
|
"kind": "error",
|
|
"line": 83,
|
|
"message": "cannot capture unknown value 'not_a_thing'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "cannot capture unknown value 'not_a_thing'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/parameter_closures_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/parameter_closures_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/parameter_closures_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 38,
|
|
"message": "attempt to resolve a recursive reference to declaration '__init__'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "note",
|
|
"line": 38,
|
|
"message": "referenced from here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "note",
|
|
"line": 38,
|
|
"message": "by declaration '__init__'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 38,
|
|
"message": "failed to emit constraint expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 42,
|
|
"kind": "note",
|
|
"line": 44,
|
|
"message": "candidate not viable: missing required argument: 'move'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "note",
|
|
"line": 44,
|
|
"message": "def __init__(out self, *, deinit move: Self) # note - generated function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 45,
|
|
"kind": "note",
|
|
"line": 46,
|
|
"message": "candidate not viable: cannot infer the size of the list literal with a previously diagnosed error",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "note",
|
|
"line": 57,
|
|
"message": "referenced through this use",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "no matching function in initialization",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 38,
|
|
"message": "attempt to resolve a recursive reference to declaration '__init__'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 38,
|
|
"message": "failed to emit constraint expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "no matching function in initialization",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/recursive_signature_literal_size.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/recursive_signature_literal_size",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/recursive_signature_literal_size.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s 2>&1"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "note",
|
|
"line": 28,
|
|
"message": "constraint declared here evaluated to False",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "note",
|
|
"line": 45,
|
|
"message": "constraint declared here evaluated to False",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "error",
|
|
"line": 50,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "note",
|
|
"line": 63,
|
|
"message": "constraint declared here evaluated to False",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 68,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 80,
|
|
"kind": "note",
|
|
"line": 81,
|
|
"message": "constraint declared here needs evidence for",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 85,
|
|
"kind": "error",
|
|
"line": 86,
|
|
"message": "lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 97,
|
|
"kind": "note",
|
|
"line": 98,
|
|
"message": "constraint declared here evaluated to False",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 102,
|
|
"kind": "error",
|
|
"line": 103,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 112,
|
|
"kind": "note",
|
|
"line": 113,
|
|
"message": "constraint declared here evaluated to False",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 117,
|
|
"kind": "error",
|
|
"line": 118,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 126,
|
|
"kind": "note",
|
|
"line": 127,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 128,
|
|
"kind": "note",
|
|
"line": 129,
|
|
"message": "constraint declared here evaluated to False",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 134,
|
|
"kind": "error",
|
|
"line": 135,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "error",
|
|
"line": 50,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 68,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 85,
|
|
"kind": "error",
|
|
"line": 86,
|
|
"message": "lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 102,
|
|
"kind": "error",
|
|
"line": 103,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 117,
|
|
"kind": "error",
|
|
"line": 118,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 134,
|
|
"kind": "error",
|
|
"line": 135,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/specialized_generator_discharge_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/specialized_generator_discharge_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/specialized_generator_discharge_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "note",
|
|
"line": 50,
|
|
"message": "'ViolatedStruct' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 51,
|
|
"kind": "note",
|
|
"line": 52,
|
|
"message": "constraint declared here evaluated to False",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 57,
|
|
"kind": "error",
|
|
"line": 58,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "note",
|
|
"line": 72,
|
|
"message": "cannot prove constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 73,
|
|
"kind": "note",
|
|
"line": 74,
|
|
"message": "constraint declared here needs evidence for",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "error",
|
|
"line": 80,
|
|
"message": "lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 115,
|
|
"kind": "note",
|
|
"line": 116,
|
|
"message": "constraint declared here needs evidence for",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 120,
|
|
"kind": "error",
|
|
"line": 122,
|
|
"message": "lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 121,
|
|
"kind": "note",
|
|
"line": 122,
|
|
"message": "add a trailing 'where' clause that requires '(K > Int(0))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 146,
|
|
"kind": "note",
|
|
"line": 147,
|
|
"message": "'ViolatedOrderedPair' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 148,
|
|
"kind": "note",
|
|
"line": 149,
|
|
"message": "constraint declared here evaluated to False",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 154,
|
|
"kind": "error",
|
|
"line": 155,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 181,
|
|
"kind": "note",
|
|
"line": 182,
|
|
"message": "'OnlyIntableViolated' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 183,
|
|
"kind": "note",
|
|
"line": 184,
|
|
"message": "constraint declared here evaluated to False",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 193,
|
|
"kind": "error",
|
|
"line": 194,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 197,
|
|
"kind": "note",
|
|
"line": 198,
|
|
"message": "cannot prove constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 199,
|
|
"kind": "note",
|
|
"line": 200,
|
|
"message": "constraint declared here needs evidence for",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 209,
|
|
"kind": "error",
|
|
"line": 210,
|
|
"message": "lacking evidence to prove correctness",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 57,
|
|
"kind": "error",
|
|
"line": 58,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "error",
|
|
"line": 80,
|
|
"message": "lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 120,
|
|
"kind": "error",
|
|
"line": 122,
|
|
"message": "lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 154,
|
|
"kind": "error",
|
|
"line": 155,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 193,
|
|
"kind": "error",
|
|
"line": 194,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 209,
|
|
"kind": "error",
|
|
"line": 210,
|
|
"message": "lacking evidence to prove correctness",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/struct_body_constraints.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/struct_body_constraints",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/struct_body_constraints.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "warning",
|
|
"line": 30,
|
|
"message": "parametric '__call__' method cannot be called directly because 'PCallWithGetItem' defines '__getitem__', '__setitem__', or '__getattr__'; consider using a different name for this method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "note",
|
|
"line": 34,
|
|
"message": "__getitem__ defined here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "note",
|
|
"line": 38,
|
|
"message": "__getitem__ defined here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 45,
|
|
"kind": "warning",
|
|
"line": 46,
|
|
"message": "parametric '__call__' method cannot be called directly because 'PCallWithGetAttr' defines '__getitem__', '__setitem__', or '__getattr__'; consider using a different name for this method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "note",
|
|
"line": 50,
|
|
"message": "__getattr__ defined here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 74,
|
|
"message": "'Int' does not implement the '__call__' method",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 74,
|
|
"message": "'Int' does not implement the '__call__' method",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/struct_call_sugar_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/struct_call_sugar_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/struct_call_sugar_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "trait ''DupTraitA'' appears multiple times in the conformance list with different constraints",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "trait ''DupTraitB'' appears multiple times in the conformance list with different constraints",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "error",
|
|
"line": 84,
|
|
"message": "trait ''CompA'' appears multiple times in the conformance list with different constraints",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "trait ''DupTraitA'' appears multiple times in the conformance list with different constraints",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "trait ''DupTraitB'' appears multiple times in the conformance list with different constraints",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "error",
|
|
"line": 84,
|
|
"message": "trait ''CompA'' appears multiple times in the conformance list with different constraints",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/struct_conditional_trait_conformance_duplicate_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/struct_conditional_trait_conformance_duplicate_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/struct_conditional_trait_conformance_duplicate_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "ancestor trait 'DiamondBase' is reached via multiple inheritance paths with different constraints; it must be explicitly listed in the conformance list with the desired constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "constraint for 'AncestorImplicationDerived' does not imply constraint for ancestor trait 'AncestorImplicationBase'; strengthen the derived constraint by adding the ancestor's constraint with 'and'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 105,
|
|
"kind": "error",
|
|
"line": 106,
|
|
"message": "constraint for 'UnconditionalDerivedChild' does not imply constraint for ancestor trait 'UnconditionalDerivedBase'; strengthen the derived constraint by adding the ancestor's constraint with 'and'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 124,
|
|
"kind": "error",
|
|
"line": 125,
|
|
"message": "conditional conformance to 'TrivialRegisterPassable' is not supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 153,
|
|
"kind": "error",
|
|
"line": 156,
|
|
"message": "cannot return 'x's origin, because it might expand to a RegisterPassable type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 185,
|
|
"kind": "error",
|
|
"line": 186,
|
|
"message": "constraint for 'RPRequiringTrait' does not imply constraint for ancestor trait 'RegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 231,
|
|
"kind": "note",
|
|
"line": 232,
|
|
"message": "trait 'UnconditionalConformanceTrait' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 233,
|
|
"kind": "note",
|
|
"line": 235,
|
|
"message": "required by trait method here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 234,
|
|
"kind": "note",
|
|
"line": 235,
|
|
"message": "invalid reference to 'do_something': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 239,
|
|
"kind": "error",
|
|
"line": 241,
|
|
"message": "does not implement all requirements for 'UnconditionalConformanceTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 240,
|
|
"kind": "note",
|
|
"line": 241,
|
|
"message": "provide evidence for the constraint here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 244,
|
|
"kind": "note",
|
|
"line": 246,
|
|
"message": "cannot prove constraint for candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 245,
|
|
"kind": "note",
|
|
"line": 246,
|
|
"message": "constraint declared here needs evidence for '(x > Int(10))'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 258,
|
|
"kind": "note",
|
|
"line": 259,
|
|
"message": "trait 'MismatchedConstraintTrait' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 260,
|
|
"kind": "note",
|
|
"line": 262,
|
|
"message": "required by trait method here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 261,
|
|
"kind": "note",
|
|
"line": 262,
|
|
"message": "invalid reference to 'process': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 266,
|
|
"kind": "error",
|
|
"line": 268,
|
|
"message": "does not implement all requirements for 'MismatchedConstraintTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 267,
|
|
"kind": "note",
|
|
"line": 268,
|
|
"message": "provide evidence for the constraint here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 272,
|
|
"kind": "note",
|
|
"line": 274,
|
|
"message": "cannot prove constraint for candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 273,
|
|
"kind": "note",
|
|
"line": 274,
|
|
"message": "constraint declared here needs evidence for 'conforms_to(T, Copyable)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 285,
|
|
"kind": "note",
|
|
"line": 286,
|
|
"message": "trait 'WeakerConformanceTrait' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 287,
|
|
"kind": "note",
|
|
"line": 289,
|
|
"message": "required by trait method here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 288,
|
|
"kind": "note",
|
|
"line": 289,
|
|
"message": "invalid reference to 'execute': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 293,
|
|
"kind": "error",
|
|
"line": 295,
|
|
"message": "does not implement all requirements for 'WeakerConformanceTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 294,
|
|
"kind": "note",
|
|
"line": 295,
|
|
"message": "provide evidence for the constraint here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 300,
|
|
"kind": "note",
|
|
"line": 301,
|
|
"message": "cannot prove constraint for candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 303,
|
|
"kind": "note",
|
|
"line": 304,
|
|
"message": "constraint declared here needs evidence for 'conforms_to(T, Intable) if conforms_to(T, Copyable) else conforms_to(T, Copyable)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 316,
|
|
"kind": "note",
|
|
"line": 317,
|
|
"message": "trait 'AmbiguousMethodTrait' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 318,
|
|
"kind": "note",
|
|
"line": 319,
|
|
"message": "ambiguous use of 'perform'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 323,
|
|
"kind": "error",
|
|
"line": 324,
|
|
"message": "does not implement all requirements for 'AmbiguousMethodTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 329,
|
|
"kind": "note",
|
|
"line": 330,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 334,
|
|
"kind": "note",
|
|
"line": 335,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 347,
|
|
"kind": "note",
|
|
"line": 348,
|
|
"message": "trait 'MultipleConditionsTrait' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 349,
|
|
"kind": "note",
|
|
"line": 350,
|
|
"message": "ambiguous use of 'run'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 354,
|
|
"kind": "error",
|
|
"line": 355,
|
|
"message": "does not implement all requirements for 'MultipleConditionsTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 362,
|
|
"kind": "note",
|
|
"line": 363,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 367,
|
|
"kind": "note",
|
|
"line": 368,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 384,
|
|
"kind": "note",
|
|
"line": 385,
|
|
"message": "trait 'UnprovableCandidateTrait' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 386,
|
|
"kind": "note",
|
|
"line": 388,
|
|
"message": "required by trait method here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 387,
|
|
"kind": "note",
|
|
"line": 388,
|
|
"message": "ambiguous reference to 'handle': lacking evidence to select candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 392,
|
|
"kind": "error",
|
|
"line": 394,
|
|
"message": "does not implement all requirements for 'UnprovableCandidateTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 393,
|
|
"kind": "note",
|
|
"line": 394,
|
|
"message": "provide evidence for or against the constraints here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 399,
|
|
"kind": "note",
|
|
"line": 401,
|
|
"message": "cannot prove constraint for candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 400,
|
|
"kind": "note",
|
|
"line": 401,
|
|
"message": "constraint declared here needs evidence for 'conforms_to(T, Intable)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 406,
|
|
"kind": "note",
|
|
"line": 407,
|
|
"message": "candidate is valid but cannot be selected until other candidates are disproved",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 423,
|
|
"kind": "note",
|
|
"line": 424,
|
|
"message": "trait 'ContradictingConstraintTrait' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 425,
|
|
"kind": "note",
|
|
"line": 426,
|
|
"message": "no 'apply' candidates have type 'def(self: DisprovedWithWhereNot[T]) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 430,
|
|
"kind": "error",
|
|
"line": 431,
|
|
"message": "does not implement all requirements for 'ContradictingConstraintTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 436,
|
|
"kind": "note",
|
|
"line": 437,
|
|
"message": "candidate declared here with type 'def[T: Movable, //](self: DisprovedWithWhereNot[T]) thin -> None where not conforms_to(T, Copyable).__bool__()'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 454,
|
|
"kind": "note",
|
|
"line": 456,
|
|
"message": "cannot prove constraint for candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 455,
|
|
"kind": "note",
|
|
"line": 456,
|
|
"message": "def custom_default(self) -> Int where conforms_to(T, Copyable) # note - generated function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 457,
|
|
"kind": "note",
|
|
"line": 458,
|
|
"message": "constraint declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 466,
|
|
"kind": "error",
|
|
"line": 468,
|
|
"message": "lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 467,
|
|
"kind": "note",
|
|
"line": 468,
|
|
"message": "provide evidence for the constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 485,
|
|
"kind": "note",
|
|
"line": 487,
|
|
"message": "cannot prove constraint for candidate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 486,
|
|
"kind": "note",
|
|
"line": 487,
|
|
"message": "def zero_field_method(self) -> Int where conforms_to(T, Copyable) # note - generated function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 489,
|
|
"kind": "note",
|
|
"line": 490,
|
|
"message": "constraint declared here needs evidence for 'conforms_to(T, Copyable)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 497,
|
|
"kind": "error",
|
|
"line": 499,
|
|
"message": "lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 498,
|
|
"kind": "note",
|
|
"line": 499,
|
|
"message": "provide evidence for the constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 516,
|
|
"kind": "error",
|
|
"line": 517,
|
|
"message": "cannot synthesize copy constructor because field 'value' has non-copyable type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 540,
|
|
"kind": "error",
|
|
"line": 541,
|
|
"message": "cannot synthesize copy constructor because field 'second' has non-copyable type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 558,
|
|
"kind": "note",
|
|
"line": 559,
|
|
"message": "trait 'CondAliasNotImplied' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 560,
|
|
"kind": "note",
|
|
"line": 561,
|
|
"message": "comptime member 'SIZE' type{{.*}}does not conform to trait's required type 'Int'",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 564,
|
|
"kind": "error",
|
|
"line": 565,
|
|
"message": "'CondAliasNotImpliedStruct[n]' does not implement all requirements for 'CondAliasNotImplied'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 584,
|
|
"kind": "note",
|
|
"line": 585,
|
|
"message": "constraint declared here needs evidence",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 587,
|
|
"kind": "error",
|
|
"line": 589,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 588,
|
|
"kind": "note",
|
|
"line": 589,
|
|
"message": "add a trailing 'where' clause",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "ancestor trait 'DiamondBase' is reached via multiple inheritance paths with different constraints; it must be explicitly listed in the conformance list with the desired constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "constraint for 'AncestorImplicationDerived' does not imply constraint for ancestor trait 'AncestorImplicationBase'; strengthen the derived constraint by adding the ancestor's constraint with 'and'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 105,
|
|
"kind": "error",
|
|
"line": 106,
|
|
"message": "constraint for 'UnconditionalDerivedChild' does not imply constraint for ancestor trait 'UnconditionalDerivedBase'; strengthen the derived constraint by adding the ancestor's constraint with 'and'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 124,
|
|
"kind": "error",
|
|
"line": 125,
|
|
"message": "conditional conformance to 'TrivialRegisterPassable' is not supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 153,
|
|
"kind": "error",
|
|
"line": 156,
|
|
"message": "cannot return 'x's origin, because it might expand to a RegisterPassable type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 185,
|
|
"kind": "error",
|
|
"line": 186,
|
|
"message": "constraint for 'RPRequiringTrait' does not imply constraint for ancestor trait 'RegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 239,
|
|
"kind": "error",
|
|
"line": 241,
|
|
"message": "does not implement all requirements for 'UnconditionalConformanceTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 266,
|
|
"kind": "error",
|
|
"line": 268,
|
|
"message": "does not implement all requirements for 'MismatchedConstraintTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 293,
|
|
"kind": "error",
|
|
"line": 295,
|
|
"message": "does not implement all requirements for 'WeakerConformanceTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 323,
|
|
"kind": "error",
|
|
"line": 324,
|
|
"message": "does not implement all requirements for 'AmbiguousMethodTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 354,
|
|
"kind": "error",
|
|
"line": 355,
|
|
"message": "does not implement all requirements for 'MultipleConditionsTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 392,
|
|
"kind": "error",
|
|
"line": 394,
|
|
"message": "does not implement all requirements for 'UnprovableCandidateTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 430,
|
|
"kind": "error",
|
|
"line": 431,
|
|
"message": "does not implement all requirements for 'ContradictingConstraintTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 466,
|
|
"kind": "error",
|
|
"line": 468,
|
|
"message": "lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 497,
|
|
"kind": "error",
|
|
"line": 499,
|
|
"message": "lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 516,
|
|
"kind": "error",
|
|
"line": 517,
|
|
"message": "cannot synthesize copy constructor because field 'value' has non-copyable type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 540,
|
|
"kind": "error",
|
|
"line": 541,
|
|
"message": "cannot synthesize copy constructor because field 'second' has non-copyable type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 564,
|
|
"kind": "error",
|
|
"line": 565,
|
|
"message": "'CondAliasNotImpliedStruct[n]' does not implement all requirements for 'CondAliasNotImplied'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 587,
|
|
"kind": "error",
|
|
"line": 589,
|
|
"message": "invalid bindings in signature: lacking evidence to prove correctness",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/struct_conditional_trait_conformance_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/struct_conditional_trait_conformance_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/struct_conditional_trait_conformance_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "note",
|
|
"line": 18,
|
|
"message": "extension already assumes these parameter declarations",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 22,
|
|
"kind": "error",
|
|
"line": 23,
|
|
"message": "cannot specify parameter declarations on extensions",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "note",
|
|
"line": 31,
|
|
"message": "conflicts with this previous declaration",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "cannot define a struct here with name 'Spaceship'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "can't find a struct named 'Spaceship'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "note",
|
|
"line": 56,
|
|
"message": "conflicts with this previous struct declaration",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "invalid redefinition of 'Spaceship'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 80,
|
|
"kind": "error",
|
|
"line": 81,
|
|
"message": "'where' clauses in conformance lists are only supported on structs",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 117,
|
|
"kind": "note",
|
|
"line": 118,
|
|
"message": "extension method conflicts with struct declaration",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 122,
|
|
"kind": "error",
|
|
"line": 123,
|
|
"message": "invalid redefinition of 'colliding'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "note",
|
|
"line": 139,
|
|
"message": "extension method conflicts with struct declaration",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 143,
|
|
"kind": "error",
|
|
"line": 144,
|
|
"message": "invalid redefinition of 'colliding'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 159,
|
|
"kind": "note",
|
|
"line": 160,
|
|
"message": "extension declaration conflicts with struct declaration",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 164,
|
|
"kind": "error",
|
|
"line": 165,
|
|
"message": "invalid redefinition of 'colliding'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 22,
|
|
"kind": "error",
|
|
"line": 23,
|
|
"message": "cannot specify parameter declarations on extensions",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "cannot define a struct here with name 'Spaceship'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "can't find a struct named 'Spaceship'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "invalid redefinition of 'Spaceship'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 80,
|
|
"kind": "error",
|
|
"line": 81,
|
|
"message": "'where' clauses in conformance lists are only supported on structs",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 122,
|
|
"kind": "error",
|
|
"line": 123,
|
|
"message": "invalid redefinition of 'colliding'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 143,
|
|
"kind": "error",
|
|
"line": 144,
|
|
"message": "invalid redefinition of 'colliding'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 164,
|
|
"kind": "error",
|
|
"line": 165,
|
|
"message": "invalid redefinition of 'colliding'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/struct_extensions_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/struct_extensions_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/struct_extensions_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics -split-input-file %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "note",
|
|
"line": 17,
|
|
"message": "conflicts with this previous declaration",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "error",
|
|
"line": 21,
|
|
"message": "cannot define a struct here with name 'PlainStruct'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "error",
|
|
"line": 21,
|
|
"message": "cannot define a struct here with name 'PlainStruct'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/struct_extensions_importing_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/struct_extensions_importing_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/struct_extensions_importing_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated --mojo-disable-builtins -I %S/inputs %s -mlir-print-debuginfo -split-input-file -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "'Foo' value has no attribute 'x_inst'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "'Foo' value has no attribute 'x_static'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "'Foo' value has no attribute 'x_inst'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "'Foo' value has no attribute 'x_static'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/struct_extensions_shadowed_target.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/struct_extensions_shadowed_target",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/struct_extensions_shadowed_target.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -I %S/inputs -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 58,
|
|
"kind": "warning",
|
|
"line": 59,
|
|
"message": "redundant trait composition: 'Deinitable' already implies 'AnyType",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/structs.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/structs",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/structs.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s --kgen-print-inline-type-values -verify-diagnostics | FileCheck %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "note",
|
|
"line": 44,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "note",
|
|
"line": 50,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "note",
|
|
"line": 56,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "invalid call to 'use1': value passed to 'x' cannot be converted from 'Struct4' to 'T', argument type 'Struct4' does not conform to trait 'Trait1'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "invalid call to 'use12Alias': value passed to 'x' cannot be converted from 'Struct4' to 'T', argument type 'Struct4' does not conform to trait 'Traits12'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "note",
|
|
"line": 69,
|
|
"message": "'Traits12' is aka 'Trait1 & Trait2'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "invalid call to 'use12Direct': value passed to 'x' cannot be converted from 'Struct4' to 'T', argument type 'Struct4' does not conform to trait 'Trait1 & Trait2'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "invalid call to 'use1': value passed to 'x' cannot be converted from 'Struct4' to 'T', argument type 'Struct4' does not conform to trait 'Trait1'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "invalid call to 'use12Alias': value passed to 'x' cannot be converted from 'Struct4' to 'T', argument type 'Struct4' does not conform to trait 'Traits12'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "invalid call to 'use12Direct': value passed to 'x' cannot be converted from 'Struct4' to 'T', argument type 'Struct4' does not conform to trait 'Trait1 & Trait2'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/trait_composition_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/trait_composition_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/trait_composition_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "note",
|
|
"line": 18,
|
|
"message": "trait 'MyMovable' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "note",
|
|
"line": 20,
|
|
"message": "required function '__init__' is not implemented",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "'self' argument must have type 'Self' in trait method declaration, but actually has type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "'where' clauses in conformance lists are only supported on structs",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "error",
|
|
"line": 48,
|
|
"message": "'ParamType[_]' is not concrete, use '[]' to bind missing parameters",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 54,
|
|
"kind": "error",
|
|
"line": 55,
|
|
"message": "cannot implicitly convert 'T' value to 'U'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 58,
|
|
"kind": "note",
|
|
"line": 59,
|
|
"message": "trait 'SimpleTrait' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "note",
|
|
"line": 62,
|
|
"message": "required function 'some_method' is not implemented",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 61,
|
|
"kind": "note",
|
|
"line": 62,
|
|
"message": "no 'some_method' candidates have type 'def(self: ParamDoesNotConform[x]) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 66,
|
|
"kind": "error",
|
|
"line": 67,
|
|
"message": "'TraitStruct' does not implement all requirements for 'MyMovable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 72,
|
|
"kind": "note",
|
|
"line": 73,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "error",
|
|
"line": 80,
|
|
"message": "'DoesNotConform' does not implement all requirements for 'SimpleTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 84,
|
|
"kind": "error",
|
|
"line": 85,
|
|
"message": "'ParamDoesNotConform[x]' does not implement all requirements for 'SimpleTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 86,
|
|
"kind": "note",
|
|
"line": 87,
|
|
"message": "candidate declared here with type 'def(self: ParamDoesNotConform[x], y: Int) thin -> None' (specialized from 'def[x: Int, //](self: ParamDoesNotConform[x], y: Int) thin -> None')",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 97,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "'test_many_things_of_specified_trait' parameter 'element_types' has 'Movable' type, but value has type 'AnyStruct[TraitStruct]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 110,
|
|
"kind": "note",
|
|
"line": 111,
|
|
"message": "trait 'TrivialTrait' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 112,
|
|
"kind": "note",
|
|
"line": 113,
|
|
"message": "required function 'doSomething' is not implemented",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 117,
|
|
"kind": "note",
|
|
"line": 118,
|
|
"message": "inherited through 'MemTraitViolation' here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 128,
|
|
"kind": "error",
|
|
"line": 129,
|
|
"message": "does not implement all requirements for",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 133,
|
|
"kind": "error",
|
|
"line": 134,
|
|
"message": "does not implement all requirements for",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 145,
|
|
"kind": "note",
|
|
"line": 145,
|
|
"message": "'Bar' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 150,
|
|
"kind": "error",
|
|
"line": 151,
|
|
"message": "'Bar' parameter 'T' has 'NotDeinitable' type, but value has type 'AnyTrait[NotDeinitable]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 155,
|
|
"kind": "error",
|
|
"line": 156,
|
|
"message": "cannot implicitly convert 'AnyTrait[ImplicitlyCopyable]' value to 'AnyTrait[FooTrait]' in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 168,
|
|
"kind": "note",
|
|
"line": 169,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 174,
|
|
"kind": "error",
|
|
"line": 175,
|
|
"message": "invalid call to 'take_two_inferred_params': value passed to 'y' cannot be converted from 'TakeInt[Int(1)]' to 'TakeInt[T.A]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 181,
|
|
"kind": "error",
|
|
"line": 185,
|
|
"message": "trait method with a return type must not use 'pass'; use '...' to declare the method as required",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 182,
|
|
"kind": "note",
|
|
"line": 184,
|
|
"message": "in 'bar', declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 183,
|
|
"kind": "note",
|
|
"line": 184,
|
|
"message": "original default implementation from trait 'TBar' here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "note",
|
|
"line": 190,
|
|
"message": "conflicting implementation from trait 'TBarSub' here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 194,
|
|
"kind": "error",
|
|
"line": 195,
|
|
"message": "trait method requirement 'bar' has conflicting default implementations in 'TBar' and 'TBarSub'; you must implement it manually",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 200,
|
|
"kind": "error",
|
|
"line": 201,
|
|
"message": "'where' clauses on trait methods are not supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 206,
|
|
"kind": "note",
|
|
"line": 207,
|
|
"message": "trait method declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 211,
|
|
"kind": "error",
|
|
"line": 212,
|
|
"message": "name conflict between parameter 'a' in the default trait method and a parameter in the struct",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 237,
|
|
"kind": "error",
|
|
"line": 237,
|
|
"message": "field 'value' has non-'Deinitable' type 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 302,
|
|
"kind": "error",
|
|
"line": 303,
|
|
"message": "invalid call to '__init__': no candidates found",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 317,
|
|
"kind": "error",
|
|
"line": 318,
|
|
"message": "'NeverCopyable' value has no attribute 'copy'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 341,
|
|
"kind": "error",
|
|
"line": 342,
|
|
"message": "'SilentGreeter' value has no attribute 'greet'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "'self' argument must have type 'Self' in trait method declaration, but actually has type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "'where' clauses in conformance lists are only supported on structs",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "error",
|
|
"line": 48,
|
|
"message": "'ParamType[_]' is not concrete, use '[]' to bind missing parameters",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 54,
|
|
"kind": "error",
|
|
"line": 55,
|
|
"message": "cannot implicitly convert 'T' value to 'U'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 66,
|
|
"kind": "error",
|
|
"line": 67,
|
|
"message": "'TraitStruct' does not implement all requirements for 'MyMovable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "error",
|
|
"line": 80,
|
|
"message": "'DoesNotConform' does not implement all requirements for 'SimpleTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 84,
|
|
"kind": "error",
|
|
"line": 85,
|
|
"message": "'ParamDoesNotConform[x]' does not implement all requirements for 'SimpleTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 97,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "'test_many_things_of_specified_trait' parameter 'element_types' has 'Movable' type, but value has type 'AnyStruct[TraitStruct]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 128,
|
|
"kind": "error",
|
|
"line": 129,
|
|
"message": "does not implement all requirements for",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 133,
|
|
"kind": "error",
|
|
"line": 134,
|
|
"message": "does not implement all requirements for",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 150,
|
|
"kind": "error",
|
|
"line": 151,
|
|
"message": "'Bar' parameter 'T' has 'NotDeinitable' type, but value has type 'AnyTrait[NotDeinitable]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 155,
|
|
"kind": "error",
|
|
"line": 156,
|
|
"message": "cannot implicitly convert 'AnyTrait[ImplicitlyCopyable]' value to 'AnyTrait[FooTrait]' in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 174,
|
|
"kind": "error",
|
|
"line": 175,
|
|
"message": "invalid call to 'take_two_inferred_params': value passed to 'y' cannot be converted from 'TakeInt[Int(1)]' to 'TakeInt[T.A]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 181,
|
|
"kind": "error",
|
|
"line": 185,
|
|
"message": "trait method with a return type must not use 'pass'; use '...' to declare the method as required",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 194,
|
|
"kind": "error",
|
|
"line": 195,
|
|
"message": "trait method requirement 'bar' has conflicting default implementations in 'TBar' and 'TBarSub'; you must implement it manually",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 200,
|
|
"kind": "error",
|
|
"line": 201,
|
|
"message": "'where' clauses on trait methods are not supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 211,
|
|
"kind": "error",
|
|
"line": 212,
|
|
"message": "name conflict between parameter 'a' in the default trait method and a parameter in the struct",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 237,
|
|
"kind": "error",
|
|
"line": 237,
|
|
"message": "field 'value' has non-'Deinitable' type 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 302,
|
|
"kind": "error",
|
|
"line": 303,
|
|
"message": "invalid call to '__init__': no candidates found",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 317,
|
|
"kind": "error",
|
|
"line": 318,
|
|
"message": "'NeverCopyable' value has no attribute 'copy'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 341,
|
|
"kind": "error",
|
|
"line": 342,
|
|
"message": "'SilentGreeter' value has no attribute 'greet'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/traits_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/traits_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/traits_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "use of unknown declaration 'coun'; did you mean 'count'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "use of unknown declaration 'valu'; did you mean 'value'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "use of unknown declaration 'module_leve'; did you mean 'module_level'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 47,
|
|
"message": "use of unknown declaration 'zzzzz'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "use of unknown declaration 'y'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "use of unknown declaration 'foox'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "use of unknown declaration 'typeof'; did you mean 'type_of'?",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "use of unknown declaration 'coun'; did you mean 'count'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "use of unknown declaration 'valu'; did you mean 'value'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "use of unknown declaration 'module_leve'; did you mean 'module_level'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 47,
|
|
"message": "use of unknown declaration 'zzzzz'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "use of unknown declaration 'y'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "use of unknown declaration 'foox'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "use of unknown declaration 'typeof'; did you mean 'type_of'?",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/typo_suggestion.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/typo_suggestion",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/typo_suggestion.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 159,
|
|
"kind": "warning",
|
|
"line": 160,
|
|
"message": "nested 'var' or 'ref' patterns are redundant, remove the outer pattern",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 162,
|
|
"kind": "warning",
|
|
"line": 163,
|
|
"message": "nested 'var' or 'ref' patterns are redundant, remove the outer pattern",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/decls/var.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/var",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/var.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics | FileCheck %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "cannot declare 'x' without a contextual type from its initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "invalid implicit conversion to 'SomeOtherStruct': no constructors found",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "invalid implicit conversion to 'SomeOtherStruct': no constructors found",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "note",
|
|
"line": 35,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "invalid redefinition of 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "cannot use a dynamic value in type specification",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "cannot use a dynamic value in type specification",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 48,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "'if' statement must be on its own line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "use of unknown declaration 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "expected a type, not a value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "use of unknown declaration 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 70,
|
|
"kind": "error",
|
|
"line": 71,
|
|
"message": "cannot implicitly convert 'None' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 76,
|
|
"kind": "error",
|
|
"line": 77,
|
|
"message": "backtick identifier must not be empty; add content between the backticks",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "error",
|
|
"line": 88,
|
|
"message": "expected a type, not a value",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "cannot declare 'x' without a contextual type from its initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "invalid implicit conversion to 'SomeOtherStruct': no constructors found",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "invalid implicit conversion to 'SomeOtherStruct': no constructors found",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "invalid redefinition of 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "cannot use a dynamic value in type specification",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "cannot use a dynamic value in type specification",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 48,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "'if' statement must be on its own line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "use of unknown declaration 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "expected a type, not a value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "use of unknown declaration 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 70,
|
|
"kind": "error",
|
|
"line": 71,
|
|
"message": "cannot implicitly convert 'None' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 76,
|
|
"kind": "error",
|
|
"line": 77,
|
|
"message": "backtick identifier must not be empty; add content between the backticks",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "error",
|
|
"line": 88,
|
|
"message": "expected a type, not a value",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/var_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/var_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/var_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 121,
|
|
"kind": "error",
|
|
"line": 122,
|
|
"message": "cannot transfer value into destination, because 'NotMovable' doesn't conform to 'Movable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 127,
|
|
"kind": "error",
|
|
"line": 128,
|
|
"message": "cannot transfer value into destination, because 'T' doesn't conform to 'Movable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 139,
|
|
"kind": "error",
|
|
"line": 140,
|
|
"message": "cannot transfer value into destination, because 'T' doesn't conform to 'Movable'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 121,
|
|
"kind": "error",
|
|
"line": 122,
|
|
"message": "cannot transfer value into destination, because 'NotMovable' doesn't conform to 'Movable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 127,
|
|
"kind": "error",
|
|
"line": 128,
|
|
"message": "cannot transfer value into destination, because 'T' doesn't conform to 'Movable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 139,
|
|
"kind": "error",
|
|
"line": 140,
|
|
"message": "cannot transfer value into destination, because 'T' doesn't conform to 'Movable'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/where_conformance_on_return.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/where_conformance_on_return",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/where_conformance_on_return.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 61,
|
|
"kind": "note",
|
|
"line": 62,
|
|
"message": "failed constraint: GenBox[T] requires T to be a Marker",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "note",
|
|
"line": 68,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 73,
|
|
"kind": "error",
|
|
"line": 74,
|
|
"message": "does not conform to trait 'Deinitable & Marker'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "note",
|
|
"line": 84,
|
|
"message": "failed constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 89,
|
|
"kind": "note",
|
|
"line": 90,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 95,
|
|
"kind": "error",
|
|
"line": 96,
|
|
"message": "does not conform to trait 'Deinitable & Marker'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 115,
|
|
"kind": "note",
|
|
"line": 116,
|
|
"message": "failed constraint: RefinedBox[T] requires T to be a Marker",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 121,
|
|
"kind": "note",
|
|
"line": 122,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 127,
|
|
"kind": "error",
|
|
"line": 128,
|
|
"message": "does not conform to trait 'Deinitable & Base'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 157,
|
|
"kind": "note",
|
|
"line": 158,
|
|
"message": "unproven constraint: TwoBox needs MarkerB for CommonB",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 163,
|
|
"kind": "note",
|
|
"line": 164,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 173,
|
|
"kind": "error",
|
|
"line": 174,
|
|
"message": "does not conform to trait",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 184,
|
|
"kind": "note",
|
|
"line": 185,
|
|
"message": "unproven constraint: BothBox needs MarkerA for CommonA",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 186,
|
|
"kind": "note",
|
|
"line": 187,
|
|
"message": "unproven constraint: BothBox needs MarkerB for CommonB",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 192,
|
|
"kind": "note",
|
|
"line": 193,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 198,
|
|
"kind": "error",
|
|
"line": 199,
|
|
"message": "does not conform to trait",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 208,
|
|
"kind": "note",
|
|
"line": 209,
|
|
"message": "failed constraint: PackBox[T] requires T to be a Marker",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 214,
|
|
"kind": "note",
|
|
"line": 215,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 220,
|
|
"kind": "error",
|
|
"line": 221,
|
|
"message": "does not conform to trait",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 233,
|
|
"kind": "note",
|
|
"line": 234,
|
|
"message": "failed constraint: MixedBox needs MarkerA for CommonA",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 240,
|
|
"kind": "note",
|
|
"line": 241,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 246,
|
|
"kind": "error",
|
|
"line": 247,
|
|
"message": "does not conform to trait",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 259,
|
|
"kind": "note",
|
|
"line": 260,
|
|
"message": "failed constraint: LateMixedBox needs MarkerB for CommonB",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 265,
|
|
"kind": "note",
|
|
"line": 266,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 271,
|
|
"kind": "error",
|
|
"line": 272,
|
|
"message": "does not conform to trait",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 73,
|
|
"kind": "error",
|
|
"line": 74,
|
|
"message": "does not conform to trait 'Deinitable & Marker'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 95,
|
|
"kind": "error",
|
|
"line": 96,
|
|
"message": "does not conform to trait 'Deinitable & Marker'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 127,
|
|
"kind": "error",
|
|
"line": 128,
|
|
"message": "does not conform to trait 'Deinitable & Base'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 173,
|
|
"kind": "error",
|
|
"line": 174,
|
|
"message": "does not conform to trait",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 198,
|
|
"kind": "error",
|
|
"line": 199,
|
|
"message": "does not conform to trait",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 220,
|
|
"kind": "error",
|
|
"line": 221,
|
|
"message": "does not conform to trait",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 246,
|
|
"kind": "error",
|
|
"line": 247,
|
|
"message": "does not conform to trait",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 271,
|
|
"kind": "error",
|
|
"line": 272,
|
|
"message": "does not conform to trait",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/where_message_conformance.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/where_message_conformance",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/where_message_conformance.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "note",
|
|
"line": 47,
|
|
"message": "'ViolatedStruct' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "note",
|
|
"line": 49,
|
|
"message": "constraint declared here evaluated to False, expected '(N > Int(0))': N must be positive",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 54,
|
|
"kind": "error",
|
|
"line": 55,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 63,
|
|
"kind": "note",
|
|
"line": 64,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 65,
|
|
"kind": "note",
|
|
"line": 66,
|
|
"message": "constraint declared here evaluated to False, expected '(sc > Int(1))': scaling factor must be greater than 1",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "invalid call to 'gated_fn': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 81,
|
|
"kind": "note",
|
|
"line": 82,
|
|
"message": "'CompoundStruct' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "note",
|
|
"line": 84,
|
|
"message": "constraint declared here evaluated to False, expected '(N < Int(10)) if (N > Int(0)) else (N > Int(0))': N must be in (0, 10)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 89,
|
|
"kind": "error",
|
|
"line": 90,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 100,
|
|
"kind": "note",
|
|
"line": 101,
|
|
"message": "cannot evaluate call to non-builtin function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 105,
|
|
"kind": "note",
|
|
"line": 106,
|
|
"message": "cannot prove constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 107,
|
|
"kind": "note",
|
|
"line": 108,
|
|
"message": "constraint declared here needs evidence for 'is_prime(Int(2))': x must be prime",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 113,
|
|
"kind": "error",
|
|
"line": 115,
|
|
"message": "invalid call to 'inconclusive_fn': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 114,
|
|
"kind": "note",
|
|
"line": 115,
|
|
"message": "provide evidence for the constraint here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 124,
|
|
"kind": "note",
|
|
"line": 125,
|
|
"message": "constraint declared here evaluated to False, expected '(N > Int(0))': alias requires a positive N",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 129,
|
|
"kind": "error",
|
|
"line": 130,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 54,
|
|
"kind": "error",
|
|
"line": 55,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "invalid call to 'gated_fn': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 89,
|
|
"kind": "error",
|
|
"line": 90,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 113,
|
|
"kind": "error",
|
|
"line": 115,
|
|
"message": "invalid call to 'inconclusive_fn': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 129,
|
|
"kind": "error",
|
|
"line": 130,
|
|
"message": "violated constraint",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/where_message_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/where_message_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/where_message_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "the message in a 'where' clause must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "the message in a 'where' clause must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 51,
|
|
"kind": "error",
|
|
"line": 52,
|
|
"message": "the message in a 'where' clause must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 69,
|
|
"kind": "error",
|
|
"line": 70,
|
|
"message": "the message in a 'where' clause must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "error",
|
|
"line": 80,
|
|
"message": "a 'where' clause takes a condition and an optional message: 'where (condition, \"message\")'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "the message in a 'where' clause must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "the message in a 'where' clause must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 51,
|
|
"kind": "error",
|
|
"line": 52,
|
|
"message": "the message in a 'where' clause must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 69,
|
|
"kind": "error",
|
|
"line": 70,
|
|
"message": "the message in a 'where' clause must be a string literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "error",
|
|
"line": 80,
|
|
"message": "a 'where' clause takes a condition and an optional message: 'where (condition, \"message\")'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/decls/where_message_parse_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/decls/where_message_parse_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/decls/where_message_parse_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "note",
|
|
"line": 22,
|
|
"message": "conflicting implementation from trait B here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "note",
|
|
"line": 27,
|
|
"message": "original default implementation from trait A here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "trait member 'a' has conflicting default implementations in B and A; you must implement it manually",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "trait member 'a' has conflicting default implementations in B and A; you must implement it manually",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/default_associated_alias_error.mojo",
|
|
"id": "diagnostics/mojo-parser/default_associated_alias_error",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/default_associated_alias_error.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated --verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "note",
|
|
"line": 22,
|
|
"message": "original default implementation from trait 'Foo1' here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "note",
|
|
"line": 28,
|
|
"message": "conflicting implementation from trait 'Foo2' here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "note",
|
|
"line": 34,
|
|
"message": "conflicting implementation from trait 'Foo3' here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "trait method requirement 'foo' has conflicting default implementations in 'Foo1' and 'Foo2'; you must implement it manually",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "trait method requirement 'foo' has conflicting default implementations in 'Foo1' and 'Foo3'; you must implement it manually",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "note",
|
|
"line": 49,
|
|
"message": "original default implementation from trait 'AA1' here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "note",
|
|
"line": 57,
|
|
"message": "conflicting implementation from trait 'AA2' here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "trait method requirement 'zork' has conflicting default implementations in 'AA1' and 'AA2'; you must implement it manually",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "async defaulted trait methods are not supported; remove the method or remove 'async'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 81,
|
|
"kind": "note",
|
|
"line": 82,
|
|
"message": "conflicting implementation from trait 'FooC' here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 90,
|
|
"kind": "note",
|
|
"line": 91,
|
|
"message": "original default implementation from trait 'FooB' here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 98,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "trait method requirement 'foo' has conflicting default implementations in 'FooB' and 'FooC'; you must implement it manually",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "trait method requirement 'foo' has conflicting default implementations in 'Foo1' and 'Foo2'; you must implement it manually",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "trait method requirement 'foo' has conflicting default implementations in 'Foo1' and 'Foo3'; you must implement it manually",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "trait method requirement 'zork' has conflicting default implementations in 'AA1' and 'AA2'; you must implement it manually",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "async defaulted trait methods are not supported; remove the method or remove 'async'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 98,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "trait method requirement 'foo' has conflicting default implementations in 'FooB' and 'FooC'; you must implement it manually",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/default_trait_method_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/default_trait_method_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/default_trait_method_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated --verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "error",
|
|
"line": 19,
|
|
"message": "invalid MLIR attribute: `#kgen.deferred` can only be used for non-typed attributes",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 18,
|
|
"kind": "note",
|
|
"line": 19,
|
|
"message": "attempting to parse: '#kgen.deferred 0 : index'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "element index 1 out of bounds (>=1)",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "error",
|
|
"line": 19,
|
|
"message": "invalid MLIR attribute: `#kgen.deferred` can only be used for non-typed attributes",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "element index 1 out of bounds (>=1)",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/deferred_ops_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/deferred_ops_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/deferred_ops_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "warning",
|
|
"line": 21,
|
|
"message": "trivially constructable attribute. Use `__mlir_attr` instead.",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "warning",
|
|
"line": 30,
|
|
"message": "trivially constructable attribute. Use `__mlir_attr` instead",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/deferred_ops_warnings.mojo",
|
|
"id": "diagnostics/mojo-parser/deferred_ops_warnings",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/deferred_ops_warnings.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "warning",
|
|
"line": 21,
|
|
"message": "trivially constructable type. Use `__mlir_type` instead.",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "warning",
|
|
"line": 26,
|
|
"message": "trivially constructable type. Use `__mlir_type` instead.",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/deferred_type_warnings.mojo",
|
|
"id": "diagnostics/mojo-parser/deferred_type_warnings",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/deferred_type_warnings.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "warning",
|
|
"line": 1,
|
|
"message": "public module '__init__' is missing a doc string",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/docs/__init__.mojo",
|
|
"id": "diagnostics/mojo-parser/docs/__init__",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/docs/__init__.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -o /dev/null -mojo-diagnose-missing-doc-strings -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "warning",
|
|
"line": 20,
|
|
"message": "public symbol 'ArgStruct' is missing a doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "warning",
|
|
"line": 34,
|
|
"message": "struct takes parameters, but has no 'Parameters' in doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "warning",
|
|
"line": 44,
|
|
"message": "parameter '{{.*}}_type' is not documented",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "warning",
|
|
"line": 45,
|
|
"message": "unknown parameter 'invalid_param' in doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "note",
|
|
"line": 56,
|
|
"message": "see previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 59,
|
|
"kind": "warning",
|
|
"line": 58,
|
|
"message": "duplicate parameter '_type' in doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "warning",
|
|
"line": 63,
|
|
"message": "duplicate 'Parameters' section found in doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 80,
|
|
"kind": "warning",
|
|
"line": 76,
|
|
"message": "'param2' is defined at index 1, but specified in doc string at index 0",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "warning",
|
|
"line": 88,
|
|
"message": "public symbol 'method_with_missing_doc_string' is missing a doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 94,
|
|
"kind": "warning",
|
|
"line": 95,
|
|
"message": "public symbol '__init__' is missing a doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 99,
|
|
"kind": "warning",
|
|
"line": 100,
|
|
"message": "public symbol 'fn_missing_doc_string' is missing a doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 110,
|
|
"kind": "warning",
|
|
"line": 109,
|
|
"message": "doc string summary should begin with a capital letter or non-alpha character, but this begins with 't'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 111,
|
|
"kind": "warning",
|
|
"line": 109,
|
|
"message": "doc string summary should end with a period '.', exclamation mark '!', question mark '?', or backtick '`', but this ends with 'd'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 123,
|
|
"kind": "warning",
|
|
"line": 124,
|
|
"message": "function takes arguments, but has no 'Args' in doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 132,
|
|
"kind": "warning",
|
|
"line": 133,
|
|
"message": "argument 'arg' is not documented",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 135,
|
|
"kind": "warning",
|
|
"line": 134,
|
|
"message": "unknown argument 'unknown_arg' in doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 145,
|
|
"kind": "warning",
|
|
"line": 146,
|
|
"message": "section tag 'Args' is overindented",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 155,
|
|
"kind": "note",
|
|
"line": 156,
|
|
"message": "see previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 159,
|
|
"kind": "warning",
|
|
"line": 158,
|
|
"message": "duplicate argument 'arg' in doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 161,
|
|
"kind": "warning",
|
|
"line": 162,
|
|
"message": "duplicate 'Args' section found in doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 175,
|
|
"kind": "warning",
|
|
"line": 172,
|
|
"message": "'arg2' is defined at index 1, but specified in doc string at index 0",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 186,
|
|
"kind": "warning",
|
|
"line": 183,
|
|
"message": "'arg' does not have a description",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 187,
|
|
"kind": "warning",
|
|
"line": 184,
|
|
"message": "'arg2' does not have a description",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 198,
|
|
"kind": "warning",
|
|
"line": 195,
|
|
"message": "'arg' description should end with a period '.', exclamation mark '!', question mark '?', or backtick '`', but this ends with 'd'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 199,
|
|
"kind": "warning",
|
|
"line": 196,
|
|
"message": "'arg2' description should begin with a capital letter or non-alpha character, but this begins with 't'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 206,
|
|
"kind": "warning",
|
|
"line": 208,
|
|
"message": "unexpected 'Returns' in doc string for function with no results",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 207,
|
|
"kind": "note",
|
|
"line": 208,
|
|
"message": "see previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 211,
|
|
"kind": "warning",
|
|
"line": 212,
|
|
"message": "duplicate 'Returns' section found in doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 221,
|
|
"kind": "warning",
|
|
"line": 223,
|
|
"message": "unexpected 'Raises' in doc string for function that does not throw",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 222,
|
|
"kind": "note",
|
|
"line": 223,
|
|
"message": "see previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 226,
|
|
"kind": "warning",
|
|
"line": 227,
|
|
"message": "duplicate 'Raises' section found in doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 233,
|
|
"kind": "warning",
|
|
"line": 234,
|
|
"message": "function can throw errors, but has no 'Raises' in doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 239,
|
|
"kind": "warning",
|
|
"line": 240,
|
|
"message": "function has results, but has no 'Returns' in doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 248,
|
|
"kind": "warning",
|
|
"line": 249,
|
|
"message": "'Returns' section is empty",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 260,
|
|
"kind": "warning",
|
|
"line": 258,
|
|
"message": "section body should begin with a capital letter or non-alpha character, but this begins with 'd'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 261,
|
|
"kind": "warning",
|
|
"line": 258,
|
|
"message": "section body should end with a period '.', exclamation mark '!', question mark '?', or backtick '`', but this ends with 'n'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 330,
|
|
"kind": "warning",
|
|
"line": 331,
|
|
"message": "public symbol 'AliasWithParams_MissingDocString{{.*}}' is missing a doc string",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 337,
|
|
"kind": "warning",
|
|
"line": 338,
|
|
"message": "comptime value has parameters, but has no 'Parameters' in doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 345,
|
|
"kind": "warning",
|
|
"line": 346,
|
|
"message": "parameter '{{.*}}T' is not documented",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 348,
|
|
"kind": "warning",
|
|
"line": 347,
|
|
"message": "unknown parameter 'invalid_param' in doc string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 360,
|
|
"kind": "warning",
|
|
"line": 365,
|
|
"message": "'U' is defined at index 1, but specified in doc string at index 0",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/docs/parser_doc_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/docs/parser_doc_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/docs/parser_doc_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -o /dev/null -mojo-diagnose-missing-doc-strings -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "warning",
|
|
"line": 1,
|
|
"message": "public module 'parser_doc_module_errors' is missing a doc string",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/docs/parser_doc_module_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/docs/parser_doc_module_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/docs/parser_doc_module_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -o /dev/null -mojo-diagnose-missing-doc-strings -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "Must use consume!",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 45,
|
|
"kind": "error",
|
|
"line": 46,
|
|
"message": "Must use consume!",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "error",
|
|
"line": 56,
|
|
"message": "Must use consume!",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 61,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "unhandled explicitly destroyed type 'AnyType'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "note",
|
|
"line": 63,
|
|
"message": "consider adding trait conformance to Deinitable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 94,
|
|
"kind": "error",
|
|
"line": 95,
|
|
"message": "type 'Coroutine' does not conform to 'Deinitable' and must be explicitly destroy",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 127,
|
|
"kind": "error",
|
|
"line": 127,
|
|
"message": "'b' abandoned without being explicitly destroyed: must use __deinit__() explicitly",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 160,
|
|
"kind": "error",
|
|
"line": 162,
|
|
"message": "unhandled explicitly destroyed type 'PlainTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 161,
|
|
"kind": "note",
|
|
"line": 162,
|
|
"message": "consider adding trait conformance to Deinitable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 167,
|
|
"kind": "error",
|
|
"line": 169,
|
|
"message": "unhandled explicitly destroyed type 'LinearNoMessage'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 168,
|
|
"kind": "note",
|
|
"line": 169,
|
|
"message": "consider adding trait conformance to Deinitable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 176,
|
|
"kind": "error",
|
|
"line": 178,
|
|
"message": "Use `destroy()` method.",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 177,
|
|
"kind": "note",
|
|
"line": 178,
|
|
"message": "consider adding trait conformance to Deinitable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 200,
|
|
"kind": "error",
|
|
"line": 202,
|
|
"message": "Use custom_bar_destroy().",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 201,
|
|
"kind": "note",
|
|
"line": 202,
|
|
"message": "consider adding trait conformance to Deinitable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 209,
|
|
"kind": "error",
|
|
"line": 211,
|
|
"message": "Use custom_bar_destroy().",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 210,
|
|
"kind": "note",
|
|
"line": 211,
|
|
"message": "consider adding trait conformance to Deinitable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 228,
|
|
"kind": "error",
|
|
"line": 230,
|
|
"message": "abandoned without being explicitly destroyed: ",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 229,
|
|
"kind": "note",
|
|
"line": 230,
|
|
"message": "consider adding trait conformance to Deinitable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 254,
|
|
"kind": "error",
|
|
"line": 255,
|
|
"message": "abandoned without being explicitly destroyed: type 'CondDeinitableDefault' does not conditionally conform to 'Deinitable' for these parameters",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 272,
|
|
"kind": "error",
|
|
"line": 273,
|
|
"message": "abandoned without being explicitly destroyed: type 'WhereFalseLinear' does not conform to 'Deinitable' and must be explicitly destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 284,
|
|
"kind": "error",
|
|
"line": 285,
|
|
"message": "abandoned without being explicitly destroyed: use consume()",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 302,
|
|
"kind": "error",
|
|
"line": 303,
|
|
"message": "abandoned without being explicitly destroyed: type 'ContradictedLinear' does not conform to 'Deinitable' and must be explicitly destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 323,
|
|
"kind": "error",
|
|
"line": 324,
|
|
"message": "value abandoned without being explicitly destroyed: use consume()",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "Must use consume!",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 45,
|
|
"kind": "error",
|
|
"line": 46,
|
|
"message": "Must use consume!",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "error",
|
|
"line": 56,
|
|
"message": "Must use consume!",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 61,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "unhandled explicitly destroyed type 'AnyType'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 94,
|
|
"kind": "error",
|
|
"line": 95,
|
|
"message": "type 'Coroutine' does not conform to 'Deinitable' and must be explicitly destroy",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 127,
|
|
"kind": "error",
|
|
"line": 127,
|
|
"message": "'b' abandoned without being explicitly destroyed: must use __deinit__() explicitly",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 160,
|
|
"kind": "error",
|
|
"line": 162,
|
|
"message": "unhandled explicitly destroyed type 'PlainTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 167,
|
|
"kind": "error",
|
|
"line": 169,
|
|
"message": "unhandled explicitly destroyed type 'LinearNoMessage'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 176,
|
|
"kind": "error",
|
|
"line": 178,
|
|
"message": "Use `destroy()` method.",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 200,
|
|
"kind": "error",
|
|
"line": 202,
|
|
"message": "Use custom_bar_destroy().",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 209,
|
|
"kind": "error",
|
|
"line": 211,
|
|
"message": "Use custom_bar_destroy().",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 228,
|
|
"kind": "error",
|
|
"line": 230,
|
|
"message": "abandoned without being explicitly destroyed: ",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 254,
|
|
"kind": "error",
|
|
"line": 255,
|
|
"message": "abandoned without being explicitly destroyed: type 'CondDeinitableDefault' does not conditionally conform to 'Deinitable' for these parameters",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 272,
|
|
"kind": "error",
|
|
"line": 273,
|
|
"message": "abandoned without being explicitly destroyed: type 'WhereFalseLinear' does not conform to 'Deinitable' and must be explicitly destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 284,
|
|
"kind": "error",
|
|
"line": 285,
|
|
"message": "abandoned without being explicitly destroyed: use consume()",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 302,
|
|
"kind": "error",
|
|
"line": 303,
|
|
"message": "abandoned without being explicitly destroyed: type 'ContradictedLinear' does not conform to 'Deinitable' and must be explicitly destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 323,
|
|
"kind": "error",
|
|
"line": 324,
|
|
"message": "value abandoned without being explicitly destroyed: use consume()",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/explicit_destroy_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/explicit_destroy_errors",
|
|
"mode": "run",
|
|
"pass": "lifetimes",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/explicit_destroy_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -mlir-print-debuginfo | FileCheck %s",
|
|
"%parse-mojo-isolated %s -mlir-print-debuginfo | kgen-opt -lower-semantic-cf -check-lifetimes -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "error",
|
|
"line": 21,
|
|
"message": "@explicit_destroy cannot be used on a trait that conforms to Deinitable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "@explicit_destroy cannot be used on a trait that conforms to Deinitable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "@explicit_destroy requires an argument: `@explicit_destroy(\"...\")`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "note",
|
|
"line": 43,
|
|
"message": "Use `Deinitable where False` conformance to opt out of implicit deletion. `@explicit_destroy` is no longer required.",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "expected exactly one argument: `@explicit_destroy(\"...\")`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "error",
|
|
"line": 56,
|
|
"message": "expected a string literal argument: `@explicit_destroy(\"...\")`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "@explicit_destroy requires an argument: `@explicit_destroy(\"...\")`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "note",
|
|
"line": 70,
|
|
"message": "Use `Deinitable where False` conformance to opt out of implicit deletion. `@explicit_destroy` is no longer required.",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "expected exactly one argument: `@explicit_destroy(\"...\")`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 80,
|
|
"kind": "error",
|
|
"line": 81,
|
|
"message": "expected a string literal argument: `@explicit_destroy(\"...\")`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 86,
|
|
"kind": "error",
|
|
"line": 88,
|
|
"message": "@explicit_destroy requires an argument: `@explicit_destroy(\"...\")`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "note",
|
|
"line": 89,
|
|
"message": "Use `Deinitable where False` conformance to opt out of implicit deletion. `@explicit_destroy` is no longer required.",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 93,
|
|
"kind": "error",
|
|
"line": 95,
|
|
"message": "@explicit_destroy is not valid on `struct` with unconditional conformance to `Deinitable`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 94,
|
|
"kind": "note",
|
|
"line": 96,
|
|
"message": "Add `Deinitable where False` conformance or remove `@explicit_destroy`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 111,
|
|
"kind": "error",
|
|
"line": 112,
|
|
"message": "field 'foo' has non-'Deinitable' type 'Linear'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "error",
|
|
"line": 21,
|
|
"message": "@explicit_destroy cannot be used on a trait that conforms to Deinitable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "@explicit_destroy cannot be used on a trait that conforms to Deinitable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "@explicit_destroy requires an argument: `@explicit_destroy(\"...\")`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "expected exactly one argument: `@explicit_destroy(\"...\")`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "error",
|
|
"line": 56,
|
|
"message": "expected a string literal argument: `@explicit_destroy(\"...\")`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "@explicit_destroy requires an argument: `@explicit_destroy(\"...\")`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "expected exactly one argument: `@explicit_destroy(\"...\")`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 80,
|
|
"kind": "error",
|
|
"line": 81,
|
|
"message": "expected a string literal argument: `@explicit_destroy(\"...\")`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 86,
|
|
"kind": "error",
|
|
"line": 88,
|
|
"message": "@explicit_destroy requires an argument: `@explicit_destroy(\"...\")`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 93,
|
|
"kind": "error",
|
|
"line": 95,
|
|
"message": "@explicit_destroy is not valid on `struct` with unconditional conformance to `Deinitable`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 111,
|
|
"kind": "error",
|
|
"line": 112,
|
|
"message": "field 'foo' has non-'Deinitable' type 'Linear'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/explicit_destroy_parse_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/explicit_destroy_parse_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/explicit_destroy_parse_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "cannot materialize comptime value of type 'NonEM' to runtime because it is not 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "note",
|
|
"line": 45,
|
|
"message": "use 'materialize' to explicitly materialize the value",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "cannot materialize comptime value of type 'NonEM' to runtime because it is not 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/explicit_materialization.mojo",
|
|
"id": "diagnostics/mojo-parser/explicit_materialization",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/explicit_materialization.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 98,
|
|
"kind": "warning",
|
|
"line": 98,
|
|
"message": "'MemoryOnlyPair' value is unused; assign to '_' to discard the result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 172,
|
|
"kind": "warning",
|
|
"line": 173,
|
|
"message": "'DirectInit' value is unused; assign to '_' to discard the result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 913,
|
|
"kind": "warning",
|
|
"line": 914,
|
|
"message": "'StringLiteral[\"other comment\"]' value is unused; assign to '_' to discard the result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1150,
|
|
"kind": "warning",
|
|
"line": 1151,
|
|
"message": "transfer from an owned value has no effect",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1153,
|
|
"kind": "warning",
|
|
"line": 1154,
|
|
"message": "transfer from an owned value has no effect",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1195,
|
|
"kind": "warning",
|
|
"line": 1195,
|
|
"message": "transfer from a value of trivial register type 'Int' has no effect and can be removed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1198,
|
|
"kind": "warning",
|
|
"line": 1199,
|
|
"message": "transfer from a value of trivial register type 'Int' has no effect and can be removed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1204,
|
|
"kind": "warning",
|
|
"line": 1204,
|
|
"message": "explicit call to '__deinit__' destroys a copy of the value; consider removing this call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1206,
|
|
"kind": "warning",
|
|
"line": 1206,
|
|
"message": "explicit call to '__deinit__' destroys a copy of the value; consider removing this call",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/expressions.mojo",
|
|
"id": "diagnostics/mojo-parser/expressions",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/expressions.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s | FileCheck %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "note",
|
|
"line": 18,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "invalid call to 'takes_pos_only_arg': missing required argument: 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "invalid call to 'takes_pos_only_arg': missing required argument: 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "note",
|
|
"line": 31,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 38,
|
|
"message": "invalid call to 'takes_kw_only_arg': missing required argument: 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "invalid call to 'takes_kw_only_arg': missing required argument: 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "note",
|
|
"line": 45,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "note",
|
|
"line": 50,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 54,
|
|
"kind": "note",
|
|
"line": 55,
|
|
"message": "declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "invalid call to 'takes_pos_or_kw_arg': unexpected keyword argument 'c'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "invalid call to 'takes_pos_or_kw_arg': missing required argument: 'j'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "invalid call to 'var_arg_func': unexpected keyword argument 'args'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 66,
|
|
"kind": "error",
|
|
"line": 67,
|
|
"message": "invalid call to 'pack_func': unexpected keyword argument 'args'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "invalid call to 'takes_pos_or_kw_arg': missing required argument: 'j'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "invalid call to 'takes_pos_or_kw_arg': unexpected keyword argument 'j'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 78,
|
|
"kind": "note",
|
|
"line": 79,
|
|
"message": "declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 84,
|
|
"kind": "error",
|
|
"line": 85,
|
|
"message": "unexpected keyword parameter 'c'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 86,
|
|
"kind": "error",
|
|
"line": 87,
|
|
"message": "unexpected keyword parameter 'd'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "unexpected keyword parameter 'Ts'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 92,
|
|
"kind": "note",
|
|
"line": 93,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 98,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "invalid call to 'takes_pos_only_param': unexpected keyword parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 101,
|
|
"kind": "error",
|
|
"line": 102,
|
|
"message": "invalid call to 'takes_pos_only_param': unexpected keyword parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 105,
|
|
"kind": "note",
|
|
"line": 106,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 111,
|
|
"kind": "error",
|
|
"line": 112,
|
|
"message": "invalid call to 'takes_kw_only_param': unexpected keyword parameter 'd'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 114,
|
|
"kind": "error",
|
|
"line": 115,
|
|
"message": "missing required keyword-only parameter: 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 118,
|
|
"kind": "note",
|
|
"line": 119,
|
|
"message": "declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 124,
|
|
"kind": "error",
|
|
"line": 125,
|
|
"message": "unexpected parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 128,
|
|
"kind": "note",
|
|
"line": 129,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 134,
|
|
"kind": "error",
|
|
"line": 135,
|
|
"message": "invalid call to 'takes_kw_only_args': missing required argument: 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 173,
|
|
"kind": "error",
|
|
"line": 174,
|
|
"message": "value of type 'MemExample' cannot be copied or moved into a non-default address space",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "error",
|
|
"line": 190,
|
|
"message": "non-implicitly trivially copyable value cannot be copied from a non-default address space",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 203,
|
|
"kind": "error",
|
|
"line": 204,
|
|
"message": "non-implicitly trivially copyable value cannot be copied from a non-default address space",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 210,
|
|
"kind": "note",
|
|
"line": 210,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 215,
|
|
"kind": "error",
|
|
"line": 216,
|
|
"message": "invalid call to 'take_inout': invalid use of mutating method on rvalue of type 'ParametricMutability'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 224,
|
|
"kind": "error",
|
|
"line": 226,
|
|
"message": "cannot use parametric function as a runtime closure",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 225,
|
|
"kind": "note",
|
|
"line": 226,
|
|
"message": "parameter 'mut' of type 'Bool' is not bound",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 260,
|
|
"kind": "error",
|
|
"line": 262,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'take_two_spans' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 261,
|
|
"kind": "note",
|
|
"line": 262,
|
|
"message": "'origin_of(spanlife)' memory accessed through reference embedded in value of type 'MyMutSpan[spanlife]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 287,
|
|
"kind": "note",
|
|
"line": 288,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 292,
|
|
"kind": "note",
|
|
"line": 293,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 298,
|
|
"kind": "error",
|
|
"line": 299,
|
|
"message": "cannot unpack a variadic pack into a call that requires a stricter mutability",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 305,
|
|
"kind": "error",
|
|
"line": 306,
|
|
"message": "cannot unpack a variadic pack into a call that requires a different ownership",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 310,
|
|
"kind": "error",
|
|
"line": 311,
|
|
"message": "cannot unpack a variadic pack into a call that requires a different ownership",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 317,
|
|
"kind": "error",
|
|
"line": 318,
|
|
"message": "cannot unpack a variadic pack into a call that requires a different ownership",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 326,
|
|
"kind": "error",
|
|
"line": 328,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'mutate_two' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 327,
|
|
"kind": "note",
|
|
"line": 328,
|
|
"message": "'origin_of(a)' value is passed through aliasing 'mut' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 333,
|
|
"kind": "error",
|
|
"line": 335,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'mutate_two' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 334,
|
|
"kind": "note",
|
|
"line": 335,
|
|
"message": "'origin_of(s.a)' value is passed through aliasing 'mut' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 337,
|
|
"kind": "error",
|
|
"line": 339,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'mutate_two' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 338,
|
|
"kind": "note",
|
|
"line": 339,
|
|
"message": "'origin_of(s)' value is passed through aliasing 'mut' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 341,
|
|
"kind": "error",
|
|
"line": 343,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'mutate_two' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 342,
|
|
"kind": "note",
|
|
"line": 343,
|
|
"message": "'origin_of(s.a)' value is passed through aliasing 'mut' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 345,
|
|
"kind": "error",
|
|
"line": 347,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'take_two_owned' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 346,
|
|
"kind": "note",
|
|
"line": 347,
|
|
"message": "'origin_of(s)' value is passed through aliasing 'var' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 349,
|
|
"kind": "error",
|
|
"line": 351,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed immutably to 'b' argument in 'mutate_one_read_one' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 350,
|
|
"kind": "note",
|
|
"line": 351,
|
|
"message": "'origin_of(s.a)' value is passed through aliasing 'imm' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 353,
|
|
"kind": "error",
|
|
"line": 355,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'mutate_two_AnyLifetime' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 354,
|
|
"kind": "note",
|
|
"line": 355,
|
|
"message": "'origin_of(a)' value is passed through aliasing 'ref' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 362,
|
|
"kind": "error",
|
|
"line": 364,
|
|
"message": "aliasing values passed mutably to 'values' argument and passed mutably to 'values' argument in 'mutate_variadic_any' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 363,
|
|
"kind": "note",
|
|
"line": 364,
|
|
"message": "'origin_of(a)' value is passed through aliasing 'mut' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 366,
|
|
"kind": "error",
|
|
"line": 368,
|
|
"message": "aliasing values passed mutably to 'values' argument and passed mutably to 'values' argument in 'mutate_variadic_any' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 367,
|
|
"kind": "note",
|
|
"line": 368,
|
|
"message": "'origin_of(a)' value is passed through aliasing 'mut' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 370,
|
|
"kind": "error",
|
|
"line": 372,
|
|
"message": "aliasing values passed mutably to 'values' argument and passed mutably to 'values' argument in 'mutate_variadic_any' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 371,
|
|
"kind": "note",
|
|
"line": 372,
|
|
"message": "'origin_of(s)' value is passed through aliasing 'mut' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 378,
|
|
"kind": "error",
|
|
"line": 380,
|
|
"message": "aliasing values passed mutably to 'strs' argument and passed mutably to 'strs' argument in 'mutate_pack' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 379,
|
|
"kind": "note",
|
|
"line": 380,
|
|
"message": "'origin_of(a)' value is passed through aliasing 'mut' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 382,
|
|
"kind": "error",
|
|
"line": 384,
|
|
"message": "aliasing values passed mutably to 'strs' argument and passed mutably to 'strs' argument in 'mutate_pack' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 383,
|
|
"kind": "note",
|
|
"line": 384,
|
|
"message": "'origin_of(a)' value is passed through aliasing 'mut' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 386,
|
|
"kind": "error",
|
|
"line": 388,
|
|
"message": "aliasing values passed mutably to 'strs' argument and passed mutably to 'strs' argument in 'mutate_pack' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 387,
|
|
"kind": "note",
|
|
"line": 388,
|
|
"message": "'origin_of(s)' value is passed through aliasing 'mut' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 402,
|
|
"kind": "note",
|
|
"line": 403,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 410,
|
|
"kind": "error",
|
|
"line": 411,
|
|
"message": "value passed to 'y' cannot be converted from 'StringLiteral[\"world\"]' to 'FloatLiteral[y.value]', it depends on an unresolved parameter 'y.value'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 435,
|
|
"kind": "error",
|
|
"line": 437,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'take_owned_and_mutate_rp' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 436,
|
|
"kind": "note",
|
|
"line": 437,
|
|
"message": "'origin_of(x)' value is passed through aliasing 'mut' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 445,
|
|
"kind": "error",
|
|
"line": 447,
|
|
"message": "aliasing values passed immutably to 'a' argument and passed mutably to 'b' argument in 'take_and_mutate_rp' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 446,
|
|
"kind": "note",
|
|
"line": 447,
|
|
"message": "'origin_of(x)' value is passed through aliasing 'mut' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 451,
|
|
"kind": "error",
|
|
"line": 453,
|
|
"message": "aliasing values passed immutably to 'size' argument and constructed as a result in 'Buf' initializer call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 452,
|
|
"kind": "note",
|
|
"line": 453,
|
|
"message": "introduce a temporary to avoid mutating the call result while accessing it through an argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 465,
|
|
"kind": "note",
|
|
"line": 466,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 470,
|
|
"kind": "note",
|
|
"line": 471,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 476,
|
|
"kind": "error",
|
|
"line": 477,
|
|
"message": "invalid call to 'my_print_variadic': an element of 'args' with type 'MyStruct' does not conform to trait 'MyWritable'; either prove the conformance with 'conforms_to', or add conformance",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 479,
|
|
"kind": "error",
|
|
"line": 480,
|
|
"message": "invalid call to 'my_print_single': value passed to 'value' cannot be converted from 'MyStruct' to 'T', argument type 'MyStruct' does not conform to trait 'MyWritable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 532,
|
|
"kind": "note",
|
|
"line": 533,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 538,
|
|
"kind": "note",
|
|
"line": 540,
|
|
"message": ".T of the first type is '__MLIRType[None]' but the second type is 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 539,
|
|
"kind": "error",
|
|
"line": 540,
|
|
"message": "invalid call to 'takeWith4': value passed to 'a' cannot be converted from 'StructWithFlexParam[vararg_example(Int(0), Int(1), Int(2), Int(3), Int(4), other=Int(5))]' to 'StructWithFlexParam[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 541,
|
|
"kind": "note",
|
|
"line": 543,
|
|
"message": ".T of the first type is '__MLIRType[None]' but the second type is 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 542,
|
|
"kind": "error",
|
|
"line": 543,
|
|
"message": "invalid call to 'takeWith4': value passed to 'a' cannot be converted from 'StructWithFlexParam[pack_example[Int, String](Int(0), String(\"foo\"), other=Int(5))]' to 'StructWithFlexParam[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 544,
|
|
"kind": "note",
|
|
"line": 546,
|
|
"message": ".T of the first type is '__MLIRType[None]' but the second type is 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 545,
|
|
"kind": "error",
|
|
"line": 546,
|
|
"message": "from 'StructWithFlexParam[generic_example(Int(0))]' to",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 547,
|
|
"kind": "note",
|
|
"line": 549,
|
|
"message": ".T of the first type is '__MLIRType[None]' but the second type is 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 548,
|
|
"kind": "error",
|
|
"line": 549,
|
|
"message": "invalid call to 'takeWith4': value passed to 'a' cannot be converted from 'StructWithFlexParam[vararg_example(other=Int(5))]' to 'StructWithFlexParam[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 556,
|
|
"kind": "note",
|
|
"line": 556,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 567,
|
|
"kind": "error",
|
|
"line": 569,
|
|
"message": "has 'def[input_addr: Int, output_shape: Int, output_addr: Int](DifferExample[output_shape, output_addr]) thin -> None' type, but value has type 'def differ_wrong[input_addr: Int, output_shape: Int, output_addr: Int](output: DifferExample[output_shape, input_addr]) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 568,
|
|
"kind": "note",
|
|
"line": 569,
|
|
"message": ".output.addr of the first value is 'output_addr' but the second value is 'input_addr'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 572,
|
|
"kind": "note",
|
|
"line": 573,
|
|
"message": "cannot be converted from 'StringLiteral[\"\"]' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 577,
|
|
"kind": "note",
|
|
"line": 578,
|
|
"message": "cannot be converted from 'StringLiteral[\"\"]' to 'IntLiteral",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 585,
|
|
"kind": "error",
|
|
"line": 586,
|
|
"message": "no matching function in call to 'call_error_location'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 598,
|
|
"kind": "error",
|
|
"line": 600,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed immutably to 'b' argument in 'nested_mutability_disabled2' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 599,
|
|
"kind": "note",
|
|
"line": 600,
|
|
"message": "'origin_of(s)' value is passed through aliasing 'imm' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 629,
|
|
"kind": "error",
|
|
"line": 631,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'mutate_two' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 630,
|
|
"kind": "note",
|
|
"line": 631,
|
|
"message": "'origin_of(s.b)' value is passed through aliasing 'mut' argument 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 634,
|
|
"kind": "error",
|
|
"line": 636,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'mutate_two' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 635,
|
|
"kind": "note",
|
|
"line": 636,
|
|
"message": "'origin_of(origin_of(s).subtree)' value is passed through aliasing 'mut' argument 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 641,
|
|
"kind": "error",
|
|
"line": 643,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'mutate_two' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 642,
|
|
"kind": "note",
|
|
"line": 643,
|
|
"message": "'origin_of(s.a)' value is passed through aliasing 'mut' argument 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 646,
|
|
"kind": "error",
|
|
"line": 648,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed immutably to 'b' argument in 'mutate_one_read_one' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 647,
|
|
"kind": "note",
|
|
"line": 648,
|
|
"message": "'origin_of(s.a)' value is passed through aliasing 'imm' argument 'b'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "invalid call to 'takes_pos_only_arg': missing required argument: 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "invalid call to 'takes_pos_only_arg': missing required argument: 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 38,
|
|
"message": "invalid call to 'takes_kw_only_arg': missing required argument: 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "invalid call to 'takes_kw_only_arg': missing required argument: 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "invalid call to 'takes_pos_or_kw_arg': unexpected keyword argument 'c'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "invalid call to 'takes_pos_or_kw_arg': missing required argument: 'j'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "invalid call to 'var_arg_func': unexpected keyword argument 'args'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 66,
|
|
"kind": "error",
|
|
"line": 67,
|
|
"message": "invalid call to 'pack_func': unexpected keyword argument 'args'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "invalid call to 'takes_pos_or_kw_arg': missing required argument: 'j'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "invalid call to 'takes_pos_or_kw_arg': unexpected keyword argument 'j'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 84,
|
|
"kind": "error",
|
|
"line": 85,
|
|
"message": "unexpected keyword parameter 'c'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 86,
|
|
"kind": "error",
|
|
"line": 87,
|
|
"message": "unexpected keyword parameter 'd'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "unexpected keyword parameter 'Ts'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 98,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "invalid call to 'takes_pos_only_param': unexpected keyword parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 101,
|
|
"kind": "error",
|
|
"line": 102,
|
|
"message": "invalid call to 'takes_pos_only_param': unexpected keyword parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 111,
|
|
"kind": "error",
|
|
"line": 112,
|
|
"message": "invalid call to 'takes_kw_only_param': unexpected keyword parameter 'd'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 114,
|
|
"kind": "error",
|
|
"line": 115,
|
|
"message": "missing required keyword-only parameter: 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 124,
|
|
"kind": "error",
|
|
"line": 125,
|
|
"message": "unexpected parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 134,
|
|
"kind": "error",
|
|
"line": 135,
|
|
"message": "invalid call to 'takes_kw_only_args': missing required argument: 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 173,
|
|
"kind": "error",
|
|
"line": 174,
|
|
"message": "value of type 'MemExample' cannot be copied or moved into a non-default address space",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "error",
|
|
"line": 190,
|
|
"message": "non-implicitly trivially copyable value cannot be copied from a non-default address space",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 203,
|
|
"kind": "error",
|
|
"line": 204,
|
|
"message": "non-implicitly trivially copyable value cannot be copied from a non-default address space",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 215,
|
|
"kind": "error",
|
|
"line": 216,
|
|
"message": "invalid call to 'take_inout': invalid use of mutating method on rvalue of type 'ParametricMutability'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 224,
|
|
"kind": "error",
|
|
"line": 226,
|
|
"message": "cannot use parametric function as a runtime closure",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 260,
|
|
"kind": "error",
|
|
"line": 262,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'take_two_spans' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 298,
|
|
"kind": "error",
|
|
"line": 299,
|
|
"message": "cannot unpack a variadic pack into a call that requires a stricter mutability",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 305,
|
|
"kind": "error",
|
|
"line": 306,
|
|
"message": "cannot unpack a variadic pack into a call that requires a different ownership",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 310,
|
|
"kind": "error",
|
|
"line": 311,
|
|
"message": "cannot unpack a variadic pack into a call that requires a different ownership",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 317,
|
|
"kind": "error",
|
|
"line": 318,
|
|
"message": "cannot unpack a variadic pack into a call that requires a different ownership",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 326,
|
|
"kind": "error",
|
|
"line": 328,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'mutate_two' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 333,
|
|
"kind": "error",
|
|
"line": 335,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'mutate_two' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 337,
|
|
"kind": "error",
|
|
"line": 339,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'mutate_two' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 341,
|
|
"kind": "error",
|
|
"line": 343,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'mutate_two' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 345,
|
|
"kind": "error",
|
|
"line": 347,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'take_two_owned' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 349,
|
|
"kind": "error",
|
|
"line": 351,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed immutably to 'b' argument in 'mutate_one_read_one' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 353,
|
|
"kind": "error",
|
|
"line": 355,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'mutate_two_AnyLifetime' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 362,
|
|
"kind": "error",
|
|
"line": 364,
|
|
"message": "aliasing values passed mutably to 'values' argument and passed mutably to 'values' argument in 'mutate_variadic_any' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 366,
|
|
"kind": "error",
|
|
"line": 368,
|
|
"message": "aliasing values passed mutably to 'values' argument and passed mutably to 'values' argument in 'mutate_variadic_any' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 370,
|
|
"kind": "error",
|
|
"line": 372,
|
|
"message": "aliasing values passed mutably to 'values' argument and passed mutably to 'values' argument in 'mutate_variadic_any' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 378,
|
|
"kind": "error",
|
|
"line": 380,
|
|
"message": "aliasing values passed mutably to 'strs' argument and passed mutably to 'strs' argument in 'mutate_pack' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 382,
|
|
"kind": "error",
|
|
"line": 384,
|
|
"message": "aliasing values passed mutably to 'strs' argument and passed mutably to 'strs' argument in 'mutate_pack' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 386,
|
|
"kind": "error",
|
|
"line": 388,
|
|
"message": "aliasing values passed mutably to 'strs' argument and passed mutably to 'strs' argument in 'mutate_pack' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 410,
|
|
"kind": "error",
|
|
"line": 411,
|
|
"message": "value passed to 'y' cannot be converted from 'StringLiteral[\"world\"]' to 'FloatLiteral[y.value]', it depends on an unresolved parameter 'y.value'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 435,
|
|
"kind": "error",
|
|
"line": 437,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'take_owned_and_mutate_rp' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 445,
|
|
"kind": "error",
|
|
"line": 447,
|
|
"message": "aliasing values passed immutably to 'a' argument and passed mutably to 'b' argument in 'take_and_mutate_rp' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 451,
|
|
"kind": "error",
|
|
"line": 453,
|
|
"message": "aliasing values passed immutably to 'size' argument and constructed as a result in 'Buf' initializer call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 476,
|
|
"kind": "error",
|
|
"line": 477,
|
|
"message": "invalid call to 'my_print_variadic': an element of 'args' with type 'MyStruct' does not conform to trait 'MyWritable'; either prove the conformance with 'conforms_to', or add conformance",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 479,
|
|
"kind": "error",
|
|
"line": 480,
|
|
"message": "invalid call to 'my_print_single': value passed to 'value' cannot be converted from 'MyStruct' to 'T', argument type 'MyStruct' does not conform to trait 'MyWritable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 539,
|
|
"kind": "error",
|
|
"line": 540,
|
|
"message": "invalid call to 'takeWith4': value passed to 'a' cannot be converted from 'StructWithFlexParam[vararg_example(Int(0), Int(1), Int(2), Int(3), Int(4), other=Int(5))]' to 'StructWithFlexParam[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 542,
|
|
"kind": "error",
|
|
"line": 543,
|
|
"message": "invalid call to 'takeWith4': value passed to 'a' cannot be converted from 'StructWithFlexParam[pack_example[Int, String](Int(0), String(\"foo\"), other=Int(5))]' to 'StructWithFlexParam[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 545,
|
|
"kind": "error",
|
|
"line": 546,
|
|
"message": "from 'StructWithFlexParam[generic_example(Int(0))]' to",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 548,
|
|
"kind": "error",
|
|
"line": 549,
|
|
"message": "invalid call to 'takeWith4': value passed to 'a' cannot be converted from 'StructWithFlexParam[vararg_example(other=Int(5))]' to 'StructWithFlexParam[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 567,
|
|
"kind": "error",
|
|
"line": 569,
|
|
"message": "has 'def[input_addr: Int, output_shape: Int, output_addr: Int](DifferExample[output_shape, output_addr]) thin -> None' type, but value has type 'def differ_wrong[input_addr: Int, output_shape: Int, output_addr: Int](output: DifferExample[output_shape, input_addr]) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 585,
|
|
"kind": "error",
|
|
"line": 586,
|
|
"message": "no matching function in call to 'call_error_location'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 598,
|
|
"kind": "error",
|
|
"line": 600,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed immutably to 'b' argument in 'nested_mutability_disabled2' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 629,
|
|
"kind": "error",
|
|
"line": 631,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'mutate_two' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 634,
|
|
"kind": "error",
|
|
"line": 636,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'mutate_two' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 641,
|
|
"kind": "error",
|
|
"line": 643,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed mutably to 'b' argument in 'mutate_two' call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 646,
|
|
"kind": "error",
|
|
"line": 648,
|
|
"message": "aliasing values passed mutably to 'a' argument and passed immutably to 'b' argument in 'mutate_one_read_one' call",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/exprs/call_emission_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/exprs/call_emission_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/exprs/call_emission_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "note",
|
|
"line": 31,
|
|
"message": "previously specified here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "keyword argument 'j' was already used; remove the duplicate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "positional argument must not follow a keyword argument; move it before or convert to a keyword argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "note",
|
|
"line": 49,
|
|
"message": "previously specified here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 50,
|
|
"kind": "error",
|
|
"line": 50,
|
|
"message": "keyword parameter 'j' was already used; remove the duplicate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 59,
|
|
"kind": "error",
|
|
"line": 60,
|
|
"message": "use of unknown declaration 'bogus'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 69,
|
|
"kind": "error",
|
|
"line": 70,
|
|
"message": "dynamic type values not permitted yet; try creating a 'comptime' instead of a 'var",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "dynamic type values not permitted yet; try creating a 'comptime' instead of a 'var",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "error",
|
|
"line": 84,
|
|
"message": "dynamic type values not permitted yet; try creating a 'comptime' instead of a 'var",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "dynamic type values not permitted yet",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 93,
|
|
"kind": "error",
|
|
"line": 94,
|
|
"message": "dynamic type values not permitted yet",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 102,
|
|
"kind": "error",
|
|
"line": 103,
|
|
"message": "use of unknown declaration 'takes_type'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 111,
|
|
"kind": "error",
|
|
"line": 112,
|
|
"message": "use of unknown declaration 'takes_type'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 117,
|
|
"kind": "note",
|
|
"line": 118,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 122,
|
|
"kind": "error",
|
|
"line": 123,
|
|
"message": "value passed to mutable argument 'v' must be mutable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 130,
|
|
"kind": "note",
|
|
"line": 131,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 133,
|
|
"kind": "error",
|
|
"line": 133,
|
|
"message": "invalid redefinition of 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 138,
|
|
"message": "'var' patterns are only valid on the left side of an assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 144,
|
|
"kind": "error",
|
|
"line": 146,
|
|
"message": "dynamic type values not permitted yet",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 145,
|
|
"kind": "error",
|
|
"line": 146,
|
|
"message": "implicit declaration of 'localvar' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 153,
|
|
"kind": "error",
|
|
"line": 153,
|
|
"message": "implicitly convert 'Int' value to '__mlir_type.index' in 'var' initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 155,
|
|
"kind": "error",
|
|
"line": 156,
|
|
"message": "cannot construct type '__mlir_type.index'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 158,
|
|
"kind": "error",
|
|
"line": 159,
|
|
"message": "cannot construct type 'Never'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 166,
|
|
"kind": "error",
|
|
"line": 167,
|
|
"message": "'__mlir_type.f64' does not implement the '__neg__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 169,
|
|
"kind": "note",
|
|
"line": 170,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 175,
|
|
"kind": "error",
|
|
"line": 176,
|
|
"message": "invalid call to 'some_fn_take_int': value passed to 'a' cannot be converted from 'def some_fn_ret_int() thin -> Int' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 178,
|
|
"kind": "note",
|
|
"line": 178,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 179,
|
|
"kind": "note",
|
|
"line": 179,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 181,
|
|
"kind": "error",
|
|
"line": 183,
|
|
"message": "cannot form a reference to overloaded declaration of 'overloaded_arg'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 182,
|
|
"kind": "note",
|
|
"line": 183,
|
|
"message": "add '()' to call the function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "error",
|
|
"line": 190,
|
|
"message": "def(Int) thin -> Int",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 191,
|
|
"kind": "error",
|
|
"line": 192,
|
|
"message": "async def() thin -> None",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 193,
|
|
"kind": "error",
|
|
"line": 194,
|
|
"message": "def[a: Int]() thin -> MemType",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 195,
|
|
"kind": "error",
|
|
"line": 196,
|
|
"message": "def[a: Int](var Int) thin -> MemType",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 197,
|
|
"kind": "error",
|
|
"line": 198,
|
|
"message": "def[a: Int](mut *Int) thin -> None",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 199,
|
|
"kind": "error",
|
|
"line": 200,
|
|
"message": "'def(*MemType) raises capturing thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 201,
|
|
"kind": "error",
|
|
"line": 202,
|
|
"message": "'def[*Ts: AnyType](var * *Ts) capturing thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 203,
|
|
"kind": "error",
|
|
"line": 204,
|
|
"message": "'def[*Ts: AnyType](var * *Ts) capturing thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 205,
|
|
"kind": "error",
|
|
"line": 206,
|
|
"message": "'def[T: TrivialRegisterPassable](mut *T) capturing thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 207,
|
|
"kind": "error",
|
|
"line": 208,
|
|
"message": "'def(var **args: Int) -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 210,
|
|
"kind": "error",
|
|
"line": 211,
|
|
"message": "'def(a1: Int, /, *, a2: Int) -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 212,
|
|
"kind": "error",
|
|
"line": 213,
|
|
"message": "'def(a1: Int, /, a2: Int) -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 216,
|
|
"kind": "error",
|
|
"line": 217,
|
|
"message": "'def passing_kinds_1(a1: Int, /, *, a2: Int) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 219,
|
|
"kind": "error",
|
|
"line": 220,
|
|
"message": "'def passing_kinds_2(a1: Int, /, a2: Int) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 222,
|
|
"kind": "error",
|
|
"line": 223,
|
|
"message": "'def passing_kinds_3(a1: Int, *, a2: Int) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 226,
|
|
"kind": "error",
|
|
"line": 227,
|
|
"message": "unnamed argument cannot follow named argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 228,
|
|
"kind": "error",
|
|
"line": 229,
|
|
"message": "unnamed argument cannot follow '/' or '*'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 230,
|
|
"kind": "error",
|
|
"line": 231,
|
|
"message": "unnamed argument cannot follow '/' or '*'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 232,
|
|
"kind": "error",
|
|
"line": 233,
|
|
"message": "unnamed argument must be positional-only",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 235,
|
|
"kind": "error",
|
|
"line": 236,
|
|
"message": "unnamed parameter cannot follow named parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 237,
|
|
"kind": "error",
|
|
"line": 238,
|
|
"message": "unnamed parameter cannot follow '/' or '*'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 239,
|
|
"kind": "error",
|
|
"line": 240,
|
|
"message": "unnamed parameter cannot follow '/' or '*'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 241,
|
|
"kind": "error",
|
|
"line": 242,
|
|
"message": "unnamed parameter must be positional-only",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 243,
|
|
"kind": "error",
|
|
"line": 245,
|
|
"message": "'def throws_int() raises Int thin -> None' value to 'def() raises String thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 244,
|
|
"kind": "note",
|
|
"line": 245,
|
|
"message": "error type of the first type is 'Int' but the second type is 'String'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 248,
|
|
"kind": "error",
|
|
"line": 249,
|
|
"message": "cannot implicitly convert 'def has_foo_kw(*, foo: Int) thin -> None' value to 'def(*, bar: Int) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 253,
|
|
"kind": "error",
|
|
"line": 253,
|
|
"message": "'def f1[a: Int, //, b: Int]() thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 255,
|
|
"kind": "error",
|
|
"line": 255,
|
|
"message": "'def f2[a: Int, *, b: Int]() thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 257,
|
|
"kind": "error",
|
|
"line": 257,
|
|
"message": "'def f3[a: Int, *b: Int]() thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 259,
|
|
"kind": "error",
|
|
"line": 259,
|
|
"message": "'def f4(*, a: Int) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 265,
|
|
"kind": "error",
|
|
"line": 265,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 268,
|
|
"kind": "error",
|
|
"line": 268,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 275,
|
|
"kind": "note",
|
|
"line": 276,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 277,
|
|
"kind": "note",
|
|
"line": 278,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 301,
|
|
"kind": "error",
|
|
"line": 302,
|
|
"message": "member method closures are not supported; add '()' to call 'mutatingMethod'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 306,
|
|
"kind": "error",
|
|
"line": 306,
|
|
"message": "invalid use of mutating method on rvalue of type 'LValuesRvalues'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 308,
|
|
"kind": "error",
|
|
"line": 309,
|
|
"message": "value passed to mutable argument 'x' must be mutable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 312,
|
|
"kind": "error",
|
|
"line": 312,
|
|
"message": "use of unknown declaration 'unknown2'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 319,
|
|
"kind": "error",
|
|
"line": 321,
|
|
"message": "value of type 'NonCopyable' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 320,
|
|
"kind": "note",
|
|
"line": 321,
|
|
"message": "consider transferring the value with '^'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 322,
|
|
"kind": "error",
|
|
"line": 324,
|
|
"message": "value of type 'NonCopyable' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 323,
|
|
"kind": "note",
|
|
"line": 324,
|
|
"message": "consider transferring the value with '^'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 328,
|
|
"kind": "error",
|
|
"line": 329,
|
|
"message": "cannot bind type 'MemoryOnlyPair' to trait 'TrivialRegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 331,
|
|
"kind": "note",
|
|
"line": 332,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 334,
|
|
"kind": "error",
|
|
"line": 335,
|
|
"message": "invalid call to 'badRef': l-value of type 'FloatDyn' cannot be converted to reference of type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 344,
|
|
"kind": "warning",
|
|
"line": 345,
|
|
"message": "'Int' value is unused; assign to '_' to discard the result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 348,
|
|
"kind": "warning",
|
|
"line": 349,
|
|
"message": "'Int' value is unused; assign to '_' to discard the result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 352,
|
|
"kind": "warning",
|
|
"line": 353,
|
|
"message": "'Int' value is unused; assign to '_' to discard the result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 355,
|
|
"kind": "warning",
|
|
"line": 356,
|
|
"message": "function is not called; add '()' after name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 372,
|
|
"kind": "warning",
|
|
"line": 373,
|
|
"message": "'Int' value is unused; assign to '_' to discard the result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 377,
|
|
"kind": "warning",
|
|
"line": 377,
|
|
"message": "'Int' value is unused; assign to '_' to discard the result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 378,
|
|
"kind": "warning",
|
|
"line": 378,
|
|
"message": "'Int' value is unused; assign to '_' to discard the result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 379,
|
|
"kind": "warning",
|
|
"line": 379,
|
|
"message": "'Int' value is unused; assign to '_' to discard the result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 380,
|
|
"kind": "warning",
|
|
"line": 380,
|
|
"message": "function is not called; add '()' after name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 382,
|
|
"kind": "error",
|
|
"line": 382,
|
|
"message": "cannot read from discard pattern '_'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 384,
|
|
"kind": "error",
|
|
"line": 385,
|
|
"message": "cannot read from discard pattern '_'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 387,
|
|
"kind": "error",
|
|
"line": 388,
|
|
"message": "cannot read from discard pattern '_'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 390,
|
|
"kind": "error",
|
|
"line": 390,
|
|
"message": "can't use starred expression here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 392,
|
|
"kind": "note",
|
|
"line": 393,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 398,
|
|
"kind": "error",
|
|
"line": 399,
|
|
"message": "cannot use a dynamic value in a parameter list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 407,
|
|
"kind": "error",
|
|
"line": 408,
|
|
"message": "cannot use a dynamic value in type parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 412,
|
|
"kind": "error",
|
|
"line": 412,
|
|
"message": "expression must be mutable for in-place operator destination",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 414,
|
|
"kind": "error",
|
|
"line": 414,
|
|
"message": "value of type 'Int' doesn't have a memory origin in 'ref' binding",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 423,
|
|
"kind": "error",
|
|
"line": 423,
|
|
"message": "use of unknown declaration 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 427,
|
|
"kind": "error",
|
|
"line": 428,
|
|
"message": "cannot implicitly convert 'Tuple[Int, Int, Int]' value to 'Tuple[Int, Int]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 429,
|
|
"kind": "error",
|
|
"line": 430,
|
|
"message": "cannot implicitly convert 'Tuple[Int]' value to 'Tuple[Int, Int]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 431,
|
|
"kind": "error",
|
|
"line": 432,
|
|
"message": "cannot implicitly convert 'Int' value to 'Tuple[Int, Int]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 439,
|
|
"kind": "error",
|
|
"line": 440,
|
|
"message": "cannot implicitly convert 'Tuple[Int, Int]' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 443,
|
|
"kind": "error",
|
|
"line": 444,
|
|
"message": "cannot unpack value of type 'Int' into 2 values",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 447,
|
|
"kind": "error",
|
|
"line": 448,
|
|
"message": "'Int' value has no attribute '__len__'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 453,
|
|
"kind": "error",
|
|
"line": 454,
|
|
"message": "expected '(' for argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 462,
|
|
"kind": "error",
|
|
"line": 463,
|
|
"message": "'Self' type may only be used inside a struct, trait, or extension",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 480,
|
|
"kind": "note",
|
|
"line": 482,
|
|
"message": "candidate not viable: unexpected argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 481,
|
|
"kind": "note",
|
|
"line": 482,
|
|
"message": "candidate not viable: missing required argument: 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 483,
|
|
"kind": "note",
|
|
"line": 485,
|
|
"message": "candidate not viable: unexpected keyword argument '__list_literal__'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 484,
|
|
"kind": "note",
|
|
"line": 485,
|
|
"message": "candidate not viable: missing required argument: 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 497,
|
|
"kind": "error",
|
|
"line": 498,
|
|
"message": "cannot emit an empty list without a contextual type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 504,
|
|
"kind": "error",
|
|
"line": 505,
|
|
"message": "no matching function in initialization",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 506,
|
|
"kind": "error",
|
|
"line": 507,
|
|
"message": "no matching function in initialization",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 509,
|
|
"kind": "error",
|
|
"line": 510,
|
|
"message": "list comprehension must have a single expression before 'for'; remove extra expressions",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 514,
|
|
"kind": "error",
|
|
"line": 515,
|
|
"message": "list comprehension must execute in runtime contexts; remove 'comptime' and move this into a function body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 521,
|
|
"kind": "error",
|
|
"line": 522,
|
|
"message": "cannot use keyword argument in set comprehension",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 525,
|
|
"kind": "error",
|
|
"line": 526,
|
|
"message": "cannot emit initializer list without a contextual type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 528,
|
|
"kind": "error",
|
|
"line": 529,
|
|
"message": "TODO: unpack emission in dict literal not supported yet",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 534,
|
|
"kind": "error",
|
|
"line": 535,
|
|
"message": "comprehension must have a single expression before 'for'; remove extra expressions",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 540,
|
|
"kind": "error",
|
|
"line": 541,
|
|
"message": "value of type 'Error' is not compatible with value of type 'Conv1'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 543,
|
|
"kind": "error",
|
|
"line": 546,
|
|
"message": "ambiguous merge: left value has type 'Conv1' and right value has type 'Conv2', and both convert to each other",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 544,
|
|
"kind": "note",
|
|
"line": 546,
|
|
"message": "you could disambiguate by casting the left value to 'Conv2'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 545,
|
|
"kind": "note",
|
|
"line": 546,
|
|
"message": "or cast the right value to 'Conv1'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 551,
|
|
"kind": "error",
|
|
"line": 552,
|
|
"message": "cannot implicitly convert 'None' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 555,
|
|
"kind": "error",
|
|
"line": 556,
|
|
"message": "expected ')' in parenthesized expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 560,
|
|
"kind": "error",
|
|
"line": 561,
|
|
"message": "'=' must be followed by an expression on the same line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 567,
|
|
"kind": "error",
|
|
"line": 567,
|
|
"message": "use of unknown declaration 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 573,
|
|
"kind": "warning",
|
|
"line": 573,
|
|
"message": "'Int' value is unused; assign to '_' to discard the result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 580,
|
|
"kind": "error",
|
|
"line": 581,
|
|
"message": "'Int' does not implement the '__is__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 585,
|
|
"kind": "error",
|
|
"line": 586,
|
|
"message": "'Int' does not implement the '__isnot__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 590,
|
|
"kind": "error",
|
|
"line": 591,
|
|
"message": "'Int' does not implement the '__contains__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 592,
|
|
"kind": "error",
|
|
"line": 593,
|
|
"message": "'Int' does not implement the '__contains__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 610,
|
|
"kind": "error",
|
|
"line": 611,
|
|
"message": "cannot implicitly convert 'ConvertFromInt' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 615,
|
|
"kind": "note",
|
|
"line": 616,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 619,
|
|
"kind": "note",
|
|
"line": 620,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 625,
|
|
"kind": "error",
|
|
"line": 626,
|
|
"message": "invalid call to '__getattr__': value passed to 'idx' cannot be converted from 'StringLiteral[\"attr\"]' to 'Int",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 639,
|
|
"kind": "error",
|
|
"line": 640,
|
|
"message": "cannot construct 'NoSelfCtor' with itself, you can remove the constructor call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 642,
|
|
"kind": "error",
|
|
"line": 643,
|
|
"message": "invalid initialization: unexpected argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 650,
|
|
"kind": "error",
|
|
"line": 651,
|
|
"message": "types are not subscriptable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 663,
|
|
"kind": "error",
|
|
"line": 664,
|
|
"message": "unparenthesized lambda arguments are not supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 668,
|
|
"kind": "error",
|
|
"line": 669,
|
|
"message": "unparenthesized lambda arguments are not supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 674,
|
|
"kind": "error",
|
|
"line": 675,
|
|
"message": "argument type must be specified",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 680,
|
|
"kind": "error",
|
|
"line": 681,
|
|
"message": "cannot implicitly convert 'IntLiteral[5]' value to 'None' in return value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 686,
|
|
"kind": "error",
|
|
"line": 687,
|
|
"message": "cannot implicitly convert 'Int' value to 'None' in return value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 694,
|
|
"kind": "error",
|
|
"line": 695,
|
|
"message": "Could not infer capture convention of the captured value b",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 702,
|
|
"kind": "error",
|
|
"line": 703,
|
|
"message": "Could not infer capture convention of the captured value z",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 708,
|
|
"kind": "note",
|
|
"line": 709,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 713,
|
|
"kind": "error",
|
|
"line": 714,
|
|
"message": "invalid use of mutating method on rvalue of type 'IntList'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 726,
|
|
"kind": "error",
|
|
"line": 727,
|
|
"message": "cannot use a capturing lambda in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 731,
|
|
"kind": "error",
|
|
"line": 732,
|
|
"message": "cannot use a capturing lambda in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 737,
|
|
"kind": "error",
|
|
"line": 738,
|
|
"message": "cannot use a capturing lambda in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 745,
|
|
"kind": "error",
|
|
"line": 746,
|
|
"message": "cannot use a capturing lambda in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 753,
|
|
"kind": "error",
|
|
"line": 754,
|
|
"message": "cannot use a capturing lambda in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 759,
|
|
"kind": "note",
|
|
"line": 760,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 764,
|
|
"kind": "error",
|
|
"line": 766,
|
|
"message": "'takesFnParam' parameter 'F' has 'def(x: Int) -> Int' type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 765,
|
|
"kind": "note",
|
|
"line": 766,
|
|
"message": "a thin function cannot bind to a closure trait",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 773,
|
|
"kind": "note",
|
|
"line": 774,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 778,
|
|
"kind": "error",
|
|
"line": 780,
|
|
"message": "'takesFnParam2' parameter 'F' has 'def(x: Int) -> Int' type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 779,
|
|
"kind": "note",
|
|
"line": 780,
|
|
"message": "a thin function cannot bind to a closure trait; use 'type_of(someIntFn)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 782,
|
|
"kind": "error",
|
|
"line": 783,
|
|
"message": "value to 'def(x: Int) -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 793,
|
|
"kind": "error",
|
|
"line": 794,
|
|
"message": "cannot use a capturing lambda in type parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 796,
|
|
"kind": "error",
|
|
"line": 797,
|
|
"message": "cannot use a capturing lambda in default parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 805,
|
|
"kind": "error",
|
|
"line": 806,
|
|
"message": "cannot implicitly convert",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 807,
|
|
"kind": "error",
|
|
"line": 808,
|
|
"message": "cannot implicitly convert",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 815,
|
|
"kind": "error",
|
|
"line": 816,
|
|
"message": "cannot implicitly convert",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 825,
|
|
"kind": "note",
|
|
"line": 826,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 832,
|
|
"kind": "error",
|
|
"line": 833,
|
|
"message": "chained comparison operator does not currently support memory-only return types",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 838,
|
|
"kind": "error",
|
|
"line": 839,
|
|
"message": "invalid call to '__le__': value passed to 'other' cannot be converted from 'Pointer[CopyAndInitMemType, origin_of(b)]' to 'CopyAndInitMemType'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 849,
|
|
"kind": "warning",
|
|
"line": 849,
|
|
"message": "transfer from an owned value has no effect and can be removed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 852,
|
|
"kind": "warning",
|
|
"line": 852,
|
|
"message": "transfer from an owned value has no effect and can be removed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 855,
|
|
"kind": "warning",
|
|
"line": 855,
|
|
"message": "transfer from a value of trivial register type 'Int' has no effect and can be removed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 859,
|
|
"kind": "warning",
|
|
"line": 859,
|
|
"message": "transfer from a value of trivial register type 'Int' has no effect and can be removed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 862,
|
|
"kind": "error",
|
|
"line": 863,
|
|
"message": "cannot transfer out of immutable reference",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 865,
|
|
"kind": "error",
|
|
"line": 866,
|
|
"message": "cannot transfer out of immutable reference",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 868,
|
|
"kind": "error",
|
|
"line": 869,
|
|
"message": "cannot transfer from a parameter expression; did you want to introduce a local 'var'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 872,
|
|
"kind": "error",
|
|
"line": 873,
|
|
"message": "expression does not designate a value with an origin",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 881,
|
|
"kind": "error",
|
|
"line": 882,
|
|
"message": "member method closures are not supported; add '()' to call 'overloaded'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 906,
|
|
"kind": "error",
|
|
"line": 907,
|
|
"message": "cannot use a dynamic value in 'ref' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 911,
|
|
"kind": "error",
|
|
"line": 912,
|
|
"message": "cannot implicitly convert 'T' value to 'Pointer[T, b.origin]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 914,
|
|
"kind": "error",
|
|
"line": 915,
|
|
"message": "cannot implicitly convert 'T' value to 'Pointer[T, MutUnsafeAnyOrigin]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 918,
|
|
"kind": "error",
|
|
"line": 920,
|
|
"message": "keyword parameter 'idx' was already used; remove the duplicate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 919,
|
|
"kind": "note",
|
|
"line": 920,
|
|
"message": "previously specified here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 924,
|
|
"kind": "note",
|
|
"line": 924,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 926,
|
|
"kind": "error",
|
|
"line": 927,
|
|
"message": "invalid call to '__add__': value passed to 'other' cannot be converted from 'Pointer[Addable, origin]' to 'Addable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 937,
|
|
"kind": "error",
|
|
"line": 938,
|
|
"message": "'ThingWithFields' value has no attribute 'field_abc'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 939,
|
|
"kind": "error",
|
|
"line": 940,
|
|
"message": "'__mlir_type.index' has no attributes",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 942,
|
|
"kind": "error",
|
|
"line": 943,
|
|
"message": "cannot implicitly convert 'ThingWithFields' value to 'Pointer[ThingWithFields, origin_of(a.field)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 948,
|
|
"kind": "note",
|
|
"line": 950,
|
|
"message": "remove the expression if the return slot is already initialized",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 949,
|
|
"kind": "error",
|
|
"line": 950,
|
|
"message": "'out' argument cannot be returned by name; remove the return statement entirely or change it to just 'return'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 955,
|
|
"kind": "note",
|
|
"line": 957,
|
|
"message": "remove the expression if the return slot is already initialized",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 956,
|
|
"kind": "error",
|
|
"line": 957,
|
|
"message": "'out' argument cannot be returned by name; remove the return statement entirely or change it to just 'return'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 960,
|
|
"kind": "error",
|
|
"line": 961,
|
|
"message": "function type missing required origin set parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 963,
|
|
"kind": "error",
|
|
"line": 965,
|
|
"message": "cannot use parametric function as a runtime closure",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 964,
|
|
"kind": "note",
|
|
"line": 965,
|
|
"message": "parameter 'p' of type 'Int' is not bound",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 967,
|
|
"kind": "error",
|
|
"line": 969,
|
|
"message": "'HasIntParamAlias' is not a concrete type, use '[]' to bind missing parameters",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 968,
|
|
"kind": "note",
|
|
"line": 969,
|
|
"message": "'HasIntParamAlias' is aka 'comptime[p: Int] HasIntParam[p]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 975,
|
|
"kind": "note",
|
|
"line": 976,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 977,
|
|
"kind": "error",
|
|
"line": 978,
|
|
"message": "invalid call to 'test_kw_only': value passed to 'arg' cannot be converted from 'HasKWOnlyParam[kwplz=a]' to 'HasKWOnlyParam[kwplz=Int(42)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 982,
|
|
"kind": "note",
|
|
"line": 983,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 984,
|
|
"kind": "error",
|
|
"line": 985,
|
|
"message": "invalid call to 'test_mixedkw_only': value passed to 'arg' cannot be converted from 'HasMultipleOnlyParam[y=a]' to 'HasMultipleOnlyParam[y=Int(42)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 990,
|
|
"kind": "note",
|
|
"line": 991,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 992,
|
|
"kind": "error",
|
|
"line": 993,
|
|
"message": "invalid call to 'test_dependent': value passed to 'arg' cannot be converted from 'HasDependent[a]' to 'HasDependent[Int(42)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 994,
|
|
"kind": "error",
|
|
"line": 996,
|
|
"message": "invalid call to 'test_dependent': value passed to 'arg2' cannot be converted from 'HasDependent[a]' to 'HasDependent[a, Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 995,
|
|
"kind": "note",
|
|
"line": 996,
|
|
"message": "types parameters include unfolded expression at parser time; try rebinding to a consistent type?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 999,
|
|
"kind": "note",
|
|
"line": 999,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1006,
|
|
"kind": "note",
|
|
"line": 1007,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1008,
|
|
"kind": "error",
|
|
"line": 1009,
|
|
"message": "invalid call to 'take_dep_args': value passed to 'b' cannot be converted from 'HasIntParam[(x.value * 4)]' to 'HasIntParam[(SIMD(x) * Int(4))]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1012,
|
|
"kind": "error",
|
|
"line": 1013,
|
|
"message": "cannot implicitly convert 'def __init__() thin -> HasIntParam[Int(1)]' value to 'def(x: HasIntParam[Int(1)]) thin -> None' in 'var' initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1015,
|
|
"kind": "error",
|
|
"line": 1016,
|
|
"message": "use of unknown declaration 'UndefinedStruct'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1021,
|
|
"kind": "error",
|
|
"line": 1022,
|
|
"message": "invalid call to '__init__': unexpected argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1026,
|
|
"kind": "error",
|
|
"line": 1027,
|
|
"message": "cannot return reference with incompatible origin: 'origin_of(c)' vs 'origin_of(ao, b)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1031,
|
|
"kind": "error",
|
|
"line": 1033,
|
|
"message": "value passed to 'x' cannot be converted from 'SomeNonTrivRegPassable' to ref 'SomeNonTrivRegPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1032,
|
|
"kind": "note",
|
|
"line": 1033,
|
|
"message": "operand origin 'origin_of(x)' doesn't match expected origin 'origin_of(o)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1040,
|
|
"kind": "note",
|
|
"line": 1041,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1043,
|
|
"kind": "error",
|
|
"line": 1045,
|
|
"message": "invalid call to 'direct3830': value passed to 'b' cannot be converted from 'SomeNonTrivRegPassable' to ref 'SomeNonTrivRegPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1044,
|
|
"kind": "note",
|
|
"line": 1045,
|
|
"message": "operand origin 'origin_of(anonymous*)' doesn't match expected origin 'origin_of(anonymous*)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1048,
|
|
"kind": "error",
|
|
"line": 1050,
|
|
"message": "invalid indirect call: value passed to 'x' cannot be converted from 'SomeNonTrivRegPassable' to ref 'SomeNonTrivRegPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1049,
|
|
"kind": "note",
|
|
"line": 1050,
|
|
"message": "operand origin 'origin_of(anonymous*)' doesn't match expected origin 'origin_of(o)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1053,
|
|
"kind": "error",
|
|
"line": 1055,
|
|
"message": "invalid indirect call: value passed to 'x' cannot be converted from 'Int' to ref 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1054,
|
|
"kind": "note",
|
|
"line": 1055,
|
|
"message": "operand origin 'origin_of(anonymous*)' doesn't match expected origin 'origin_of(o)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1059,
|
|
"kind": "note",
|
|
"line": 1059,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1062,
|
|
"kind": "error",
|
|
"line": 1064,
|
|
"message": "value passed to 'e' cannot be converted from 'Int' to ref 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1063,
|
|
"kind": "note",
|
|
"line": 1064,
|
|
"message": "operand origin 'origin_of(t.l)' doesn't match expected origin 'origin_of(self.l)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1075,
|
|
"kind": "error",
|
|
"line": 1078,
|
|
"message": "value of type 'MovableAndExplicitCopyable' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1076,
|
|
"kind": "note",
|
|
"line": 1078,
|
|
"message": "consider transferring the value with '^'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1077,
|
|
"kind": "note",
|
|
"line": 1078,
|
|
"message": "you can copy it explicitly with '.copy()'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1080,
|
|
"kind": "error",
|
|
"line": 1082,
|
|
"message": "value of type 'MovableOnly' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1081,
|
|
"kind": "note",
|
|
"line": 1082,
|
|
"message": "consider transferring the value with '^'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1085,
|
|
"kind": "error",
|
|
"line": 1087,
|
|
"message": "value of type 'MemType' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1086,
|
|
"kind": "note",
|
|
"line": 1087,
|
|
"message": "consider transferring the value with '^'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1089,
|
|
"kind": "error",
|
|
"line": 1090,
|
|
"message": "cannot transfer value into destination, because 'MemType' doesn't conform to 'Movable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1093,
|
|
"kind": "error",
|
|
"line": 1096,
|
|
"message": "value of type 'List[Int]' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1094,
|
|
"kind": "note",
|
|
"line": 1096,
|
|
"message": "consider transferring the value with '^'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1095,
|
|
"kind": "note",
|
|
"line": 1096,
|
|
"message": "you can copy it explicitly with '.copy()'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1118,
|
|
"kind": "error",
|
|
"line": 1120,
|
|
"message": "value of types 'TypeA' and 'TypeB' have '__merge_with__' methods that disagree on common type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1119,
|
|
"kind": "note",
|
|
"line": 1120,
|
|
"message": "one returns 'TypeB' and the other returns 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1122,
|
|
"kind": "error",
|
|
"line": 1124,
|
|
"message": "value of types 'TypeA' and 'TypeC' cannot be merged to type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1123,
|
|
"kind": "note",
|
|
"line": 1124,
|
|
"message": "'TypeC' does not implicitly convert to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1134,
|
|
"kind": "error",
|
|
"line": 1137,
|
|
"message": "aliasing values passed mutably to 'elements' argument and passed mutably to 'elements' argument in 'Array[Pointer[Int, origin_of(a, b)], Int(2)]' initializer call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1135,
|
|
"kind": "note",
|
|
"line": 1137,
|
|
"message": "'origin_of(a)' memory accessed through reference embedded in value of type 'Pointer[Int, origin_of(a, b)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1136,
|
|
"kind": "note",
|
|
"line": 1137,
|
|
"message": "'origin_of(b)' memory accessed through reference embedded in value of type 'Pointer[Int, origin_of(a, b)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1142,
|
|
"kind": "error",
|
|
"line": 1142,
|
|
"message": "use of unknown declaration 'Y'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1155,
|
|
"kind": "error",
|
|
"line": 1157,
|
|
"message": "cannot materialize compile-time value of type 'Pointer[UInt8, ComptimeOrigin]' to a runtime value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1156,
|
|
"kind": "note",
|
|
"line": 1157,
|
|
"message": "the type contains an origin referring to a compile-time value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1163,
|
|
"kind": "error",
|
|
"line": 1164,
|
|
"message": "cannot implicitly convert 'BoolParam[value]' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1172,
|
|
"kind": "error",
|
|
"line": 1173,
|
|
"message": "'a_struct' value has no attribute 'an_alias_that_does_not_exist'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1187,
|
|
"kind": "error",
|
|
"line": 1188,
|
|
"message": "Direct access of trait members is not supported.",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1190,
|
|
"kind": "error",
|
|
"line": 1191,
|
|
"message": "Direct access of trait members is not supported.",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1198,
|
|
"kind": "error",
|
|
"line": 1199,
|
|
"message": "use of unknown declaration '__type_of'; did you mean 'type_of'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1203,
|
|
"kind": "error",
|
|
"line": 1204,
|
|
"message": "use of unknown declaration '__origin_of'; did you mean 'origin_of'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1218,
|
|
"kind": "note",
|
|
"line": 1219,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1222,
|
|
"kind": "error",
|
|
"line": 1225,
|
|
"message": "invalid call to 'sugar_test1': value passed to 'x' cannot be converted from 'AnyStruct[HasIntParam[int_fn(Int(0))]]' to 'AnyStruct[HasIntParam[Int(1)]]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1223,
|
|
"kind": "note",
|
|
"line": 1225,
|
|
"message": ".p of the first value is 'int_fn(Int(0))' but the second value is 'Int(1)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1224,
|
|
"kind": "note",
|
|
"line": 1225,
|
|
"message": "types parameters include unfolded expression at parser time; try rebinding to a consistent type?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1230,
|
|
"kind": "error",
|
|
"line": 1232,
|
|
"message": "cannot implicitly convert 'IdealSIMD' value to 'SIMD[.int32, 4]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1231,
|
|
"kind": "note",
|
|
"line": 1232,
|
|
"message": "'IdealSIMD' is aka 'SIMD[.int32, Int((mul some_complex_calculation(), 4))]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1236,
|
|
"kind": "error",
|
|
"line": 1238,
|
|
"message": "cannot implicitly convert 'SIMD[.int32, (SIMDLength(Int((mul some_complex_calculation(), 4))) * 2)]' value to 'SIMD[.int32, 4]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1237,
|
|
"kind": "note",
|
|
"line": 1238,
|
|
"message": ".size of the first value is '(SIMDLength(Int((mul some_complex_calculation(), 4))) * 2)' but the second value is '4'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1240,
|
|
"kind": "error",
|
|
"line": 1242,
|
|
"message": "cannot implicitly convert 'IdealSIMD' value to 'SIMD[.int32, 4]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1241,
|
|
"kind": "note",
|
|
"line": 1242,
|
|
"message": "'IdealSIMD' is aka 'SIMD[.int32, Int((mul some_complex_calculation(), 4))]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1254,
|
|
"kind": "error",
|
|
"line": 1256,
|
|
"message": "cannot implicitly convert 'MemberAliasSugarCrash.ValueType' value to 'MemberAliasSugarCrash'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1255,
|
|
"kind": "note",
|
|
"line": 1256,
|
|
"message": "'MemberAliasSugarCrash.ValueType' is aka 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1267,
|
|
"kind": "error",
|
|
"line": 1268,
|
|
"message": "expression is already evaluated at compile time; remove 'comptime' keyword",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1270,
|
|
"kind": "error",
|
|
"line": 1272,
|
|
"message": "cannot materialize comptime value of type 'NotRuntimeMaterializable' to runtime because it is not 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1271,
|
|
"kind": "note",
|
|
"line": 1272,
|
|
"message": "use 'comptime' to evaluate the entire call at 'comptime' and materialize its result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1277,
|
|
"kind": "error",
|
|
"line": 1279,
|
|
"message": "cannot materialize comptime value of type 'NotRuntimeMaterializable' to runtime because it is not 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1278,
|
|
"kind": "note",
|
|
"line": 1279,
|
|
"message": "use 'comptime' to evaluate the entire call at 'comptime' and materialize its result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1281,
|
|
"kind": "error",
|
|
"line": 1282,
|
|
"message": "expected '(' after 'comptime'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1289,
|
|
"kind": "note",
|
|
"line": 1290,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1291,
|
|
"kind": "error",
|
|
"line": 1292,
|
|
"message": "'take_anytype' parameter 'T' has 'AnyType' type, but value has type '__generator_type[B: Int] AnyStruct[TwoParamsType[B, _]]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1295,
|
|
"kind": "error",
|
|
"line": 1296,
|
|
"message": "expected 'else' clause in ternary; add 'else' and the false branch",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1323,
|
|
"kind": "note",
|
|
"line": 1323,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1331,
|
|
"kind": "error",
|
|
"line": 1332,
|
|
"message": "cannot resolve inferred member without a contextual type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1358,
|
|
"kind": "error",
|
|
"line": 1359,
|
|
"message": "cannot implicitly convert 'Int' value to 'Color'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1361,
|
|
"kind": "error",
|
|
"line": 1363,
|
|
"message": "cannot implicitly convert 'Int' value to 'Color'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1362,
|
|
"kind": "error",
|
|
"line": 1363,
|
|
"message": "invalid call to 'takes_color': cannot resolve inferred attribute reference",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1366,
|
|
"kind": "error",
|
|
"line": 1367,
|
|
"message": "cannot implicitly convert 'SIMD[.float32, 3]' value to 'SIMD[.float32, 4]'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "keyword argument 'j' was already used; remove the duplicate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "positional argument must not follow a keyword argument; move it before or convert to a keyword argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 50,
|
|
"kind": "error",
|
|
"line": 50,
|
|
"message": "keyword parameter 'j' was already used; remove the duplicate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 59,
|
|
"kind": "error",
|
|
"line": 60,
|
|
"message": "use of unknown declaration 'bogus'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 69,
|
|
"kind": "error",
|
|
"line": 70,
|
|
"message": "dynamic type values not permitted yet; try creating a 'comptime' instead of a 'var",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "dynamic type values not permitted yet; try creating a 'comptime' instead of a 'var",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "error",
|
|
"line": 84,
|
|
"message": "dynamic type values not permitted yet; try creating a 'comptime' instead of a 'var",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "dynamic type values not permitted yet",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 93,
|
|
"kind": "error",
|
|
"line": 94,
|
|
"message": "dynamic type values not permitted yet",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 102,
|
|
"kind": "error",
|
|
"line": 103,
|
|
"message": "use of unknown declaration 'takes_type'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 111,
|
|
"kind": "error",
|
|
"line": 112,
|
|
"message": "use of unknown declaration 'takes_type'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 122,
|
|
"kind": "error",
|
|
"line": 123,
|
|
"message": "value passed to mutable argument 'v' must be mutable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 133,
|
|
"kind": "error",
|
|
"line": 133,
|
|
"message": "invalid redefinition of 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 138,
|
|
"message": "'var' patterns are only valid on the left side of an assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 144,
|
|
"kind": "error",
|
|
"line": 146,
|
|
"message": "dynamic type values not permitted yet",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 145,
|
|
"kind": "error",
|
|
"line": 146,
|
|
"message": "implicit declaration of 'localvar' is not allowed; add 'var' to declare a new name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 153,
|
|
"kind": "error",
|
|
"line": 153,
|
|
"message": "implicitly convert 'Int' value to '__mlir_type.index' in 'var' initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 155,
|
|
"kind": "error",
|
|
"line": 156,
|
|
"message": "cannot construct type '__mlir_type.index'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 158,
|
|
"kind": "error",
|
|
"line": 159,
|
|
"message": "cannot construct type 'Never'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 166,
|
|
"kind": "error",
|
|
"line": 167,
|
|
"message": "'__mlir_type.f64' does not implement the '__neg__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 175,
|
|
"kind": "error",
|
|
"line": 176,
|
|
"message": "invalid call to 'some_fn_take_int': value passed to 'a' cannot be converted from 'def some_fn_ret_int() thin -> Int' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 181,
|
|
"kind": "error",
|
|
"line": 183,
|
|
"message": "cannot form a reference to overloaded declaration of 'overloaded_arg'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "error",
|
|
"line": 190,
|
|
"message": "def(Int) thin -> Int",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 191,
|
|
"kind": "error",
|
|
"line": 192,
|
|
"message": "async def() thin -> None",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 193,
|
|
"kind": "error",
|
|
"line": 194,
|
|
"message": "def[a: Int]() thin -> MemType",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 195,
|
|
"kind": "error",
|
|
"line": 196,
|
|
"message": "def[a: Int](var Int) thin -> MemType",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 197,
|
|
"kind": "error",
|
|
"line": 198,
|
|
"message": "def[a: Int](mut *Int) thin -> None",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 199,
|
|
"kind": "error",
|
|
"line": 200,
|
|
"message": "'def(*MemType) raises capturing thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 201,
|
|
"kind": "error",
|
|
"line": 202,
|
|
"message": "'def[*Ts: AnyType](var * *Ts) capturing thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 203,
|
|
"kind": "error",
|
|
"line": 204,
|
|
"message": "'def[*Ts: AnyType](var * *Ts) capturing thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 205,
|
|
"kind": "error",
|
|
"line": 206,
|
|
"message": "'def[T: TrivialRegisterPassable](mut *T) capturing thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 207,
|
|
"kind": "error",
|
|
"line": 208,
|
|
"message": "'def(var **args: Int) -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 210,
|
|
"kind": "error",
|
|
"line": 211,
|
|
"message": "'def(a1: Int, /, *, a2: Int) -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 212,
|
|
"kind": "error",
|
|
"line": 213,
|
|
"message": "'def(a1: Int, /, a2: Int) -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 216,
|
|
"kind": "error",
|
|
"line": 217,
|
|
"message": "'def passing_kinds_1(a1: Int, /, *, a2: Int) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 219,
|
|
"kind": "error",
|
|
"line": 220,
|
|
"message": "'def passing_kinds_2(a1: Int, /, a2: Int) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 222,
|
|
"kind": "error",
|
|
"line": 223,
|
|
"message": "'def passing_kinds_3(a1: Int, *, a2: Int) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 226,
|
|
"kind": "error",
|
|
"line": 227,
|
|
"message": "unnamed argument cannot follow named argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 228,
|
|
"kind": "error",
|
|
"line": 229,
|
|
"message": "unnamed argument cannot follow '/' or '*'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 230,
|
|
"kind": "error",
|
|
"line": 231,
|
|
"message": "unnamed argument cannot follow '/' or '*'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 232,
|
|
"kind": "error",
|
|
"line": 233,
|
|
"message": "unnamed argument must be positional-only",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 235,
|
|
"kind": "error",
|
|
"line": 236,
|
|
"message": "unnamed parameter cannot follow named parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 237,
|
|
"kind": "error",
|
|
"line": 238,
|
|
"message": "unnamed parameter cannot follow '/' or '*'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 239,
|
|
"kind": "error",
|
|
"line": 240,
|
|
"message": "unnamed parameter cannot follow '/' or '*'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 241,
|
|
"kind": "error",
|
|
"line": 242,
|
|
"message": "unnamed parameter must be positional-only",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 243,
|
|
"kind": "error",
|
|
"line": 245,
|
|
"message": "'def throws_int() raises Int thin -> None' value to 'def() raises String thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 248,
|
|
"kind": "error",
|
|
"line": 249,
|
|
"message": "cannot implicitly convert 'def has_foo_kw(*, foo: Int) thin -> None' value to 'def(*, bar: Int) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 253,
|
|
"kind": "error",
|
|
"line": 253,
|
|
"message": "'def f1[a: Int, //, b: Int]() thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 255,
|
|
"kind": "error",
|
|
"line": 255,
|
|
"message": "'def f2[a: Int, *, b: Int]() thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 257,
|
|
"kind": "error",
|
|
"line": 257,
|
|
"message": "'def f3[a: Int, *b: Int]() thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 259,
|
|
"kind": "error",
|
|
"line": 259,
|
|
"message": "'def f4(*, a: Int) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 265,
|
|
"kind": "error",
|
|
"line": 265,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 268,
|
|
"kind": "error",
|
|
"line": 268,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 301,
|
|
"kind": "error",
|
|
"line": 302,
|
|
"message": "member method closures are not supported; add '()' to call 'mutatingMethod'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 306,
|
|
"kind": "error",
|
|
"line": 306,
|
|
"message": "invalid use of mutating method on rvalue of type 'LValuesRvalues'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 308,
|
|
"kind": "error",
|
|
"line": 309,
|
|
"message": "value passed to mutable argument 'x' must be mutable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 312,
|
|
"kind": "error",
|
|
"line": 312,
|
|
"message": "use of unknown declaration 'unknown2'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 319,
|
|
"kind": "error",
|
|
"line": 321,
|
|
"message": "value of type 'NonCopyable' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 322,
|
|
"kind": "error",
|
|
"line": 324,
|
|
"message": "value of type 'NonCopyable' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 328,
|
|
"kind": "error",
|
|
"line": 329,
|
|
"message": "cannot bind type 'MemoryOnlyPair' to trait 'TrivialRegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 334,
|
|
"kind": "error",
|
|
"line": 335,
|
|
"message": "invalid call to 'badRef': l-value of type 'FloatDyn' cannot be converted to reference of type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 382,
|
|
"kind": "error",
|
|
"line": 382,
|
|
"message": "cannot read from discard pattern '_'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 384,
|
|
"kind": "error",
|
|
"line": 385,
|
|
"message": "cannot read from discard pattern '_'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 387,
|
|
"kind": "error",
|
|
"line": 388,
|
|
"message": "cannot read from discard pattern '_'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 390,
|
|
"kind": "error",
|
|
"line": 390,
|
|
"message": "can't use starred expression here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 398,
|
|
"kind": "error",
|
|
"line": 399,
|
|
"message": "cannot use a dynamic value in a parameter list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 407,
|
|
"kind": "error",
|
|
"line": 408,
|
|
"message": "cannot use a dynamic value in type parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 412,
|
|
"kind": "error",
|
|
"line": 412,
|
|
"message": "expression must be mutable for in-place operator destination",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 414,
|
|
"kind": "error",
|
|
"line": 414,
|
|
"message": "value of type 'Int' doesn't have a memory origin in 'ref' binding",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 423,
|
|
"kind": "error",
|
|
"line": 423,
|
|
"message": "use of unknown declaration 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 427,
|
|
"kind": "error",
|
|
"line": 428,
|
|
"message": "cannot implicitly convert 'Tuple[Int, Int, Int]' value to 'Tuple[Int, Int]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 429,
|
|
"kind": "error",
|
|
"line": 430,
|
|
"message": "cannot implicitly convert 'Tuple[Int]' value to 'Tuple[Int, Int]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 431,
|
|
"kind": "error",
|
|
"line": 432,
|
|
"message": "cannot implicitly convert 'Int' value to 'Tuple[Int, Int]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 439,
|
|
"kind": "error",
|
|
"line": 440,
|
|
"message": "cannot implicitly convert 'Tuple[Int, Int]' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 443,
|
|
"kind": "error",
|
|
"line": 444,
|
|
"message": "cannot unpack value of type 'Int' into 2 values",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 447,
|
|
"kind": "error",
|
|
"line": 448,
|
|
"message": "'Int' value has no attribute '__len__'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 453,
|
|
"kind": "error",
|
|
"line": 454,
|
|
"message": "expected '(' for argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 462,
|
|
"kind": "error",
|
|
"line": 463,
|
|
"message": "'Self' type may only be used inside a struct, trait, or extension",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 497,
|
|
"kind": "error",
|
|
"line": 498,
|
|
"message": "cannot emit an empty list without a contextual type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 504,
|
|
"kind": "error",
|
|
"line": 505,
|
|
"message": "no matching function in initialization",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 506,
|
|
"kind": "error",
|
|
"line": 507,
|
|
"message": "no matching function in initialization",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 509,
|
|
"kind": "error",
|
|
"line": 510,
|
|
"message": "list comprehension must have a single expression before 'for'; remove extra expressions",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 514,
|
|
"kind": "error",
|
|
"line": 515,
|
|
"message": "list comprehension must execute in runtime contexts; remove 'comptime' and move this into a function body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 521,
|
|
"kind": "error",
|
|
"line": 522,
|
|
"message": "cannot use keyword argument in set comprehension",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 525,
|
|
"kind": "error",
|
|
"line": 526,
|
|
"message": "cannot emit initializer list without a contextual type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 528,
|
|
"kind": "error",
|
|
"line": 529,
|
|
"message": "TODO: unpack emission in dict literal not supported yet",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 534,
|
|
"kind": "error",
|
|
"line": 535,
|
|
"message": "comprehension must have a single expression before 'for'; remove extra expressions",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 540,
|
|
"kind": "error",
|
|
"line": 541,
|
|
"message": "value of type 'Error' is not compatible with value of type 'Conv1'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 543,
|
|
"kind": "error",
|
|
"line": 546,
|
|
"message": "ambiguous merge: left value has type 'Conv1' and right value has type 'Conv2', and both convert to each other",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 551,
|
|
"kind": "error",
|
|
"line": 552,
|
|
"message": "cannot implicitly convert 'None' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 555,
|
|
"kind": "error",
|
|
"line": 556,
|
|
"message": "expected ')' in parenthesized expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 560,
|
|
"kind": "error",
|
|
"line": 561,
|
|
"message": "'=' must be followed by an expression on the same line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 567,
|
|
"kind": "error",
|
|
"line": 567,
|
|
"message": "use of unknown declaration 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 580,
|
|
"kind": "error",
|
|
"line": 581,
|
|
"message": "'Int' does not implement the '__is__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 585,
|
|
"kind": "error",
|
|
"line": 586,
|
|
"message": "'Int' does not implement the '__isnot__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 590,
|
|
"kind": "error",
|
|
"line": 591,
|
|
"message": "'Int' does not implement the '__contains__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 592,
|
|
"kind": "error",
|
|
"line": 593,
|
|
"message": "'Int' does not implement the '__contains__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 610,
|
|
"kind": "error",
|
|
"line": 611,
|
|
"message": "cannot implicitly convert 'ConvertFromInt' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 625,
|
|
"kind": "error",
|
|
"line": 626,
|
|
"message": "invalid call to '__getattr__': value passed to 'idx' cannot be converted from 'StringLiteral[\"attr\"]' to 'Int",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 639,
|
|
"kind": "error",
|
|
"line": 640,
|
|
"message": "cannot construct 'NoSelfCtor' with itself, you can remove the constructor call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 642,
|
|
"kind": "error",
|
|
"line": 643,
|
|
"message": "invalid initialization: unexpected argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 650,
|
|
"kind": "error",
|
|
"line": 651,
|
|
"message": "types are not subscriptable",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 663,
|
|
"kind": "error",
|
|
"line": 664,
|
|
"message": "unparenthesized lambda arguments are not supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 668,
|
|
"kind": "error",
|
|
"line": 669,
|
|
"message": "unparenthesized lambda arguments are not supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 674,
|
|
"kind": "error",
|
|
"line": 675,
|
|
"message": "argument type must be specified",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 680,
|
|
"kind": "error",
|
|
"line": 681,
|
|
"message": "cannot implicitly convert 'IntLiteral[5]' value to 'None' in return value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 686,
|
|
"kind": "error",
|
|
"line": 687,
|
|
"message": "cannot implicitly convert 'Int' value to 'None' in return value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 694,
|
|
"kind": "error",
|
|
"line": 695,
|
|
"message": "Could not infer capture convention of the captured value b",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 702,
|
|
"kind": "error",
|
|
"line": 703,
|
|
"message": "Could not infer capture convention of the captured value z",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 713,
|
|
"kind": "error",
|
|
"line": 714,
|
|
"message": "invalid use of mutating method on rvalue of type 'IntList'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 726,
|
|
"kind": "error",
|
|
"line": 727,
|
|
"message": "cannot use a capturing lambda in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 731,
|
|
"kind": "error",
|
|
"line": 732,
|
|
"message": "cannot use a capturing lambda in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 737,
|
|
"kind": "error",
|
|
"line": 738,
|
|
"message": "cannot use a capturing lambda in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 745,
|
|
"kind": "error",
|
|
"line": 746,
|
|
"message": "cannot use a capturing lambda in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 753,
|
|
"kind": "error",
|
|
"line": 754,
|
|
"message": "cannot use a capturing lambda in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 764,
|
|
"kind": "error",
|
|
"line": 766,
|
|
"message": "'takesFnParam' parameter 'F' has 'def(x: Int) -> Int' type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 778,
|
|
"kind": "error",
|
|
"line": 780,
|
|
"message": "'takesFnParam2' parameter 'F' has 'def(x: Int) -> Int' type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 782,
|
|
"kind": "error",
|
|
"line": 783,
|
|
"message": "value to 'def(x: Int) -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 793,
|
|
"kind": "error",
|
|
"line": 794,
|
|
"message": "cannot use a capturing lambda in type parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 796,
|
|
"kind": "error",
|
|
"line": 797,
|
|
"message": "cannot use a capturing lambda in default parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 805,
|
|
"kind": "error",
|
|
"line": 806,
|
|
"message": "cannot implicitly convert",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 807,
|
|
"kind": "error",
|
|
"line": 808,
|
|
"message": "cannot implicitly convert",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 815,
|
|
"kind": "error",
|
|
"line": 816,
|
|
"message": "cannot implicitly convert",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 832,
|
|
"kind": "error",
|
|
"line": 833,
|
|
"message": "chained comparison operator does not currently support memory-only return types",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 838,
|
|
"kind": "error",
|
|
"line": 839,
|
|
"message": "invalid call to '__le__': value passed to 'other' cannot be converted from 'Pointer[CopyAndInitMemType, origin_of(b)]' to 'CopyAndInitMemType'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 862,
|
|
"kind": "error",
|
|
"line": 863,
|
|
"message": "cannot transfer out of immutable reference",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 865,
|
|
"kind": "error",
|
|
"line": 866,
|
|
"message": "cannot transfer out of immutable reference",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 868,
|
|
"kind": "error",
|
|
"line": 869,
|
|
"message": "cannot transfer from a parameter expression; did you want to introduce a local 'var'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 872,
|
|
"kind": "error",
|
|
"line": 873,
|
|
"message": "expression does not designate a value with an origin",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 881,
|
|
"kind": "error",
|
|
"line": 882,
|
|
"message": "member method closures are not supported; add '()' to call 'overloaded'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 906,
|
|
"kind": "error",
|
|
"line": 907,
|
|
"message": "cannot use a dynamic value in 'ref' argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 911,
|
|
"kind": "error",
|
|
"line": 912,
|
|
"message": "cannot implicitly convert 'T' value to 'Pointer[T, b.origin]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 914,
|
|
"kind": "error",
|
|
"line": 915,
|
|
"message": "cannot implicitly convert 'T' value to 'Pointer[T, MutUnsafeAnyOrigin]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 918,
|
|
"kind": "error",
|
|
"line": 920,
|
|
"message": "keyword parameter 'idx' was already used; remove the duplicate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 926,
|
|
"kind": "error",
|
|
"line": 927,
|
|
"message": "invalid call to '__add__': value passed to 'other' cannot be converted from 'Pointer[Addable, origin]' to 'Addable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 937,
|
|
"kind": "error",
|
|
"line": 938,
|
|
"message": "'ThingWithFields' value has no attribute 'field_abc'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 939,
|
|
"kind": "error",
|
|
"line": 940,
|
|
"message": "'__mlir_type.index' has no attributes",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 942,
|
|
"kind": "error",
|
|
"line": 943,
|
|
"message": "cannot implicitly convert 'ThingWithFields' value to 'Pointer[ThingWithFields, origin_of(a.field)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 949,
|
|
"kind": "error",
|
|
"line": 950,
|
|
"message": "'out' argument cannot be returned by name; remove the return statement entirely or change it to just 'return'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 956,
|
|
"kind": "error",
|
|
"line": 957,
|
|
"message": "'out' argument cannot be returned by name; remove the return statement entirely or change it to just 'return'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 960,
|
|
"kind": "error",
|
|
"line": 961,
|
|
"message": "function type missing required origin set parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 963,
|
|
"kind": "error",
|
|
"line": 965,
|
|
"message": "cannot use parametric function as a runtime closure",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 967,
|
|
"kind": "error",
|
|
"line": 969,
|
|
"message": "'HasIntParamAlias' is not a concrete type, use '[]' to bind missing parameters",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 977,
|
|
"kind": "error",
|
|
"line": 978,
|
|
"message": "invalid call to 'test_kw_only': value passed to 'arg' cannot be converted from 'HasKWOnlyParam[kwplz=a]' to 'HasKWOnlyParam[kwplz=Int(42)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 984,
|
|
"kind": "error",
|
|
"line": 985,
|
|
"message": "invalid call to 'test_mixedkw_only': value passed to 'arg' cannot be converted from 'HasMultipleOnlyParam[y=a]' to 'HasMultipleOnlyParam[y=Int(42)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 992,
|
|
"kind": "error",
|
|
"line": 993,
|
|
"message": "invalid call to 'test_dependent': value passed to 'arg' cannot be converted from 'HasDependent[a]' to 'HasDependent[Int(42)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 994,
|
|
"kind": "error",
|
|
"line": 996,
|
|
"message": "invalid call to 'test_dependent': value passed to 'arg2' cannot be converted from 'HasDependent[a]' to 'HasDependent[a, Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1008,
|
|
"kind": "error",
|
|
"line": 1009,
|
|
"message": "invalid call to 'take_dep_args': value passed to 'b' cannot be converted from 'HasIntParam[(x.value * 4)]' to 'HasIntParam[(SIMD(x) * Int(4))]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1012,
|
|
"kind": "error",
|
|
"line": 1013,
|
|
"message": "cannot implicitly convert 'def __init__() thin -> HasIntParam[Int(1)]' value to 'def(x: HasIntParam[Int(1)]) thin -> None' in 'var' initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1015,
|
|
"kind": "error",
|
|
"line": 1016,
|
|
"message": "use of unknown declaration 'UndefinedStruct'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1021,
|
|
"kind": "error",
|
|
"line": 1022,
|
|
"message": "invalid call to '__init__': unexpected argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1026,
|
|
"kind": "error",
|
|
"line": 1027,
|
|
"message": "cannot return reference with incompatible origin: 'origin_of(c)' vs 'origin_of(ao, b)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1031,
|
|
"kind": "error",
|
|
"line": 1033,
|
|
"message": "value passed to 'x' cannot be converted from 'SomeNonTrivRegPassable' to ref 'SomeNonTrivRegPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1043,
|
|
"kind": "error",
|
|
"line": 1045,
|
|
"message": "invalid call to 'direct3830': value passed to 'b' cannot be converted from 'SomeNonTrivRegPassable' to ref 'SomeNonTrivRegPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1048,
|
|
"kind": "error",
|
|
"line": 1050,
|
|
"message": "invalid indirect call: value passed to 'x' cannot be converted from 'SomeNonTrivRegPassable' to ref 'SomeNonTrivRegPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1053,
|
|
"kind": "error",
|
|
"line": 1055,
|
|
"message": "invalid indirect call: value passed to 'x' cannot be converted from 'Int' to ref 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1062,
|
|
"kind": "error",
|
|
"line": 1064,
|
|
"message": "value passed to 'e' cannot be converted from 'Int' to ref 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1075,
|
|
"kind": "error",
|
|
"line": 1078,
|
|
"message": "value of type 'MovableAndExplicitCopyable' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1080,
|
|
"kind": "error",
|
|
"line": 1082,
|
|
"message": "value of type 'MovableOnly' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1085,
|
|
"kind": "error",
|
|
"line": 1087,
|
|
"message": "value of type 'MemType' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1089,
|
|
"kind": "error",
|
|
"line": 1090,
|
|
"message": "cannot transfer value into destination, because 'MemType' doesn't conform to 'Movable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1093,
|
|
"kind": "error",
|
|
"line": 1096,
|
|
"message": "value of type 'List[Int]' cannot be implicitly copied, it does not conform to 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1118,
|
|
"kind": "error",
|
|
"line": 1120,
|
|
"message": "value of types 'TypeA' and 'TypeB' have '__merge_with__' methods that disagree on common type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1122,
|
|
"kind": "error",
|
|
"line": 1124,
|
|
"message": "value of types 'TypeA' and 'TypeC' cannot be merged to type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1134,
|
|
"kind": "error",
|
|
"line": 1137,
|
|
"message": "aliasing values passed mutably to 'elements' argument and passed mutably to 'elements' argument in 'Array[Pointer[Int, origin_of(a, b)], Int(2)]' initializer call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1142,
|
|
"kind": "error",
|
|
"line": 1142,
|
|
"message": "use of unknown declaration 'Y'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1155,
|
|
"kind": "error",
|
|
"line": 1157,
|
|
"message": "cannot materialize compile-time value of type 'Pointer[UInt8, ComptimeOrigin]' to a runtime value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1163,
|
|
"kind": "error",
|
|
"line": 1164,
|
|
"message": "cannot implicitly convert 'BoolParam[value]' value to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1172,
|
|
"kind": "error",
|
|
"line": 1173,
|
|
"message": "'a_struct' value has no attribute 'an_alias_that_does_not_exist'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1187,
|
|
"kind": "error",
|
|
"line": 1188,
|
|
"message": "Direct access of trait members is not supported.",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1190,
|
|
"kind": "error",
|
|
"line": 1191,
|
|
"message": "Direct access of trait members is not supported.",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1198,
|
|
"kind": "error",
|
|
"line": 1199,
|
|
"message": "use of unknown declaration '__type_of'; did you mean 'type_of'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1203,
|
|
"kind": "error",
|
|
"line": 1204,
|
|
"message": "use of unknown declaration '__origin_of'; did you mean 'origin_of'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1222,
|
|
"kind": "error",
|
|
"line": 1225,
|
|
"message": "invalid call to 'sugar_test1': value passed to 'x' cannot be converted from 'AnyStruct[HasIntParam[int_fn(Int(0))]]' to 'AnyStruct[HasIntParam[Int(1)]]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1230,
|
|
"kind": "error",
|
|
"line": 1232,
|
|
"message": "cannot implicitly convert 'IdealSIMD' value to 'SIMD[.int32, 4]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1236,
|
|
"kind": "error",
|
|
"line": 1238,
|
|
"message": "cannot implicitly convert 'SIMD[.int32, (SIMDLength(Int((mul some_complex_calculation(), 4))) * 2)]' value to 'SIMD[.int32, 4]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1240,
|
|
"kind": "error",
|
|
"line": 1242,
|
|
"message": "cannot implicitly convert 'IdealSIMD' value to 'SIMD[.int32, 4]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1254,
|
|
"kind": "error",
|
|
"line": 1256,
|
|
"message": "cannot implicitly convert 'MemberAliasSugarCrash.ValueType' value to 'MemberAliasSugarCrash'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1267,
|
|
"kind": "error",
|
|
"line": 1268,
|
|
"message": "expression is already evaluated at compile time; remove 'comptime' keyword",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1270,
|
|
"kind": "error",
|
|
"line": 1272,
|
|
"message": "cannot materialize comptime value of type 'NotRuntimeMaterializable' to runtime because it is not 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1277,
|
|
"kind": "error",
|
|
"line": 1279,
|
|
"message": "cannot materialize comptime value of type 'NotRuntimeMaterializable' to runtime because it is not 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1281,
|
|
"kind": "error",
|
|
"line": 1282,
|
|
"message": "expected '(' after 'comptime'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1291,
|
|
"kind": "error",
|
|
"line": 1292,
|
|
"message": "'take_anytype' parameter 'T' has 'AnyType' type, but value has type '__generator_type[B: Int] AnyStruct[TwoParamsType[B, _]]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1295,
|
|
"kind": "error",
|
|
"line": 1296,
|
|
"message": "expected 'else' clause in ternary; add 'else' and the false branch",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1331,
|
|
"kind": "error",
|
|
"line": 1332,
|
|
"message": "cannot resolve inferred member without a contextual type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1358,
|
|
"kind": "error",
|
|
"line": 1359,
|
|
"message": "cannot implicitly convert 'Int' value to 'Color'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1361,
|
|
"kind": "error",
|
|
"line": 1363,
|
|
"message": "cannot implicitly convert 'Int' value to 'Color'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1362,
|
|
"kind": "error",
|
|
"line": 1363,
|
|
"message": "invalid call to 'takes_color': cannot resolve inferred attribute reference",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1366,
|
|
"kind": "error",
|
|
"line": 1367,
|
|
"message": "cannot implicitly convert 'SIMD[.float32, 3]' value to 'SIMD[.float32, 4]'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/exprs/expressions_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/exprs/expressions_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/exprs/expressions_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 103,
|
|
"kind": "warning",
|
|
"line": 104,
|
|
"message": "'var' pattern didn't declare a new variable, it can be removed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 308,
|
|
"kind": "warning",
|
|
"line": 309,
|
|
"message": "'Bool' value is unused; assign to '_' to discard the result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 317,
|
|
"kind": "warning",
|
|
"line": 318,
|
|
"message": "'Bool' value is unused; assign to '_' to discard the result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 409,
|
|
"kind": "warning",
|
|
"line": 410,
|
|
"message": "unreachable code on right side of 'False and ...'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/exprs/exprs_misc.mojo",
|
|
"id": "diagnostics/mojo-parser/exprs/exprs_misc",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/exprs/exprs_misc.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics | FileCheck %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 18,
|
|
"kind": "note",
|
|
"line": 19,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "invalid call to '__getitem__': value passed to 'x' cannot be converted from 'String' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 28,
|
|
"message": "invalid call to '__getitem__': unexpected argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "__setitem__ must take at least one argument for the value to set",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "note",
|
|
"line": 45,
|
|
"message": "used in an expression here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "invalid call to '__getitem__': value passed to 'x' cannot be converted from 'String' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 28,
|
|
"message": "invalid call to '__getitem__': unexpected argument",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "__setitem__ must take at least one argument for the value to set",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/exprs/getitem_setitem_emission_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/exprs/getitem_setitem_emission_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/exprs/getitem_setitem_emission_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "cannot use a dynamic value in 'comptime if' condition",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "cannot use a dynamic value in comptime initializer",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "cannot use a dynamic value in 'comptime if' condition",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "cannot use a dynamic value in comptime initializer",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/exprs/is_run_in_comptime_interpreter_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/exprs/is_run_in_comptime_interpreter_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/exprs/is_run_in_comptime_interpreter_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s --verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "invalid escape sequence",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 38,
|
|
"message": "\\u requires exactly four hex digits",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 47,
|
|
"message": "\\U requires exactly eight hex digits",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "error",
|
|
"line": 56,
|
|
"message": "value must not exceed U+10FFFF",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "unicode escape sequences do not support surrogate code points (U+D800 to U+DFFF); use '\\U' with the full code point (not a UTF-16 surrogate pair)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 73,
|
|
"kind": "error",
|
|
"line": 74,
|
|
"message": "invalid escape sequence",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "invalid escape sequence",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 38,
|
|
"message": "\\u requires exactly four hex digits",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 47,
|
|
"message": "\\U requires exactly eight hex digits",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "error",
|
|
"line": 56,
|
|
"message": "value must not exceed U+10FFFF",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "unicode escape sequences do not support surrogate code points (U+D800 to U+DFFF); use '\\U' with the full code point (not a UTF-16 surrogate pair)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 73,
|
|
"kind": "error",
|
|
"line": 74,
|
|
"message": "invalid escape sequence",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/exprs/string_literal_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/exprs/string_literal_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/exprs/string_literal_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics -split-input-file %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "expected a type, found a tuple value; use 'Tuple[...]' to write a tuple type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 28,
|
|
"message": "expected a type, found a tuple value; use 'Tuple[...]' to write a tuple type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 35,
|
|
"message": "expected a type, found a tuple value; use 'Tuple[...]' to write a tuple type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 40,
|
|
"message": "expected a type, found a tuple value; use 'Tuple[...]' to write a tuple type",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "expected a type, found a tuple value; use 'Tuple[...]' to write a tuple type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 28,
|
|
"message": "expected a type, found a tuple value; use 'Tuple[...]' to write a tuple type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 35,
|
|
"message": "expected a type, found a tuple value; use 'Tuple[...]' to write a tuple type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 40,
|
|
"message": "expected a type, found a tuple value; use 'Tuple[...]' to write a tuple type",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/exprs/tuple_type_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/exprs/tuple_type_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/exprs/tuple_type_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "note",
|
|
"line": 27,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "note",
|
|
"line": 32,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 40,
|
|
"message": "'take_instance_param' parameter 'a' has 'Foo' type, but value has type 'AnyStruct[Foo]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "invalid call to 'takes_instance_arg': value passed to 'a' cannot be converted from type value 'Foo' to an instance of 'Foo'; did you mean to instantiate 'Foo'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "cannot implicitly convert 'Foo' type as a value to an instance of 'Foo'; did you mean to instantiate 'Foo'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "cannot implicitly convert 'VariadicPack[False, Ts]' value to 'MadeFromPack[Ts]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "cannot implicitly convert 'def __init__(arg: Int) thin -> Constructible' value to 'def() thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 82,
|
|
"kind": "note",
|
|
"line": 84,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "note",
|
|
"line": 84,
|
|
"message": "def __init__(out self, var a: ConvertibleFromInt, b: Int) # note - generated function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "note",
|
|
"line": 89,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 101,
|
|
"kind": "note",
|
|
"line": 102,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 106,
|
|
"kind": "note",
|
|
"line": 107,
|
|
"message": "candidate declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 112,
|
|
"kind": "error",
|
|
"line": 113,
|
|
"message": "ambiguous call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 115,
|
|
"kind": "error",
|
|
"line": 116,
|
|
"message": "ambiguous call to '__init__', each candidate requires 1 implicit conversion",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 132,
|
|
"kind": "error",
|
|
"line": 133,
|
|
"message": "cannot implicitly convert 'MySIMD[Int(0)]' value to 'MySIMD[Int(1)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "invalid call to 'infer_rp_trivial': value passed to 'val' cannot be converted from 'RP_NotTrivial' to 'T', argument type 'RP_NotTrivial' does not conform to trait 'TrivialRegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 141,
|
|
"kind": "error",
|
|
"line": 142,
|
|
"message": "invalid call to 'infer_rp_trivial': value passed to 'val' cannot be converted from 'Foo' to 'T', argument type 'Foo' does not conform to trait 'TrivialRegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 145,
|
|
"kind": "note",
|
|
"line": 146,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 166,
|
|
"kind": "error",
|
|
"line": 167,
|
|
"message": "cannot implicitly convert 'def fn_raises() raises thin -> None' value to 'def() thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 169,
|
|
"kind": "error",
|
|
"line": 171,
|
|
"message": "cannot implicitly convert 'def fn_raises() raises thin -> None' value to 'def() raises Int thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 170,
|
|
"kind": "note",
|
|
"line": 171,
|
|
"message": "error type of the first type is 'Error' but the second type is 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 173,
|
|
"kind": "error",
|
|
"line": 176,
|
|
"message": "cannot implicitly convert 'def fn_raises_bool(arg: Int) raises Bool thin -> None' value to 'def(*args: *TypeList[Int]()) raises Int thin -> None' in 'var' initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 181,
|
|
"kind": "error",
|
|
"line": 184,
|
|
"message": "cannot implicitly convert 'def fn_raises_int(arg: Int) raises Int thin -> None' value to 'def(*args: *TypeList[Int]()) raises ImplicitFromInt thin -> None' in 'var' initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 195,
|
|
"kind": "error",
|
|
"line": 196,
|
|
"message": "cannot return reference with incompatible origin: 'origin_of(x)' vs 'origin_of(origin_of(p).subtree)'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 40,
|
|
"message": "'take_instance_param' parameter 'a' has 'Foo' type, but value has type 'AnyStruct[Foo]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "invalid call to 'takes_instance_arg': value passed to 'a' cannot be converted from type value 'Foo' to an instance of 'Foo'; did you mean to instantiate 'Foo'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "cannot implicitly convert 'Foo' type as a value to an instance of 'Foo'; did you mean to instantiate 'Foo'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "cannot implicitly convert 'VariadicPack[False, Ts]' value to 'MadeFromPack[Ts]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "cannot implicitly convert 'def __init__(arg: Int) thin -> Constructible' value to 'def() thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 112,
|
|
"kind": "error",
|
|
"line": 113,
|
|
"message": "ambiguous call",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 115,
|
|
"kind": "error",
|
|
"line": 116,
|
|
"message": "ambiguous call to '__init__', each candidate requires 1 implicit conversion",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 132,
|
|
"kind": "error",
|
|
"line": 133,
|
|
"message": "cannot implicitly convert 'MySIMD[Int(0)]' value to 'MySIMD[Int(1)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "invalid call to 'infer_rp_trivial': value passed to 'val' cannot be converted from 'RP_NotTrivial' to 'T', argument type 'RP_NotTrivial' does not conform to trait 'TrivialRegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 141,
|
|
"kind": "error",
|
|
"line": 142,
|
|
"message": "invalid call to 'infer_rp_trivial': value passed to 'val' cannot be converted from 'Foo' to 'T', argument type 'Foo' does not conform to trait 'TrivialRegisterPassable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 166,
|
|
"kind": "error",
|
|
"line": 167,
|
|
"message": "cannot implicitly convert 'def fn_raises() raises thin -> None' value to 'def() thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 169,
|
|
"kind": "error",
|
|
"line": 171,
|
|
"message": "cannot implicitly convert 'def fn_raises() raises thin -> None' value to 'def() raises Int thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 173,
|
|
"kind": "error",
|
|
"line": 176,
|
|
"message": "cannot implicitly convert 'def fn_raises_bool(arg: Int) raises Bool thin -> None' value to 'def(*args: *TypeList[Int]()) raises Int thin -> None' in 'var' initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 181,
|
|
"kind": "error",
|
|
"line": 184,
|
|
"message": "cannot implicitly convert 'def fn_raises_int(arg: Int) raises Int thin -> None' value to 'def(*args: *TypeList[Int]()) raises ImplicitFromInt thin -> None' in 'var' initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 195,
|
|
"kind": "error",
|
|
"line": 196,
|
|
"message": "cannot return reference with incompatible origin: 'origin_of(x)' vs 'origin_of(origin_of(p).subtree)'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/exprs/type_conversion_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/exprs/type_conversion_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/exprs/type_conversion_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "cannot implicitly convert 'def identity(x: Int) thin -> Int' value to 'def(Int) -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "cannot implicitly convert 'def mut_ship_function(mut x: MemType) thin -> None' value to 'def(MemType) thin -> None' in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "note",
|
|
"line": 49,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "converted from 'def device_func(i: Int) thin -> None' to 'def(x: Int, y: Int, *args: *ArgTypes) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 82,
|
|
"kind": "note",
|
|
"line": 83,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 96,
|
|
"kind": "error",
|
|
"line": 97,
|
|
"message": "converted from 'def device_func(i: ZInt, j: ZInt) thin -> None' to 'def(*args: *ArgTypes) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 109,
|
|
"kind": "note",
|
|
"line": 110,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 124,
|
|
"kind": "error",
|
|
"line": 125,
|
|
"message": "invalid call to 'call': value passed to 'args' cannot be converted from 'StringLiteral[\"hello\"]' to 'Bool'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 148,
|
|
"kind": "note",
|
|
"line": 149,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 158,
|
|
"kind": "error",
|
|
"line": 159,
|
|
"message": "converted from 'def device_func_unusedT[T: AnyType](a: Int, b: Bool) thin -> Int' to 'def(*args: *ArgTypes) thin -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 164,
|
|
"kind": "error",
|
|
"line": 165,
|
|
"message": "converted from 'def device_func_usedT[T: AnyType](a: T, b: Bool) thin -> Int' to 'def(*args: *ArgTypes) thin -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 177,
|
|
"kind": "note",
|
|
"line": 178,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 192,
|
|
"kind": "error",
|
|
"line": 193,
|
|
"message": "invalid call to 'call': value passed to 'args' cannot be converted from 'StringLiteral[\"hello\"]' to 'Bool'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 206,
|
|
"kind": "note",
|
|
"line": 207,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 216,
|
|
"kind": "error",
|
|
"line": 217,
|
|
"message": "converted from 'def device_func(a: Int, b: Bool) raises thin -> Int' to 'def(*args: *ArgTypes) thin -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 275,
|
|
"kind": "note",
|
|
"line": 276,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 310,
|
|
"kind": "error",
|
|
"line": 311,
|
|
"message": "invalid call to 'call': value passed to 'args' cannot be converted from 'ZBool' to 'ZPointer[Int]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 321,
|
|
"kind": "note",
|
|
"line": 322,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 331,
|
|
"kind": "error",
|
|
"line": 332,
|
|
"message": "cannot be converted from 'def plain(x: Int) thin -> Int' to 'def(Int) abi(\"C\") thin -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 342,
|
|
"kind": "note",
|
|
"line": 343,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 348,
|
|
"kind": "error",
|
|
"line": 349,
|
|
"message": "cannot be converted from 'def(Int) abi(\"C\") thin -> Int' to 'def(Int) thin -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 360,
|
|
"kind": "note",
|
|
"line": 361,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 365,
|
|
"kind": "error",
|
|
"line": 366,
|
|
"message": "redefinition of function 'redef_abi_mixed' with identical signature",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 380,
|
|
"kind": "error",
|
|
"line": 381,
|
|
"message": "a abi(\"C\") function cannot capture variables",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 395,
|
|
"kind": "error",
|
|
"line": 396,
|
|
"message": "function effect 'thin' was already specified; remove the duplicate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 411,
|
|
"kind": "note",
|
|
"line": 412,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 425,
|
|
"kind": "error",
|
|
"line": 426,
|
|
"message": "invalid call to 'infer_meta_variadic': value passed to 'func' cannot be converted from 'def plain_func(i: Int) thin -> None' to 'def(*args: *ArgTypes) thin -> None'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "cannot implicitly convert 'def identity(x: Int) thin -> Int' value to 'def(Int) -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "cannot implicitly convert 'def mut_ship_function(mut x: MemType) thin -> None' value to 'def(MemType) thin -> None' in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "converted from 'def device_func(i: Int) thin -> None' to 'def(x: Int, y: Int, *args: *ArgTypes) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 96,
|
|
"kind": "error",
|
|
"line": 97,
|
|
"message": "converted from 'def device_func(i: ZInt, j: ZInt) thin -> None' to 'def(*args: *ArgTypes) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 124,
|
|
"kind": "error",
|
|
"line": 125,
|
|
"message": "invalid call to 'call': value passed to 'args' cannot be converted from 'StringLiteral[\"hello\"]' to 'Bool'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 158,
|
|
"kind": "error",
|
|
"line": 159,
|
|
"message": "converted from 'def device_func_unusedT[T: AnyType](a: Int, b: Bool) thin -> Int' to 'def(*args: *ArgTypes) thin -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 164,
|
|
"kind": "error",
|
|
"line": 165,
|
|
"message": "converted from 'def device_func_usedT[T: AnyType](a: T, b: Bool) thin -> Int' to 'def(*args: *ArgTypes) thin -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 192,
|
|
"kind": "error",
|
|
"line": 193,
|
|
"message": "invalid call to 'call': value passed to 'args' cannot be converted from 'StringLiteral[\"hello\"]' to 'Bool'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 216,
|
|
"kind": "error",
|
|
"line": 217,
|
|
"message": "converted from 'def device_func(a: Int, b: Bool) raises thin -> Int' to 'def(*args: *ArgTypes) thin -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 310,
|
|
"kind": "error",
|
|
"line": 311,
|
|
"message": "invalid call to 'call': value passed to 'args' cannot be converted from 'ZBool' to 'ZPointer[Int]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 331,
|
|
"kind": "error",
|
|
"line": 332,
|
|
"message": "cannot be converted from 'def plain(x: Int) thin -> Int' to 'def(Int) abi(\"C\") thin -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 348,
|
|
"kind": "error",
|
|
"line": 349,
|
|
"message": "cannot be converted from 'def(Int) abi(\"C\") thin -> Int' to 'def(Int) thin -> Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 365,
|
|
"kind": "error",
|
|
"line": 366,
|
|
"message": "redefinition of function 'redef_abi_mixed' with identical signature",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 380,
|
|
"kind": "error",
|
|
"line": 381,
|
|
"message": "a abi(\"C\") function cannot capture variables",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 395,
|
|
"kind": "error",
|
|
"line": 396,
|
|
"message": "function effect 'thin' was already specified; remove the duplicate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 425,
|
|
"kind": "error",
|
|
"line": 426,
|
|
"message": "invalid call to 'infer_meta_variadic': value passed to 'func' cannot be converted from 'def plain_func(i: Int) thin -> None' to 'def(*args: *ArgTypes) thin -> None'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/function_types_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/function_types_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/function_types_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file %s -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "package 'visibility_pkg' has no declaration 'sub'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "package 'inner' has no declaration 'deep'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 68,
|
|
"message": "package 'visibility_pkg' has no declaration 'sub'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "package 'visibility_pkg' has no declaration 'sub'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "package 'inner' has no declaration 'deep'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 68,
|
|
"message": "package 'visibility_pkg' has no declaration 'sub'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/bare_import_gate.mojo",
|
|
"id": "diagnostics/mojo-parser/import/bare_import_gate",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/bare_import_gate.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file -I=%S/inputs -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 18,
|
|
"kind": "error",
|
|
"line": 19,
|
|
"message": "unable to locate module 'non_existent_package'",
|
|
"regex": true
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 18,
|
|
"kind": "error",
|
|
"line": 19,
|
|
"message": "unable to locate module 'non_existent_package'",
|
|
"regex": true
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_bad_symlink.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_bad_symlink",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_bad_symlink.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"mkdir -p %t",
|
|
"ln -s does-not-exist %t/non_existent_package.mojo",
|
|
"%parse-mojo-isolated -verify-diagnostics -I=%t %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "package 'test_package' has no declaration 'test_nested_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 28,
|
|
"message": "package 'test_package' has no declaration 'test_nested_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "package 'test_package' has no declaration 'test_nested_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "error",
|
|
"line": 56,
|
|
"message": "package 'deep_package' has no declaration 'hidden'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 97,
|
|
"kind": "error",
|
|
"line": 98,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 101,
|
|
"kind": "error",
|
|
"line": 102,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 105,
|
|
"kind": "error",
|
|
"line": 106,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 136,
|
|
"kind": "error",
|
|
"line": 137,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 140,
|
|
"kind": "error",
|
|
"line": 141,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 144,
|
|
"kind": "error",
|
|
"line": 145,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 148,
|
|
"kind": "error",
|
|
"line": 149,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "package 'test_package' has no declaration 'test_nested_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 28,
|
|
"message": "package 'test_package' has no declaration 'test_nested_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "package 'test_package' has no declaration 'test_nested_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "error",
|
|
"line": 56,
|
|
"message": "package 'deep_package' has no declaration 'hidden'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 97,
|
|
"kind": "error",
|
|
"line": 98,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 101,
|
|
"kind": "error",
|
|
"line": 102,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 105,
|
|
"kind": "error",
|
|
"line": 106,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 136,
|
|
"kind": "error",
|
|
"line": 137,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 140,
|
|
"kind": "error",
|
|
"line": 141,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 144,
|
|
"kind": "error",
|
|
"line": 145,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 148,
|
|
"kind": "error",
|
|
"line": 149,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_deep_submodule.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_deep_submodule",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_deep_submodule.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file -I=%S/inputs -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "module 'plain_mod' does not contain 'from_dotted'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "module 'plain_mod.dot' does not contain 'from_plain'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 54,
|
|
"kind": "error",
|
|
"line": 55,
|
|
"message": "module 'module' does not contain 'in_dotted_module'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "module 'plain_mod' does not contain 'from_dotted'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "module 'plain_mod.dot' does not contain 'from_plain'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 54,
|
|
"kind": "error",
|
|
"line": 55,
|
|
"message": "module 'module' does not contain 'in_dotted_module'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_dotted_no_clash.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_dotted_no_clash",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_dotted_no_clash.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file -verify-diagnostics -I=%S/inputs %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "note",
|
|
"line": 28,
|
|
"message": "'utils' is the name used in error messages and debug info",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "warning",
|
|
"line": 30,
|
|
"message": "'mylib.utils' and 'utils' name the same package; remove the duplicate import root or file that reaches it twice",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/import/import_dual_mount_first_binding_wins.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_dual_mount_first_binding_wins",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_dual_mount_first_binding_wins.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics \\",
|
|
"-I=%S/inputs/dual_mount_pkg/lib \\",
|
|
"-I=%S/inputs/dual_mount_pkg/lib/mylib %s \\",
|
|
"| FileCheck %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "note",
|
|
"line": 26,
|
|
"message": "'mylib.utils' is the name used in error messages and debug info",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "warning",
|
|
"line": 28,
|
|
"message": "'utils' and 'mylib.utils' name the same module; remove the duplicate import root or file that reaches it twice",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/import/import_dual_mount_module.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_dual_mount_module",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_dual_mount_module.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics \\",
|
|
"-I=%S/inputs/dual_mount/lib -I=%S/inputs/dual_mount/lib/mylib %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 22,
|
|
"kind": "note",
|
|
"line": 23,
|
|
"message": "'mylib.utils' is the name used in error messages and debug info",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "warning",
|
|
"line": 25,
|
|
"message": "'utils' and 'mylib.utils' name the same package; remove the duplicate import root or file that reaches it twice",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/import/import_dual_mount_source_package.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_dual_mount_source_package",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_dual_mount_source_package.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics \\",
|
|
"-I=%S/inputs/dual_mount_pkg/lib \\",
|
|
"-I=%S/inputs/dual_mount_pkg/lib/mylib %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "'module1' is a module, not a package; it has no nested module or package 'bar'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "use of unknown declaration 'import_through_module.nested_package.module1.bar'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "'module1' is a module, not a package; it has no nested module or package 'bar'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "'module1' is a module, not a package; it has no nested module or package 'bar'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "use of unknown declaration 'import_through_module.nested_package.module1.bar'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "'module1' is a module, not a package; it has no nested module or package 'bar'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_error_no_stale_binding.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_error_no_stale_binding",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_error_no_stale_binding.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file -I=%S/inputs -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "unable to locate module 'imported_module'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "invalid call to 'imported_fn': unexpected argument",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "unable to locate module 'imported_module'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "invalid call to 'imported_fn': unexpected argument",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_error_poisoning.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_error_poisoning",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_error_poisoning.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics -I=%S/inputs %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "error",
|
|
"line": 20,
|
|
"message": "expected module name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "expected name to bind import",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "unable to locate module 'there_cant_be_a_module_named_this'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 35,
|
|
"message": "expected module name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 40,
|
|
"message": "expected 'import' after module name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "expected construct name to import",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "error",
|
|
"line": 50,
|
|
"message": "expected name to import 'foo' as",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 57,
|
|
"kind": "error",
|
|
"line": 58,
|
|
"message": "expected construct name to import",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "expected ')' after import list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 68,
|
|
"message": "cannot import relative to a top-level package",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 72,
|
|
"kind": "error",
|
|
"line": 73,
|
|
"message": "unable to locate module 'unknown_nested_module'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 80,
|
|
"kind": "error",
|
|
"line": 81,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "unable to locate module 'module_in_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 97,
|
|
"kind": "error",
|
|
"line": 98,
|
|
"message": "unable to locate module 'does_not_exist'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 105,
|
|
"kind": "error",
|
|
"line": 106,
|
|
"message": "use of unknown declaration '_ignored_wildcard_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 109,
|
|
"kind": "error",
|
|
"line": 110,
|
|
"message": "module 'imported_module' does not contain 'there_cant_be_a_decl_named_this'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 113,
|
|
"kind": "error",
|
|
"line": 114,
|
|
"message": "unable to locate module 'there_cant_be_a_module_named_this'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 116,
|
|
"kind": "note",
|
|
"line": 117,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 120,
|
|
"kind": "error",
|
|
"line": 121,
|
|
"message": "invalid redefinition of 'already_defined_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 129,
|
|
"kind": "error",
|
|
"line": 130,
|
|
"message": "'imported_module' does not implement the '__call__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 131,
|
|
"kind": "error",
|
|
"line": 132,
|
|
"message": "'imported_module' is not subscriptable, it does not implement the `__getitem__`/`__setitem__` methods",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 133,
|
|
"kind": "error",
|
|
"line": 134,
|
|
"message": "'test_package' does not implement the '__call__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 135,
|
|
"kind": "error",
|
|
"line": 136,
|
|
"message": "'test_package' is not subscriptable, it does not implement the `__getitem__`/`__setitem__` methods",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 142,
|
|
"kind": "error",
|
|
"line": 143,
|
|
"message": "'S' parameter 'a' has 'AnyType' type, but value has type 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 145,
|
|
"kind": "note",
|
|
"line": 145,
|
|
"message": "'S' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 154,
|
|
"kind": "error",
|
|
"line": 155,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 163,
|
|
"kind": "error",
|
|
"line": 164,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 172,
|
|
"kind": "error",
|
|
"line": 173,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 181,
|
|
"kind": "error",
|
|
"line": 182,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 193,
|
|
"kind": "error",
|
|
"line": 194,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 205,
|
|
"kind": "error",
|
|
"line": 206,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 217,
|
|
"kind": "error",
|
|
"line": 218,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 224,
|
|
"kind": "error",
|
|
"line": 225,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 235,
|
|
"kind": "error",
|
|
"line": 236,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 254,
|
|
"kind": "error",
|
|
"line": 255,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 287,
|
|
"kind": "error",
|
|
"line": 288,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 323,
|
|
"kind": "error",
|
|
"line": 324,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 325,
|
|
"kind": "error",
|
|
"line": 326,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 337,
|
|
"kind": "error",
|
|
"line": 338,
|
|
"message": "package 'test_package' has no declaration 'module'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 342,
|
|
"kind": "error",
|
|
"line": 343,
|
|
"message": "relative imports must use 'from'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 347,
|
|
"kind": "error",
|
|
"line": 348,
|
|
"message": "relative imports must use 'from'; did you mean 'from . import test_package'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 352,
|
|
"kind": "error",
|
|
"line": 353,
|
|
"message": "relative imports must use 'from'; did you mean 'from .. import test_package.test_nested_package'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 357,
|
|
"kind": "error",
|
|
"line": 358,
|
|
"message": "relative imports must use 'from'; did you mean 'from ... import test_package'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 362,
|
|
"kind": "error",
|
|
"line": 363,
|
|
"message": "unable to locate module 'package_with'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 367,
|
|
"kind": "error",
|
|
"line": 368,
|
|
"message": "unable to locate module 'nested_package_with'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "error",
|
|
"line": 20,
|
|
"message": "expected module name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "expected name to bind import",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "unable to locate module 'there_cant_be_a_module_named_this'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 35,
|
|
"message": "expected module name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 40,
|
|
"message": "expected 'import' after module name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "expected construct name to import",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "error",
|
|
"line": 50,
|
|
"message": "expected name to import 'foo' as",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 57,
|
|
"kind": "error",
|
|
"line": 58,
|
|
"message": "expected construct name to import",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "expected ')' after import list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 68,
|
|
"message": "cannot import relative to a top-level package",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 72,
|
|
"kind": "error",
|
|
"line": 73,
|
|
"message": "unable to locate module 'unknown_nested_module'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 80,
|
|
"kind": "error",
|
|
"line": 81,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "unable to locate module 'module_in_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 97,
|
|
"kind": "error",
|
|
"line": 98,
|
|
"message": "unable to locate module 'does_not_exist'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 105,
|
|
"kind": "error",
|
|
"line": 106,
|
|
"message": "use of unknown declaration '_ignored_wildcard_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 109,
|
|
"kind": "error",
|
|
"line": 110,
|
|
"message": "module 'imported_module' does not contain 'there_cant_be_a_decl_named_this'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 113,
|
|
"kind": "error",
|
|
"line": 114,
|
|
"message": "unable to locate module 'there_cant_be_a_module_named_this'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 120,
|
|
"kind": "error",
|
|
"line": 121,
|
|
"message": "invalid redefinition of 'already_defined_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 129,
|
|
"kind": "error",
|
|
"line": 130,
|
|
"message": "'imported_module' does not implement the '__call__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 131,
|
|
"kind": "error",
|
|
"line": 132,
|
|
"message": "'imported_module' is not subscriptable, it does not implement the `__getitem__`/`__setitem__` methods",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 133,
|
|
"kind": "error",
|
|
"line": 134,
|
|
"message": "'test_package' does not implement the '__call__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 135,
|
|
"kind": "error",
|
|
"line": 136,
|
|
"message": "'test_package' is not subscriptable, it does not implement the `__getitem__`/`__setitem__` methods",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 142,
|
|
"kind": "error",
|
|
"line": 143,
|
|
"message": "'S' parameter 'a' has 'AnyType' type, but value has type 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 154,
|
|
"kind": "error",
|
|
"line": 155,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 163,
|
|
"kind": "error",
|
|
"line": 164,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 172,
|
|
"kind": "error",
|
|
"line": 173,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 181,
|
|
"kind": "error",
|
|
"line": 182,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 193,
|
|
"kind": "error",
|
|
"line": 194,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 205,
|
|
"kind": "error",
|
|
"line": 206,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 217,
|
|
"kind": "error",
|
|
"line": 218,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 224,
|
|
"kind": "error",
|
|
"line": 225,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 235,
|
|
"kind": "error",
|
|
"line": 236,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 254,
|
|
"kind": "error",
|
|
"line": 255,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 287,
|
|
"kind": "error",
|
|
"line": 288,
|
|
"message": "'import' statements must be at module or function scope; move this to a valid location",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 323,
|
|
"kind": "error",
|
|
"line": 324,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 325,
|
|
"kind": "error",
|
|
"line": 326,
|
|
"message": "use of unknown declaration 'test_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 337,
|
|
"kind": "error",
|
|
"line": 338,
|
|
"message": "package 'test_package' has no declaration 'module'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 342,
|
|
"kind": "error",
|
|
"line": 343,
|
|
"message": "relative imports must use 'from'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 347,
|
|
"kind": "error",
|
|
"line": 348,
|
|
"message": "relative imports must use 'from'; did you mean 'from . import test_package'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 352,
|
|
"kind": "error",
|
|
"line": 353,
|
|
"message": "relative imports must use 'from'; did you mean 'from .. import test_package.test_nested_package'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 357,
|
|
"kind": "error",
|
|
"line": 358,
|
|
"message": "relative imports must use 'from'; did you mean 'from ... import test_package'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 362,
|
|
"kind": "error",
|
|
"line": 363,
|
|
"message": "unable to locate module 'package_with'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 367,
|
|
"kind": "error",
|
|
"line": 368,
|
|
"message": "unable to locate module 'nested_package_with'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file -verify-diagnostics -I=unknownincludedir -I=%S/inputs -I=%S/inputs/test_package %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "error",
|
|
"line": 21,
|
|
"message": "unable to locate module 'no.such.pkg'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "'module.with.dots' is a module, not a package; it has no nested module or package 'nested'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "unable to locate module 'sub.pkg'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "error",
|
|
"line": 21,
|
|
"message": "unable to locate module 'no.such.pkg'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "'module.with.dots' is a module, not a package; it has no nested module or package 'nested'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "unable to locate module 'sub.pkg'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_escaped_dotted_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_escaped_dotted_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_escaped_dotted_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file -verify-diagnostics -I=%S/inputs %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "invalid call to 'foo': value passed to 'x' cannot be converted from 'StringLiteral[\"hello\"]' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "invalid call to 'foo': value passed to 'x' cannot be converted from 'StringLiteral[\"hello\"]' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "invalid call to 'foo': value passed to 'x' cannot be converted from 'StringLiteral[\"hello\"]' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 61,
|
|
"kind": "error",
|
|
"line": 62,
|
|
"message": "invalid call to 'foo': value passed to 'x' cannot be converted from 'IntLiteral[42]' to 'String'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "invalid call to 'foo': value passed to 'x' cannot be converted from 'StringLiteral[\"hello\"]' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "invalid call to 'foo': value passed to 'x' cannot be converted from 'StringLiteral[\"hello\"]' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "invalid call to 'foo': value passed to 'x' cannot be converted from 'StringLiteral[\"hello\"]' to 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 61,
|
|
"kind": "error",
|
|
"line": 62,
|
|
"message": "invalid call to 'foo': value passed to 'x' cannot be converted from 'IntLiteral[42]' to 'String'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_fn_overloads.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_fn_overloads",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_fn_overloads.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file -I=%S/inputs -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 65,
|
|
"kind": "error",
|
|
"line": 66,
|
|
"message": "unable to locate module 'nonexistent_module_for_test'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 98,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 65,
|
|
"kind": "error",
|
|
"line": 66,
|
|
"message": "unable to locate module 'nonexistent_module_for_test'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 98,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_fn_scope_comptime_blocks.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_fn_scope_comptime_blocks",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_fn_scope_comptime_blocks.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file -verify-diagnostics -I=%S/inputs %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "note",
|
|
"line": 25,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "invalid redefinition of 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "note",
|
|
"line": 39,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "invalid redefinition of 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 51,
|
|
"kind": "note",
|
|
"line": 52,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "invalid redefinition of 'shadowed_fn'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "invalid redefinition of 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "invalid redefinition of 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "invalid redefinition of 'shadowed_fn'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_fn_scope_conflicts.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_fn_scope_conflicts",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_fn_scope_conflicts.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file -verify-diagnostics -I=%S/inputs %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "error",
|
|
"line": 84,
|
|
"message": "package 'test_package' has no declaration 'test_nested_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 102,
|
|
"kind": "error",
|
|
"line": 103,
|
|
"message": "package 'test_package' has no declaration 'test_nested_package'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "error",
|
|
"line": 84,
|
|
"message": "package 'test_package' has no declaration 'test_nested_package'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 102,
|
|
"kind": "error",
|
|
"line": 103,
|
|
"message": "package 'test_package' has no declaration 'test_nested_package'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_fn_scope_no_leak.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_fn_scope_no_leak",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_fn_scope_no_leak.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file -verify-diagnostics -I=%S/inputs %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "error",
|
|
"line": 50,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "error",
|
|
"line": 50,
|
|
"message": "use of unknown declaration 'shadowed_fn'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_fn_scope_ordering.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_fn_scope_ordering",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_fn_scope_ordering.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file -verify-diagnostics -I=%S/inputs %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "use of unknown declaration 'module'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "use of unknown declaration 'module'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_leaf_binding.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_leaf_binding",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_leaf_binding.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file -verify-diagnostics -I=%S/inputs %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 40,
|
|
"message": "use of unknown declaration 'explicit_reexport'; did you mean to import it from 'std.import_suggestion'? Add 'from std.import_suggestion import explicit_reexport'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "error",
|
|
"line": 48,
|
|
"message": "use of unknown declaration 'wildcard_reexport'; did you mean to import it from 'std.import_suggestion'? Add 'from std.import_suggestion import wildcard_reexport'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 54,
|
|
"kind": "error",
|
|
"line": 55,
|
|
"message": "use of unknown declaration 'direct_decl_symbol'; did you mean to import it from 'std.import_suggestion'? Add 'from std.import_suggestion import direct_decl_symbol'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "use of unknown declaration 'nested_symbol'; did you mean to import it from 'std.import_suggestion.nested'? Add 'from std.import_suggestion.nested import nested_symbol'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 70,
|
|
"kind": "error",
|
|
"line": 71,
|
|
"message": "use of unknown declaration 'nested_reexport'; did you mean to import it from 'std.import_suggestion.nested'? Add 'from std.import_suggestion.nested import nested_reexport'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 82,
|
|
"kind": "error",
|
|
"line": 83,
|
|
"message": "use of unknown declaration 'wildpkg_symbol'; did you mean to import it from 'std.import_suggestion'? Add 'from std.import_suggestion import wildpkg_symbol'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 94,
|
|
"kind": "error",
|
|
"line": 95,
|
|
"message": "use of unknown declaration 'native_owned_symbol'; did you mean to import it from 'std.import_suggestion.owner'? Add 'from std.import_suggestion.owner import native_owned_symbol'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 106,
|
|
"kind": "error",
|
|
"line": 107,
|
|
"message": "use of unknown declaration 'foreign_only_symbol'; did you mean to import it from 'std.import_suggestion.sole_reexporter'? Add 'from std.import_suggestion.sole_reexporter import foreign_only_symbol'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 40,
|
|
"message": "use of unknown declaration 'explicit_reexport'; did you mean to import it from 'std.import_suggestion'? Add 'from std.import_suggestion import explicit_reexport'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "error",
|
|
"line": 48,
|
|
"message": "use of unknown declaration 'wildcard_reexport'; did you mean to import it from 'std.import_suggestion'? Add 'from std.import_suggestion import wildcard_reexport'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 54,
|
|
"kind": "error",
|
|
"line": 55,
|
|
"message": "use of unknown declaration 'direct_decl_symbol'; did you mean to import it from 'std.import_suggestion'? Add 'from std.import_suggestion import direct_decl_symbol'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "use of unknown declaration 'nested_symbol'; did you mean to import it from 'std.import_suggestion.nested'? Add 'from std.import_suggestion.nested import nested_symbol'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 70,
|
|
"kind": "error",
|
|
"line": 71,
|
|
"message": "use of unknown declaration 'nested_reexport'; did you mean to import it from 'std.import_suggestion.nested'? Add 'from std.import_suggestion.nested import nested_reexport'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 82,
|
|
"kind": "error",
|
|
"line": 83,
|
|
"message": "use of unknown declaration 'wildpkg_symbol'; did you mean to import it from 'std.import_suggestion'? Add 'from std.import_suggestion import wildpkg_symbol'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 94,
|
|
"kind": "error",
|
|
"line": 95,
|
|
"message": "use of unknown declaration 'native_owned_symbol'; did you mean to import it from 'std.import_suggestion.owner'? Add 'from std.import_suggestion.owner import native_owned_symbol'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 106,
|
|
"kind": "error",
|
|
"line": 107,
|
|
"message": "use of unknown declaration 'foreign_only_symbol'; did you mean to import it from 'std.import_suggestion.sole_reexporter'? Add 'from std.import_suggestion.sole_reexporter import foreign_only_symbol'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_missing_suggestion.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_missing_suggestion",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_missing_suggestion.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"rm -rf %t && mkdir -p %t",
|
|
"mojo precompile -o %t/std.mojoc %S/inputs/import_suggestion_std/std",
|
|
"kgen-translate -import-mojo -mojo-enable-prebuilt-packages \\",
|
|
"-mojo-search-paths=%t -split-input-file -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 22,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "unable to locate module 'runtime'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "note",
|
|
"line": 24,
|
|
"message": "many stdlib items recently moved to the `max` package",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "unable to locate module 'gpu'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "note",
|
|
"line": 30,
|
|
"message": "many stdlib items recently moved to the `max` package",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "unable to locate module 'algorithm'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "note",
|
|
"line": 36,
|
|
"message": "many stdlib items recently moved to the `max` package",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 45,
|
|
"kind": "error",
|
|
"line": 46,
|
|
"message": "unable to locate module 'not_a_subpackage'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 22,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "unable to locate module 'runtime'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "unable to locate module 'gpu'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "unable to locate module 'algorithm'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 45,
|
|
"kind": "error",
|
|
"line": 46,
|
|
"message": "unable to locate module 'not_a_subpackage'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_moved_stdlib_note.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_moved_stdlib_note",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_moved_stdlib_note.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file -verify-diagnostics %s",
|
|
"not %parse-mojo-isolated -split-input-file %s 2>&1 \\",
|
|
"| FileCheck --check-prefix=NONOTE %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "ambiguous import 'test': found",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "ambiguous import 'test': found",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_namespace_ambiguous.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_namespace_ambiguous",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_namespace_ambiguous.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"rm -rf %t.dir && mkdir -p %t.dir/one/foo %t.dir/two/foo",
|
|
"echo \"def hello():\" > %t.dir/one/foo/test.mojo",
|
|
"echo \" pass\" >> %t.dir/one/foo/test.mojo",
|
|
"cp %t.dir/one/foo/test.mojo %t.dir/two/foo/test.mojo",
|
|
"%parse-mojo-isolated -verify-diagnostics -I=%t.dir/one -I=%t.dir/two %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "unable to locate module 'test2'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "unable to locate module 'test2'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_namespace_case_sensitive.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_namespace_case_sensitive",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_namespace_case_sensitive.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"rm -rf %t.dir && mkdir -p %t.dir/one/foo %t.dir/two/FOO",
|
|
"echo \"def hello():\" > %t.dir/one/foo/test.mojo",
|
|
"echo \" pass\" >> %t.dir/one/foo/test.mojo",
|
|
"echo \"def hello2():\" > %t.dir/two/FOO/test2.mojo",
|
|
"echo \" pass\" >> %t.dir/two/FOO/test2.mojo",
|
|
"%parse-mojo-isolated -verify-diagnostics -I=%t.dir/one -I=%t.dir/two %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 28,
|
|
"message": "'util' is a module, not a package; it has no nested module or package 'inner'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 28,
|
|
"message": "'util' is a module, not a package; it has no nested module or package 'inner'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_namespace_shadowed_submodule.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_namespace_shadowed_submodule",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_namespace_shadowed_submodule.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"rm -rf %t.dir && mkdir -p %t.dir/one/foo/util %t.dir/two/foo",
|
|
"echo \"def inner_fn():\" > %t.dir/one/foo/util/inner.mojo",
|
|
"echo \" pass\" >> %t.dir/one/foo/util/inner.mojo",
|
|
"echo \"def util_fn():\" > %t.dir/two/foo/util.mojo",
|
|
"echo \" pass\" >> %t.dir/two/foo/util.mojo",
|
|
"%parse-mojo-isolated -verify-diagnostics -I=%t.dir/one -I=%t.dir/two %s",
|
|
"%parse-mojo-isolated -verify-diagnostics -I=%t.dir/two -I=%t.dir/one %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "module 'import_self' cannot import itself",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "module 'import_self' cannot import itself",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "module 'import_self' cannot import itself",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "module 'import_self' cannot import itself",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "module 'import_self' cannot import itself",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "module 'import_self' cannot import itself",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "module 'import_self' cannot import itself",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "module 'import_self' cannot import itself",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/import_self.mojo",
|
|
"id": "diagnostics/mojo-parser/import/import_self",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/import_self.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 13,
|
|
"kind": "note",
|
|
"line": 14,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/import/inputs/fn_overload_package/module1.mojo",
|
|
"id": "diagnostics/mojo-parser/import/inputs/fn_overload_package/module1",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/inputs/fn_overload_package/module1.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 13,
|
|
"kind": "note",
|
|
"line": 14,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/import/inputs/fn_overload_package/module2.mojo",
|
|
"id": "diagnostics/mojo-parser/import/inputs/fn_overload_package/module2",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/inputs/fn_overload_package/module2.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 18,
|
|
"kind": "note",
|
|
"line": 19,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/import/inputs/imported_module.mojo",
|
|
"id": "diagnostics/mojo-parser/import/inputs/imported_module",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/inputs/imported_module.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 17,
|
|
"message": "use of unknown declaration 'producer'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 17,
|
|
"message": "use of unknown declaration 'producer'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/inputs/no_sibling_leak/consumer_module.mojo",
|
|
"id": "diagnostics/mojo-parser/import/inputs/no_sibling_leak/consumer_module",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/inputs/no_sibling_leak/consumer_module.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 17,
|
|
"message": "use of unknown declaration 'reexported_fn'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 17,
|
|
"message": "use of unknown declaration 'reexported_fn'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/inputs/no_sibling_leak/consumer_reexport.mojo",
|
|
"id": "diagnostics/mojo-parser/import/inputs/no_sibling_leak/consumer_reexport",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/inputs/no_sibling_leak/consumer_reexport.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 17,
|
|
"message": "use of unknown declaration 'producer_fn'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 17,
|
|
"message": "use of unknown declaration 'producer_fn'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/inputs/no_sibling_leak/consumer_symbol.mojo",
|
|
"id": "diagnostics/mojo-parser/import/inputs/no_sibling_leak/consumer_symbol",
|
|
"mode": "run",
|
|
"pass": "other",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/inputs/no_sibling_leak/consumer_symbol.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": []
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "error",
|
|
"line": 21,
|
|
"message": "'module1' is a module, not a package; it has no nested module or package 'bar'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "'module1' is a module, not a package; it has no nested module or package 'module2'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "'module1' is a module, not a package; it has no nested module or package 'module2'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "'module1' is a module, not a package; it has no nested module or package 'bar'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "'module1' is a module, not a package; it has no nested module or package 'module2'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "error",
|
|
"line": 21,
|
|
"message": "'module1' is a module, not a package; it has no nested module or package 'bar'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "'module1' is a module, not a package; it has no nested module or package 'module2'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "'module1' is a module, not a package; it has no nested module or package 'module2'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "'module1' is a module, not a package; it has no nested module or package 'bar'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "'module1' is a module, not a package; it has no nested module or package 'module2'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/import/test_import_through_module.mojo",
|
|
"id": "diagnostics/mojo-parser/import/test_import_through_module",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/import/test_import_through_module.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file -I=%S/inputs -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "error",
|
|
"line": 20,
|
|
"message": "only accepts backtick template chunks and an optional '_type=' keyword",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "requires a backtick f-string template",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "unterminated `%{...}` placeholder",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "use of unknown declaration 'nope'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "`%type` placeholder is no longer supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 50,
|
|
"kind": "error",
|
|
"line": 51,
|
|
"message": "failed to parse f-string MLIR op",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 57,
|
|
"kind": "error",
|
|
"line": 58,
|
|
"message": "invalid identifier in `%{...}` placeholder: 'x:type'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 63,
|
|
"kind": "error",
|
|
"line": 64,
|
|
"message": "placeholder in __mlir_op template",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 69,
|
|
"kind": "error",
|
|
"line": 70,
|
|
"message": "placeholder in __mlir_op template",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 77,
|
|
"kind": "error",
|
|
"line": 78,
|
|
"message": "expected exactly one op",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "error",
|
|
"line": 84,
|
|
"message": "failed to parse f-string MLIR op in f-string `totally bogus`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 92,
|
|
"kind": "error",
|
|
"line": 93,
|
|
"message": "failed to parse f-string MLIR op in f-string `index.add %{x} bogus %{y}`",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "error",
|
|
"line": 20,
|
|
"message": "only accepts backtick template chunks and an optional '_type=' keyword",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "requires a backtick f-string template",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "unterminated `%{...}` placeholder",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "use of unknown declaration 'nope'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "`%type` placeholder is no longer supported",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 50,
|
|
"kind": "error",
|
|
"line": 51,
|
|
"message": "failed to parse f-string MLIR op",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 57,
|
|
"kind": "error",
|
|
"line": 58,
|
|
"message": "invalid identifier in `%{...}` placeholder: 'x:type'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 63,
|
|
"kind": "error",
|
|
"line": 64,
|
|
"message": "placeholder in __mlir_op template",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 69,
|
|
"kind": "error",
|
|
"line": 70,
|
|
"message": "placeholder in __mlir_op template",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 77,
|
|
"kind": "error",
|
|
"line": 78,
|
|
"message": "expected exactly one op",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "error",
|
|
"line": 84,
|
|
"message": "failed to parse f-string MLIR op in f-string `totally bogus`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 92,
|
|
"kind": "error",
|
|
"line": 93,
|
|
"message": "failed to parse f-string MLIR op in f-string `index.add %{x} bogus %{y}`",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/inline_mlir_op_fstring_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/inline_mlir_op_fstring_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/inline_mlir_op_fstring_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 17,
|
|
"message": "unterminated backtick identifier",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "unexpected character",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "decimal integer literals must not use leading zeros; add '0o' for octal literals",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "no digits specified for octal literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "expected a digit after the exponent",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "expected a digit after the exponent",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 47,
|
|
"message": "unterminated string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 51,
|
|
"kind": "error",
|
|
"line": 52,
|
|
"message": "unterminated string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "unterminated string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 61,
|
|
"kind": "error",
|
|
"line": 62,
|
|
"message": "unterminated string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 66,
|
|
"kind": "error",
|
|
"line": 67,
|
|
"message": "invalid hex escape sequence: exactly two hex digits needed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "invalid hex escape sequence: exactly two hex digits needed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 76,
|
|
"kind": "error",
|
|
"line": 77,
|
|
"message": "invalid escape sequence",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 81,
|
|
"kind": "error",
|
|
"line": 82,
|
|
"message": "unterminated string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 86,
|
|
"kind": "error",
|
|
"line": 87,
|
|
"message": "unterminated string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 94,
|
|
"kind": "error",
|
|
"line": 94,
|
|
"message": "indentation must not mix tabs and spaces; select one style",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 98,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 104,
|
|
"kind": "error",
|
|
"line": 105,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 110,
|
|
"kind": "error",
|
|
"line": 111,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 115,
|
|
"kind": "error",
|
|
"line": 116,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 120,
|
|
"kind": "error",
|
|
"line": 121,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 125,
|
|
"kind": "error",
|
|
"line": 126,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 131,
|
|
"kind": "error",
|
|
"line": 132,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 137,
|
|
"kind": "error",
|
|
"line": 138,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 143,
|
|
"kind": "error",
|
|
"line": 144,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 149,
|
|
"kind": "error",
|
|
"line": 150,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 155,
|
|
"kind": "error",
|
|
"line": 156,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 161,
|
|
"kind": "error",
|
|
"line": 162,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 168,
|
|
"kind": "error",
|
|
"line": 169,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 175,
|
|
"kind": "error",
|
|
"line": 176,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 182,
|
|
"kind": "error",
|
|
"line": 183,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "error",
|
|
"line": 190,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 196,
|
|
"kind": "error",
|
|
"line": 197,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 202,
|
|
"kind": "error",
|
|
"line": 203,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 208,
|
|
"kind": "error",
|
|
"line": 209,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 214,
|
|
"kind": "error",
|
|
"line": 215,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 221,
|
|
"kind": "error",
|
|
"line": 222,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 228,
|
|
"kind": "error",
|
|
"line": 229,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 234,
|
|
"kind": "error",
|
|
"line": 235,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 240,
|
|
"kind": "error",
|
|
"line": 241,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 246,
|
|
"kind": "error",
|
|
"line": 247,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 252,
|
|
"kind": "error",
|
|
"line": 253,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 258,
|
|
"kind": "error",
|
|
"line": 259,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 265,
|
|
"kind": "error",
|
|
"line": 266,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 272,
|
|
"kind": "error",
|
|
"line": 273,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 279,
|
|
"kind": "error",
|
|
"line": 280,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 287,
|
|
"kind": "error",
|
|
"line": 288,
|
|
"message": "invalid hex escape sequence: exactly two hex digits needed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 293,
|
|
"kind": "error",
|
|
"line": 294,
|
|
"message": "invalid hex escape sequence: exactly two hex digits needed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 299,
|
|
"kind": "error",
|
|
"line": 300,
|
|
"message": "invalid hex escape sequence: exactly two hex digits needed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 305,
|
|
"kind": "error",
|
|
"line": 306,
|
|
"message": "invalid escape sequence",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 16,
|
|
"kind": "error",
|
|
"line": 17,
|
|
"message": "unterminated backtick identifier",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "unexpected character",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "decimal integer literals must not use leading zeros; add '0o' for octal literals",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "no digits specified for octal literal",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "expected a digit after the exponent",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "expected a digit after the exponent",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 47,
|
|
"message": "unterminated string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 51,
|
|
"kind": "error",
|
|
"line": 52,
|
|
"message": "unterminated string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "unterminated string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 61,
|
|
"kind": "error",
|
|
"line": 62,
|
|
"message": "unterminated string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 66,
|
|
"kind": "error",
|
|
"line": 67,
|
|
"message": "invalid hex escape sequence: exactly two hex digits needed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "invalid hex escape sequence: exactly two hex digits needed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 76,
|
|
"kind": "error",
|
|
"line": 77,
|
|
"message": "invalid escape sequence",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 81,
|
|
"kind": "error",
|
|
"line": 82,
|
|
"message": "unterminated string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 86,
|
|
"kind": "error",
|
|
"line": 87,
|
|
"message": "unterminated string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 94,
|
|
"kind": "error",
|
|
"line": 94,
|
|
"message": "indentation must not mix tabs and spaces; select one style",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 98,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 104,
|
|
"kind": "error",
|
|
"line": 105,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 110,
|
|
"kind": "error",
|
|
"line": 111,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 115,
|
|
"kind": "error",
|
|
"line": 116,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 120,
|
|
"kind": "error",
|
|
"line": 121,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 125,
|
|
"kind": "error",
|
|
"line": 126,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 131,
|
|
"kind": "error",
|
|
"line": 132,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 137,
|
|
"kind": "error",
|
|
"line": 138,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 143,
|
|
"kind": "error",
|
|
"line": 144,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 149,
|
|
"kind": "error",
|
|
"line": 150,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 155,
|
|
"kind": "error",
|
|
"line": 156,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 161,
|
|
"kind": "error",
|
|
"line": 162,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 168,
|
|
"kind": "error",
|
|
"line": 169,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 175,
|
|
"kind": "error",
|
|
"line": 176,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 182,
|
|
"kind": "error",
|
|
"line": 183,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "error",
|
|
"line": 190,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 196,
|
|
"kind": "error",
|
|
"line": 197,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 202,
|
|
"kind": "error",
|
|
"line": 203,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 208,
|
|
"kind": "error",
|
|
"line": 209,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 214,
|
|
"kind": "error",
|
|
"line": 215,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 221,
|
|
"kind": "error",
|
|
"line": 222,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 228,
|
|
"kind": "error",
|
|
"line": 229,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 234,
|
|
"kind": "error",
|
|
"line": 235,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 240,
|
|
"kind": "error",
|
|
"line": 241,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 246,
|
|
"kind": "error",
|
|
"line": 247,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 252,
|
|
"kind": "error",
|
|
"line": 253,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 258,
|
|
"kind": "error",
|
|
"line": 259,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 265,
|
|
"kind": "error",
|
|
"line": 266,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 272,
|
|
"kind": "error",
|
|
"line": 273,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 279,
|
|
"kind": "error",
|
|
"line": 280,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 287,
|
|
"kind": "error",
|
|
"line": 288,
|
|
"message": "invalid hex escape sequence: exactly two hex digits needed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 293,
|
|
"kind": "error",
|
|
"line": 294,
|
|
"message": "invalid hex escape sequence: exactly two hex digits needed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 299,
|
|
"kind": "error",
|
|
"line": 300,
|
|
"message": "invalid hex escape sequence: exactly two hex digits needed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 305,
|
|
"kind": "error",
|
|
"line": 306,
|
|
"message": "invalid escape sequence",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/lexer_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/lexer_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/lexer_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics -split-input-file %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "definition isn't on its own line at the correct indentation",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "error",
|
|
"line": 47,
|
|
"message": "statement indentation must match the rest of the block; adjust to align",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "statement indentation must match the rest of the block; adjust to align",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 57,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 58,
|
|
"kind": "error",
|
|
"line": 58,
|
|
"message": "expected '(' for argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 62,
|
|
"message": "found stray '@'; '@' must be followed by a decorator name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 63,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "expected '(' for argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 66,
|
|
"kind": "error",
|
|
"line": 67,
|
|
"message": "invalid comptime declaration: expected an identifier or '_'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "definition isn't on its own line at the correct indentation",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 39,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "error",
|
|
"line": 47,
|
|
"message": "statement indentation must match the rest of the block; adjust to align",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "statement indentation must match the rest of the block; adjust to align",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 57,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 58,
|
|
"kind": "error",
|
|
"line": 58,
|
|
"message": "expected '(' for argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 62,
|
|
"message": "found stray '@'; '@' must be followed by a decorator name",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 63,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "expected '(' for argument list",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 66,
|
|
"kind": "error",
|
|
"line": 67,
|
|
"message": "invalid comptime declaration: expected an identifier or '_'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/lexical_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/lexical_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/lexical_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 50,
|
|
"kind": "error",
|
|
"line": 51,
|
|
"message": "'h' abandoned without being explicitly destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 66,
|
|
"kind": "error",
|
|
"line": 67,
|
|
"message": "'h' abandoned without being explicitly destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 86,
|
|
"kind": "error",
|
|
"line": 87,
|
|
"message": "'h' abandoned without being explicitly destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 101,
|
|
"kind": "error",
|
|
"line": 104,
|
|
"message": "'h' abandoned without being explicitly destroyed",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 50,
|
|
"kind": "error",
|
|
"line": 51,
|
|
"message": "'h' abandoned without being explicitly destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 66,
|
|
"kind": "error",
|
|
"line": 67,
|
|
"message": "'h' abandoned without being explicitly destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 86,
|
|
"kind": "error",
|
|
"line": 87,
|
|
"message": "'h' abandoned without being explicitly destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 101,
|
|
"kind": "error",
|
|
"line": 104,
|
|
"message": "'h' abandoned without being explicitly destroyed",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/lsp/signature_only_conditional_deletable.mojo",
|
|
"id": "diagnostics/mojo-parser/lsp/signature_only_conditional_deletable",
|
|
"mode": "run",
|
|
"pass": "lifetimes",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/lsp/signature_only_conditional_deletable.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -lsp -I %S/inputs %s -mlir-print-debuginfo | kgen-opt -lower-semantic-cf -check-lifetimes -verify-diagnostics",
|
|
"%parse-mojo-isolated -I %S/inputs %s -mlir-print-debuginfo | kgen-opt -lower-semantic-cf -check-lifetimes -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "error",
|
|
"line": 18,
|
|
"message": "'main()' does not accept arguments; remove them",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "'main()' does not accept arguments; remove them",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "'main()' does not return a value; remove the return type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "'main()' does not accept parameters; remove the square brackets",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "error",
|
|
"line": 50,
|
|
"message": "'main' can only be exported as 'main'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 58,
|
|
"kind": "error",
|
|
"line": 59,
|
|
"message": "only 'main' can be exported as 'main'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "error",
|
|
"line": 18,
|
|
"message": "'main()' does not accept arguments; remove them",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "'main()' does not accept arguments; remove them",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "'main()' does not return a value; remove the return type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "'main()' does not accept parameters; remove the square brackets",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "error",
|
|
"line": 50,
|
|
"message": "'main' can only be exported as 'main'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 58,
|
|
"kind": "error",
|
|
"line": 59,
|
|
"message": "only 'main' can be exported as 'main'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/main_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/main_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/main_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics -split-input-file %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "error",
|
|
"line": 20,
|
|
"message": "'__mlir_type.index' does not implement the '__iadd__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 22,
|
|
"kind": "error",
|
|
"line": 23,
|
|
"message": "'index.add' op expected 2 operands, but found 0",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "'__mlir_type.index' has no attributes",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "operation already has attributes",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "note",
|
|
"line": 32,
|
|
"message": "previously specified here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "keyword parameter 'value' was already used; remove the duplicate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "invalid MLIR type: kgen.dtype",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "note",
|
|
"line": 39,
|
|
"message": "MLIR error: expected non-function type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "unable to infer result type from MLIR operation 'index.castu'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 47,
|
|
"message": "unable to infer result type from MLIR operation 'index.castu'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "'index.castu' op result #0 must be integer or index, but got 'f32'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 51,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "failed properties conversion while building index.constant with `{value = 4.200000e+01 : f32}`: Invalid attribute `value` in property conversion: 4.200000e+01 : f32",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "unable to infer result type from MLIR operation 'index.constant'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 58,
|
|
"message": "invalid MLIR attribute:",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 57,
|
|
"kind": "note",
|
|
"line": 58,
|
|
"message": "attempting to parse: '#index.cmp_predicate<xeq>'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "warning",
|
|
"line": 61,
|
|
"message": "'__mlir_type.`!kgen.deferred`' value is unused; assign to '_' to discard the result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 63,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "invalid MLIR attribute: expected attribute value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "note",
|
|
"line": 65,
|
|
"message": "attempting to parse: '_'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 68,
|
|
"message": "expected name in attribute reference",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 70,
|
|
"kind": "error",
|
|
"line": 71,
|
|
"message": "cannot construct type '__mlir_type.index'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 73,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "invalid MLIR type: !kgen.pointer<!b>",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "note",
|
|
"line": 75,
|
|
"message": "undefined symbol alias id 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "error",
|
|
"line": 80,
|
|
"message": "attribute spec requires a keyword parameter; did you mean 'value=...'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "unable to infer result type from MLIR operation 'pop.array.gep'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 92,
|
|
"kind": "error",
|
|
"line": 93,
|
|
"message": "use of unregistered MLIR operation 'invalid_op'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 96,
|
|
"kind": "error",
|
|
"line": 98,
|
|
"message": "invalid MLIR type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 97,
|
|
"kind": "note",
|
|
"line": 98,
|
|
"message": "argument #0 with convention 'mut' in func type should be a `!kgen.pointer`",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 103,
|
|
"kind": "error",
|
|
"line": 104,
|
|
"message": "only positional operands allowed in mlir magic",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 112,
|
|
"kind": "error",
|
|
"line": 111,
|
|
"message": "cannot set property",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 113,
|
|
"kind": "error",
|
|
"line": 111,
|
|
"message": "expected DictionaryAttr to set properties",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 118,
|
|
"kind": "error",
|
|
"line": 119,
|
|
"message": "attribute 'is_zero_poson' is not an inherent attribute of 'llvm.intr.ctlz'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 121,
|
|
"kind": "error",
|
|
"line": 122,
|
|
"message": "MLIR verification error: 'llvm.intr.ctlz' op requires attribute 'is_zero_poison'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "error",
|
|
"line": 20,
|
|
"message": "'__mlir_type.index' does not implement the '__iadd__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 22,
|
|
"kind": "error",
|
|
"line": 23,
|
|
"message": "'index.add' op expected 2 operands, but found 0",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "'__mlir_type.index' has no attributes",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "operation already has attributes",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "keyword parameter 'value' was already used; remove the duplicate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "invalid MLIR type: kgen.dtype",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 45,
|
|
"message": "unable to infer result type from MLIR operation 'index.castu'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "error",
|
|
"line": 47,
|
|
"message": "unable to infer result type from MLIR operation 'index.castu'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "'index.castu' op result #0 must be integer or index, but got 'f32'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 51,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "failed properties conversion while building index.constant with `{value = 4.200000e+01 : f32}`: Invalid attribute `value` in property conversion: 4.200000e+01 : f32",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "unable to infer result type from MLIR operation 'index.constant'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 58,
|
|
"message": "invalid MLIR attribute:",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 63,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "invalid MLIR attribute: expected attribute value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 68,
|
|
"message": "expected name in attribute reference",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 70,
|
|
"kind": "error",
|
|
"line": 71,
|
|
"message": "cannot construct type '__mlir_type.index'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 73,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "invalid MLIR type: !kgen.pointer<!b>",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "error",
|
|
"line": 80,
|
|
"message": "attribute spec requires a keyword parameter; did you mean 'value=...'?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "error",
|
|
"line": 89,
|
|
"message": "unable to infer result type from MLIR operation 'pop.array.gep'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 92,
|
|
"kind": "error",
|
|
"line": 93,
|
|
"message": "use of unregistered MLIR operation 'invalid_op'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 96,
|
|
"kind": "error",
|
|
"line": 98,
|
|
"message": "invalid MLIR type",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 103,
|
|
"kind": "error",
|
|
"line": 104,
|
|
"message": "only positional operands allowed in mlir magic",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 112,
|
|
"kind": "error",
|
|
"line": 111,
|
|
"message": "cannot set property",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 113,
|
|
"kind": "error",
|
|
"line": 111,
|
|
"message": "expected DictionaryAttr to set properties",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 118,
|
|
"kind": "error",
|
|
"line": 119,
|
|
"message": "attribute 'is_zero_poson' is not an inherent attribute of 'llvm.intr.ctlz'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 121,
|
|
"kind": "error",
|
|
"line": 122,
|
|
"message": "MLIR verification error: 'llvm.intr.ctlz' op requires attribute 'is_zero_poison'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/mlir_features_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/mlir_features_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/mlir_features_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 18,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "'def' statement must be on its own line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "warning",
|
|
"line": 22,
|
|
"message": "transfer from a value of trivial register type 'float' has no effect and can be removed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "warning",
|
|
"line": 22,
|
|
"message": "'float' value is unused; assign to '_' to discard the result",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "note",
|
|
"line": 22,
|
|
"message": "'float' is aka '__mlir_type.`!kgen.scalar<f64>`'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 18,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "'def' statement must be on its own line",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/moco2698.mojo",
|
|
"id": "diagnostics/mojo-parser/moco2698",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/moco2698.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated --verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "error",
|
|
"line": 18,
|
|
"message": "nested struct in a trait not supported here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "error",
|
|
"line": 18,
|
|
"message": "nested struct in a trait not supported here",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/moco2699.mojo",
|
|
"id": "diagnostics/mojo-parser/moco2699",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/moco2699.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated --verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "Direct access of trait members is not supported",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "Direct access of trait members is not supported",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/moco_2314.mojo",
|
|
"id": "diagnostics/mojo-parser/moco_2314",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/moco_2314.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "note",
|
|
"line": 53,
|
|
"message": "'list' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "use of uninitialized value 'list'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "note",
|
|
"line": 67,
|
|
"message": "origin was invalidated here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "use of invalidated interior reference 'list[\"element\"]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 77,
|
|
"kind": "note",
|
|
"line": 77,
|
|
"message": "origin was invalidated here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 78,
|
|
"kind": "error",
|
|
"line": 79,
|
|
"message": "use of invalidated interior reference 'list[\"element\"]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 105,
|
|
"kind": "note",
|
|
"line": 105,
|
|
"message": "origin was invalidated here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 109,
|
|
"kind": "error",
|
|
"line": 110,
|
|
"message": "use of invalidated interior reference 'list_of_two_intlists[\"element\"].first[\"element\"]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 118,
|
|
"kind": "note",
|
|
"line": 118,
|
|
"message": "origin was defined here, after the reference was formed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 122,
|
|
"kind": "error",
|
|
"line": 123,
|
|
"message": "use of invalidated interior reference 'list[\"element\"]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 142,
|
|
"kind": "note",
|
|
"line": 142,
|
|
"message": "origin was defined inside this control structure",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 152,
|
|
"kind": "error",
|
|
"line": 153,
|
|
"message": "use of invalidated interior reference 'list[\"element\"]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 164,
|
|
"kind": "note",
|
|
"line": 164,
|
|
"message": "origin was invalidated here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 165,
|
|
"kind": "error",
|
|
"line": 166,
|
|
"message": "use of invalidated interior reference",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 183,
|
|
"kind": "error",
|
|
"line": 184,
|
|
"message": "interior origin name must be a string literal, it cannot be parametric when used",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "note",
|
|
"line": 189,
|
|
"message": "origin was invalidated here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 190,
|
|
"kind": "error",
|
|
"line": 190,
|
|
"message": "use of invalidated interior reference 'list[\"element\"]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 255,
|
|
"kind": "error",
|
|
"line": 256,
|
|
"message": "incorrect invalidation of interior origin in closure 'base[\"element\"]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 268,
|
|
"kind": "note",
|
|
"line": 268,
|
|
"message": "origin was invalidated here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 269,
|
|
"kind": "error",
|
|
"line": 269,
|
|
"message": "use of invalidated interior reference 'base[\"element\"]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 288,
|
|
"kind": "error",
|
|
"line": 289,
|
|
"message": "use of invalidated interior reference 'list[\"element\"]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 290,
|
|
"kind": "note",
|
|
"line": 291,
|
|
"message": "origin was invalidated here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 61,
|
|
"message": "use of uninitialized value 'list'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "use of invalidated interior reference 'list[\"element\"]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 78,
|
|
"kind": "error",
|
|
"line": 79,
|
|
"message": "use of invalidated interior reference 'list[\"element\"]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 109,
|
|
"kind": "error",
|
|
"line": 110,
|
|
"message": "use of invalidated interior reference 'list_of_two_intlists[\"element\"].first[\"element\"]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 122,
|
|
"kind": "error",
|
|
"line": 123,
|
|
"message": "use of invalidated interior reference 'list[\"element\"]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 152,
|
|
"kind": "error",
|
|
"line": 153,
|
|
"message": "use of invalidated interior reference 'list[\"element\"]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 165,
|
|
"kind": "error",
|
|
"line": 166,
|
|
"message": "use of invalidated interior reference",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 183,
|
|
"kind": "error",
|
|
"line": 184,
|
|
"message": "interior origin name must be a string literal, it cannot be parametric when used",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 190,
|
|
"kind": "error",
|
|
"line": 190,
|
|
"message": "use of invalidated interior reference 'list[\"element\"]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 255,
|
|
"kind": "error",
|
|
"line": 256,
|
|
"message": "incorrect invalidation of interior origin in closure 'base[\"element\"]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 269,
|
|
"kind": "error",
|
|
"line": 269,
|
|
"message": "use of invalidated interior reference 'base[\"element\"]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 288,
|
|
"kind": "error",
|
|
"line": 289,
|
|
"message": "use of invalidated interior reference 'list[\"element\"]'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/ownership/interior_origin_cldiags.mojo",
|
|
"id": "diagnostics/mojo-parser/ownership/interior_origin_cldiags",
|
|
"mode": "run",
|
|
"pass": "lifetimes",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/ownership/interior_origin_cldiags.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -mlir-print-debuginfo | kgen-opt -lower-semantic-cf -check-lifetimes -verify-parameters -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "warning",
|
|
"line": 80,
|
|
"message": "assignment to 'mem1' was never used",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 100,
|
|
"kind": "warning",
|
|
"line": 101,
|
|
"message": "assignment to 'reg' was never used",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 146,
|
|
"kind": "warning",
|
|
"line": 147,
|
|
"message": "assignment to 'localReg' was never used",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 171,
|
|
"kind": "warning",
|
|
"line": 172,
|
|
"message": "assignment to 'x' was never used",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 213,
|
|
"kind": "warning",
|
|
"line": 214,
|
|
"message": "assignment to 'ownedI1' was never used",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1155,
|
|
"kind": "warning",
|
|
"line": 1156,
|
|
"message": "assignment to 'a_packed_ptr' was never used",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1164,
|
|
"kind": "warning",
|
|
"line": 1165,
|
|
"message": "assignment to 'a_packed_ptr' was never used",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 1387,
|
|
"kind": "warning",
|
|
"line": 1388,
|
|
"message": "assignment to 'mvalue' was never used",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/ownership/ownership.mojo",
|
|
"id": "diagnostics/mojo-parser/ownership/ownership",
|
|
"mode": "run",
|
|
"pass": "lifetimes",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/ownership/ownership.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated %s --mlir-print-debuginfo -o %t.mlir",
|
|
"kgen-opt %t.mlir -lower-semantic-cf -check-lifetimes -verify-parameters -verify-diagnostics | FileCheck %s",
|
|
"%parse-mojo-isolated %s --mlir-print-debuginfo --debug-level full -o /dev/null"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 124,
|
|
"kind": "warning",
|
|
"line": 125,
|
|
"message": "'if' condition always evaluates to 'True'; 'else' branch is unreachable",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/ownership/ownership_cf.mojo",
|
|
"id": "diagnostics/mojo-parser/ownership/ownership_cf",
|
|
"mode": "run",
|
|
"pass": "lifetimes",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/ownership/ownership_cf.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated %s --mlir-print-debuginfo -o %t.mlir",
|
|
"kgen-opt %t.mlir -lower-semantic-cf -check-lifetimes -verify-parameters -verify-diagnostics | FileCheck %s",
|
|
"%parse-mojo-isolated %s --mlir-print-debuginfo --debug-level full -o /dev/null"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "'self.x' is uninitialized at the implicit return from this function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "note",
|
|
"line": 29,
|
|
"message": "'self' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "'self.y' is uninitialized at the implicit return from this function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "note",
|
|
"line": 34,
|
|
"message": "'self' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "note",
|
|
"line": 74,
|
|
"message": "'a' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 75,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "use of uninitialized value 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 89,
|
|
"kind": "note",
|
|
"line": 89,
|
|
"message": "'a' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 90,
|
|
"kind": "error",
|
|
"line": 90,
|
|
"message": "use of uninitialized value 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 94,
|
|
"kind": "note",
|
|
"line": 94,
|
|
"message": "'a' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 95,
|
|
"kind": "error",
|
|
"line": 95,
|
|
"message": "use of uninitialized value 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 99,
|
|
"kind": "note",
|
|
"line": 99,
|
|
"message": "'a' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 102,
|
|
"kind": "error",
|
|
"line": 102,
|
|
"message": "'a' used with all fields manually initialized but without calling an '__init__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 106,
|
|
"kind": "note",
|
|
"line": 106,
|
|
"message": "'a' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 108,
|
|
"kind": "error",
|
|
"line": 108,
|
|
"message": "use of uninitialized value 'a.y'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 122,
|
|
"kind": "note",
|
|
"line": 122,
|
|
"message": "'x' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 123,
|
|
"kind": "error",
|
|
"line": 123,
|
|
"message": "use of uninitialized value 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 127,
|
|
"kind": "note",
|
|
"line": 127,
|
|
"message": "'a' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 129,
|
|
"kind": "error",
|
|
"line": 129,
|
|
"message": "'a' is uninitialized at return from this function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 132,
|
|
"kind": "error",
|
|
"line": 133,
|
|
"message": "'a' is uninitialized at the implicit return from this function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 133,
|
|
"kind": "note",
|
|
"line": 133,
|
|
"message": "'a' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 150,
|
|
"kind": "note",
|
|
"line": 150,
|
|
"message": "'b' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 153,
|
|
"kind": "error",
|
|
"line": 153,
|
|
"message": "use of uninitialized value 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 171,
|
|
"kind": "note",
|
|
"line": 171,
|
|
"message": "'b' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 175,
|
|
"kind": "error",
|
|
"line": 175,
|
|
"message": "use of uninitialized value 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 195,
|
|
"kind": "note",
|
|
"line": 195,
|
|
"message": "'c' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 204,
|
|
"kind": "error",
|
|
"line": 204,
|
|
"message": "use of uninitialized value 'c'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 233,
|
|
"kind": "note",
|
|
"line": 234,
|
|
"message": "'out' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 236,
|
|
"kind": "error",
|
|
"line": 237,
|
|
"message": "'out' is uninitialized at return from this function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 243,
|
|
"kind": "warning",
|
|
"line": 244,
|
|
"message": "unreachable code after function that never returns",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 254,
|
|
"kind": "warning",
|
|
"line": 255,
|
|
"message": "unreachable code after function that never returns",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 260,
|
|
"kind": "warning",
|
|
"line": 261,
|
|
"message": "unreachable code after compile-time assertion failure",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 292,
|
|
"kind": "note",
|
|
"line": 292,
|
|
"message": "'result' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 295,
|
|
"kind": "error",
|
|
"line": 295,
|
|
"message": "use of uninitialized value 'result.reg.reg1'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 311,
|
|
"kind": "note",
|
|
"line": 311,
|
|
"message": "'x' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 312,
|
|
"kind": "error",
|
|
"line": 312,
|
|
"message": "use of uninitialized value 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 317,
|
|
"kind": "error",
|
|
"line": 318,
|
|
"message": "field 'x.mem' destroyed out of the middle of a value, preventing the overall value from being destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 323,
|
|
"kind": "note",
|
|
"line": 323,
|
|
"message": "'w' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 324,
|
|
"kind": "error",
|
|
"line": 325,
|
|
"message": "field 'x.mem' destroyed out of the middle of a value, preventing the overall value from being destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 327,
|
|
"kind": "note",
|
|
"line": 327,
|
|
"message": "'z' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 337,
|
|
"kind": "error",
|
|
"line": 337,
|
|
"message": "use of uninitialized value 'z.mem'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 341,
|
|
"kind": "error",
|
|
"line": 341,
|
|
"message": "use of uninitialized value 'w.mem'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 343,
|
|
"kind": "warning",
|
|
"line": 345,
|
|
"message": "assignment to 'twoRegsRP' was never used; assign to '_' instead?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 344,
|
|
"kind": "error",
|
|
"line": 345,
|
|
"message": "field 'twoRegsRP.reg1' destroyed out of the middle of a value, preventing the overall value from being destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 348,
|
|
"kind": "note",
|
|
"line": 348,
|
|
"message": "'single1' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 350,
|
|
"kind": "error",
|
|
"line": 350,
|
|
"message": "use of uninitialized value 'single1'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 364,
|
|
"kind": "note",
|
|
"line": 364,
|
|
"message": "'c' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 366,
|
|
"kind": "error",
|
|
"line": 366,
|
|
"message": "use of uninitialized value 'c'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 375,
|
|
"kind": "warning",
|
|
"line": 376,
|
|
"message": "assignment to 's' was never used; assign to '_' instead?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 415,
|
|
"kind": "error",
|
|
"line": 416,
|
|
"message": "value 'l' cannot be consumed, because 'l.x' is used later",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 420,
|
|
"kind": "note",
|
|
"line": 421,
|
|
"message": "'x' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 425,
|
|
"kind": "error",
|
|
"line": 425,
|
|
"message": "use of uninitialized value 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 467,
|
|
"kind": "note",
|
|
"line": 467,
|
|
"message": "'b' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 470,
|
|
"kind": "error",
|
|
"line": 471,
|
|
"message": "use of uninitialized value 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 479,
|
|
"kind": "note",
|
|
"line": 479,
|
|
"message": "'b' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 481,
|
|
"kind": "error",
|
|
"line": 482,
|
|
"message": "use of uninitialized value 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 491,
|
|
"kind": "error",
|
|
"line": 492,
|
|
"message": "cannot destroy value in non-default address space",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 504,
|
|
"kind": "note",
|
|
"line": 505,
|
|
"message": "'(expression temporary)' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 508,
|
|
"kind": "error",
|
|
"line": 509,
|
|
"message": "use of uninitialized value '(expression temporary)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 518,
|
|
"kind": "warning",
|
|
"line": 519,
|
|
"message": "assignment to 'a' was never used",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 520,
|
|
"kind": "warning",
|
|
"line": 521,
|
|
"message": "assignment to 'b' was never used",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 525,
|
|
"kind": "error",
|
|
"line": 526,
|
|
"message": "cannot consume indirect references to values",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 547,
|
|
"kind": "note",
|
|
"line": 549,
|
|
"message": "'(expression temporary)' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 548,
|
|
"kind": "error",
|
|
"line": 549,
|
|
"message": "use of uninitialized value '(expression temporary)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 557,
|
|
"kind": "warning",
|
|
"line": 558,
|
|
"message": "assignment to 'example.b' was never used",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 562,
|
|
"kind": "warning",
|
|
"line": 563,
|
|
"message": "assignment to 'arg' was never used",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 588,
|
|
"kind": "note",
|
|
"line": 588,
|
|
"message": "'outshape' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 594,
|
|
"kind": "error",
|
|
"line": 595,
|
|
"message": "use of uninitialized value 'outshape'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 599,
|
|
"kind": "warning",
|
|
"line": 600,
|
|
"message": "assignment to 'x' was never used; assign to '_' instead?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 602,
|
|
"kind": "warning",
|
|
"line": 603,
|
|
"message": "variable 'y' was never used, remove it?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 605,
|
|
"kind": "warning",
|
|
"line": 606,
|
|
"message": "ref 'z' was never used, remove it?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 626,
|
|
"kind": "error",
|
|
"line": 627,
|
|
"message": "'tok1' abandoned without being explicitly destroyed: Use `consume() method` to finalize",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 631,
|
|
"kind": "error",
|
|
"line": 633,
|
|
"message": "'tok2' abandoned without being explicitly destroyed: Use `consume() method` to finalize",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 632,
|
|
"kind": "note",
|
|
"line": 633,
|
|
"message": "value was not consumed when an error is thrown",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 682,
|
|
"kind": "error",
|
|
"line": 683,
|
|
"message": "'d' abandoned without being explicitly destroyed: This needs explicit destruction when T isn't linear",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 705,
|
|
"kind": "error",
|
|
"line": 706,
|
|
"message": "field '(expression temporary).first' destroyed out of the middle of a value, preventing the overall value from being destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 755,
|
|
"kind": "note",
|
|
"line": 755,
|
|
"message": "origin was invalidated here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 756,
|
|
"kind": "error",
|
|
"line": 757,
|
|
"message": "use of invalidated interior reference 'origin_of(list).subtree'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 772,
|
|
"kind": "note",
|
|
"line": 772,
|
|
"message": "origin was invalidated here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 773,
|
|
"kind": "error",
|
|
"line": 774,
|
|
"message": "use of invalidated interior reference 'origin_of(pair.left).subtree'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 780,
|
|
"kind": "note",
|
|
"line": 780,
|
|
"message": "origin was invalidated here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 781,
|
|
"kind": "error",
|
|
"line": 781,
|
|
"message": "use of invalidated interior reference 'origin_of(collection).subtree'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 802,
|
|
"kind": "note",
|
|
"line": 802,
|
|
"message": "origin was invalidated here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 803,
|
|
"kind": "error",
|
|
"line": 803,
|
|
"message": "use of invalidated interior reference 'origin_of(list_and_int).subtree'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 807,
|
|
"kind": "note",
|
|
"line": 807,
|
|
"message": "origin was invalidated here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 808,
|
|
"kind": "error",
|
|
"line": 808,
|
|
"message": "use of invalidated interior reference 'origin_of(list_and_int).subtree'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "'self.x' is uninitialized at the implicit return from this function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "'self.y' is uninitialized at the implicit return from this function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 75,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "use of uninitialized value 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 90,
|
|
"kind": "error",
|
|
"line": 90,
|
|
"message": "use of uninitialized value 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 95,
|
|
"kind": "error",
|
|
"line": 95,
|
|
"message": "use of uninitialized value 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 102,
|
|
"kind": "error",
|
|
"line": 102,
|
|
"message": "'a' used with all fields manually initialized but without calling an '__init__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 108,
|
|
"kind": "error",
|
|
"line": 108,
|
|
"message": "use of uninitialized value 'a.y'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 123,
|
|
"kind": "error",
|
|
"line": 123,
|
|
"message": "use of uninitialized value 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 129,
|
|
"kind": "error",
|
|
"line": 129,
|
|
"message": "'a' is uninitialized at return from this function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 132,
|
|
"kind": "error",
|
|
"line": 133,
|
|
"message": "'a' is uninitialized at the implicit return from this function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 153,
|
|
"kind": "error",
|
|
"line": 153,
|
|
"message": "use of uninitialized value 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 175,
|
|
"kind": "error",
|
|
"line": 175,
|
|
"message": "use of uninitialized value 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 204,
|
|
"kind": "error",
|
|
"line": 204,
|
|
"message": "use of uninitialized value 'c'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 236,
|
|
"kind": "error",
|
|
"line": 237,
|
|
"message": "'out' is uninitialized at return from this function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 295,
|
|
"kind": "error",
|
|
"line": 295,
|
|
"message": "use of uninitialized value 'result.reg.reg1'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 312,
|
|
"kind": "error",
|
|
"line": 312,
|
|
"message": "use of uninitialized value 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 317,
|
|
"kind": "error",
|
|
"line": 318,
|
|
"message": "field 'x.mem' destroyed out of the middle of a value, preventing the overall value from being destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 324,
|
|
"kind": "error",
|
|
"line": 325,
|
|
"message": "field 'x.mem' destroyed out of the middle of a value, preventing the overall value from being destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 337,
|
|
"kind": "error",
|
|
"line": 337,
|
|
"message": "use of uninitialized value 'z.mem'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 341,
|
|
"kind": "error",
|
|
"line": 341,
|
|
"message": "use of uninitialized value 'w.mem'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 344,
|
|
"kind": "error",
|
|
"line": 345,
|
|
"message": "field 'twoRegsRP.reg1' destroyed out of the middle of a value, preventing the overall value from being destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 350,
|
|
"kind": "error",
|
|
"line": 350,
|
|
"message": "use of uninitialized value 'single1'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 366,
|
|
"kind": "error",
|
|
"line": 366,
|
|
"message": "use of uninitialized value 'c'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 415,
|
|
"kind": "error",
|
|
"line": 416,
|
|
"message": "value 'l' cannot be consumed, because 'l.x' is used later",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 425,
|
|
"kind": "error",
|
|
"line": 425,
|
|
"message": "use of uninitialized value 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 470,
|
|
"kind": "error",
|
|
"line": 471,
|
|
"message": "use of uninitialized value 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 481,
|
|
"kind": "error",
|
|
"line": 482,
|
|
"message": "use of uninitialized value 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 491,
|
|
"kind": "error",
|
|
"line": 492,
|
|
"message": "cannot destroy value in non-default address space",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 508,
|
|
"kind": "error",
|
|
"line": 509,
|
|
"message": "use of uninitialized value '(expression temporary)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 525,
|
|
"kind": "error",
|
|
"line": 526,
|
|
"message": "cannot consume indirect references to values",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 548,
|
|
"kind": "error",
|
|
"line": 549,
|
|
"message": "use of uninitialized value '(expression temporary)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 594,
|
|
"kind": "error",
|
|
"line": 595,
|
|
"message": "use of uninitialized value 'outshape'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 626,
|
|
"kind": "error",
|
|
"line": 627,
|
|
"message": "'tok1' abandoned without being explicitly destroyed: Use `consume() method` to finalize",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 631,
|
|
"kind": "error",
|
|
"line": 633,
|
|
"message": "'tok2' abandoned without being explicitly destroyed: Use `consume() method` to finalize",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 682,
|
|
"kind": "error",
|
|
"line": 683,
|
|
"message": "'d' abandoned without being explicitly destroyed: This needs explicit destruction when T isn't linear",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 705,
|
|
"kind": "error",
|
|
"line": 706,
|
|
"message": "field '(expression temporary).first' destroyed out of the middle of a value, preventing the overall value from being destroyed",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 756,
|
|
"kind": "error",
|
|
"line": 757,
|
|
"message": "use of invalidated interior reference 'origin_of(list).subtree'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 773,
|
|
"kind": "error",
|
|
"line": 774,
|
|
"message": "use of invalidated interior reference 'origin_of(pair.left).subtree'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 781,
|
|
"kind": "error",
|
|
"line": 781,
|
|
"message": "use of invalidated interior reference 'origin_of(collection).subtree'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 803,
|
|
"kind": "error",
|
|
"line": 803,
|
|
"message": "use of invalidated interior reference 'origin_of(list_and_int).subtree'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 808,
|
|
"kind": "error",
|
|
"line": 808,
|
|
"message": "use of invalidated interior reference 'origin_of(list_and_int).subtree'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/ownership/ownership_cldiags.mojo",
|
|
"id": "diagnostics/mojo-parser/ownership/ownership_cldiags",
|
|
"mode": "run",
|
|
"pass": "lifetimes",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/ownership/ownership_cldiags.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -mlir-print-debuginfo | kgen-opt -lower-semantic-cf -check-lifetimes -verify-parameters -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 289,
|
|
"kind": "warning",
|
|
"line": 289,
|
|
"message": "assignment to 'x' was never used",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/ownership/ownership_eh.mojo",
|
|
"id": "diagnostics/mojo-parser/ownership/ownership_eh",
|
|
"mode": "run",
|
|
"pass": "lifetimes",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/ownership/ownership_eh.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated %s --mlir-print-debuginfo -o %t.mlir",
|
|
"kgen-opt %t.mlir -lower-semantic-cf -check-lifetimes -verify-parameters -verify-diagnostics | FileCheck %s",
|
|
"%parse-mojo-isolated %s --debug-level full -o /dev/null"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 193,
|
|
"kind": "warning",
|
|
"line": 194,
|
|
"message": "assignment to 'aref2' was never used",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/ownership/ownership_refs.mojo",
|
|
"id": "diagnostics/mojo-parser/ownership/ownership_refs",
|
|
"mode": "run",
|
|
"pass": "lifetimes",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/ownership/ownership_refs.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated %s --mlir-print-debuginfo -o %t.mlir",
|
|
"kgen-opt %t.mlir -lower-semantic-cf -check-lifetimes -verify-parameters -verify-diagnostics | FileCheck %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "use of unknown declaration 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "note",
|
|
"line": 33,
|
|
"message": "'Thing' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "unexpected parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 51,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "invalid redefinition of 'p2'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "note",
|
|
"line": 53,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 59,
|
|
"kind": "note",
|
|
"line": 60,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "invalid call to 'method': value passed to 'other' cannot be converted from 'Parameterized[{{.*}}12{{.*}}]' to 'Parameterized[{{.*}}11{{.*}}]'",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "unexpected parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "'Thing' failed to infer parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 82,
|
|
"kind": "note",
|
|
"line": 83,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "note",
|
|
"line": 88,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 100,
|
|
"kind": "error",
|
|
"line": 101,
|
|
"message": "invalid call to '__add__': value passed to 'rhs' cannot be converted from 'MySIMD[Int(1), float64]' to 'MySIMD[Int(2), int32]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 103,
|
|
"kind": "error",
|
|
"line": 104,
|
|
"message": "invalid call to 'twoUses': value passed to 'rhs' cannot be converted from 'MySIMD[Int(2), int32]' to 'MySIMD[Int(1), dt2]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 113,
|
|
"kind": "note",
|
|
"line": 114,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 128,
|
|
"kind": "error",
|
|
"line": 129,
|
|
"message": "invalid call to 'infer_then_convert': value passed to 'rhs' cannot be converted from 'TwoParams[Int(1), Int(2)]' to 'TwoParams[Int(1), Int(1)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 132,
|
|
"kind": "note",
|
|
"line": 133,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "invalid call to 'badReboundType': 'badReboundType' parameter 'val' has '__mlir_type.`!kgen.scalar<f64>`' type, but value has type '__mlir_type.`!kgen.scalar<f32>`'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 142,
|
|
"kind": "note",
|
|
"line": 143,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 148,
|
|
"kind": "error",
|
|
"line": 149,
|
|
"message": "invalid call to 'generic_fn': unexpected parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 153,
|
|
"kind": "note",
|
|
"line": 153,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 154,
|
|
"kind": "error",
|
|
"line": 154,
|
|
"message": "invalid redefinition of 'dt'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 158,
|
|
"kind": "note",
|
|
"line": 160,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 159,
|
|
"kind": "error",
|
|
"line": 160,
|
|
"message": "invalid redefinition of 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 164,
|
|
"kind": "error",
|
|
"line": 165,
|
|
"message": "required positional parameter follows optional positional parameter; change the ordering",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 175,
|
|
"kind": "error",
|
|
"line": 176,
|
|
"message": "variadic keyword parameters not supported yet",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 187,
|
|
"kind": "note",
|
|
"line": 188,
|
|
"message": "'StructWithVariadic' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 192,
|
|
"kind": "error",
|
|
"line": 193,
|
|
"message": "unbound syntax (i.e. `_`) cannot be passed as a variadic parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 203,
|
|
"kind": "error",
|
|
"line": 204,
|
|
"message": "only traits may contain a comptime member without an initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 206,
|
|
"kind": "error",
|
|
"line": 207,
|
|
"message": "cannot use a dynamic value in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 209,
|
|
"kind": "error",
|
|
"line": 210,
|
|
"message": "expected '=' after comptime declaration",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 225,
|
|
"kind": "error",
|
|
"line": 226,
|
|
"message": "cannot use a dynamic value in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 248,
|
|
"kind": "error",
|
|
"line": 249,
|
|
"message": "cannot access comptime member 'a3' with unbound parameter 'StructWithParams.b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 251,
|
|
"kind": "error",
|
|
"line": 252,
|
|
"message": "cannot access comptime member 'a3' with unbound parameter 'StructWithParams.a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 254,
|
|
"kind": "error",
|
|
"line": 255,
|
|
"message": "unexpected parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 265,
|
|
"kind": "error",
|
|
"line": 266,
|
|
"message": "required positional parameter follows optional positional parameter; change the ordering",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 271,
|
|
"kind": "note",
|
|
"line": 271,
|
|
"message": "declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 276,
|
|
"kind": "error",
|
|
"line": 277,
|
|
"message": "unexpected parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 281,
|
|
"kind": "error",
|
|
"line": 282,
|
|
"message": "failed to infer parameter 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 291,
|
|
"kind": "note",
|
|
"line": 292,
|
|
"message": "declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 297,
|
|
"kind": "error",
|
|
"line": 298,
|
|
"message": "invalid call to 'has_pos_only': unexpected keyword parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 299,
|
|
"kind": "error",
|
|
"line": 300,
|
|
"message": "invalid call to 'has_pos_only': unexpected keyword parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 302,
|
|
"kind": "error",
|
|
"line": 303,
|
|
"message": "invalid call to 'has_pos_only': failed to infer parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 309,
|
|
"kind": "error",
|
|
"line": 310,
|
|
"message": "unexpected keyword parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 311,
|
|
"kind": "error",
|
|
"line": 312,
|
|
"message": "unexpected keyword parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 321,
|
|
"kind": "note",
|
|
"line": 323,
|
|
"message": "declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 327,
|
|
"kind": "note",
|
|
"line": 329,
|
|
"message": "declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 335,
|
|
"kind": "note",
|
|
"line": 335,
|
|
"message": "previously specified here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 336,
|
|
"kind": "error",
|
|
"line": 336,
|
|
"message": "keyword parameter 'a' was already used; remove the duplicate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 345,
|
|
"kind": "error",
|
|
"line": 346,
|
|
"message": "unexpected keyword parameter 'args'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 347,
|
|
"kind": "error",
|
|
"line": 348,
|
|
"message": "unexpected keyword parameter 'c'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 349,
|
|
"kind": "error",
|
|
"line": 350,
|
|
"message": "unexpected keyword parameter 'z'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 351,
|
|
"kind": "error",
|
|
"line": 352,
|
|
"message": "unexpected keyword parameter 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 361,
|
|
"kind": "note",
|
|
"line": 364,
|
|
"message": "declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 362,
|
|
"kind": "note",
|
|
"line": 364,
|
|
"message": "def __init__(out self) # note - generated function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 369,
|
|
"kind": "error",
|
|
"line": 370,
|
|
"message": "unexpected keyword parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 371,
|
|
"kind": "error",
|
|
"line": 372,
|
|
"message": "unexpected keyword parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 373,
|
|
"kind": "error",
|
|
"line": 374,
|
|
"message": "failed to infer parameter 'b' of parent struct 'PosOnlyStruct'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 383,
|
|
"kind": "note",
|
|
"line": 384,
|
|
"message": "struct declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 385,
|
|
"kind": "note",
|
|
"line": 387,
|
|
"message": "declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 395,
|
|
"kind": "error",
|
|
"line": 396,
|
|
"message": "invalid call to 'foo': failed to infer parameter 'a' of parent struct 'CtadStruct'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 407,
|
|
"kind": "error",
|
|
"line": 408,
|
|
"message": "inferred parameter of type 'ParametricOnInt[MUT]' cannot depend on non-inferred parameter 'MUT'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 426,
|
|
"kind": "note",
|
|
"line": 427,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 432,
|
|
"kind": "error",
|
|
"line": 433,
|
|
"message": "invalid call to 'take_some_trait': value passed to 'x' cannot be converted from 'NoTraitsType' to 'T', argument type 'NoTraitsType' does not conform to trait 'SomeTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 446,
|
|
"kind": "note",
|
|
"line": 447,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 451,
|
|
"kind": "note",
|
|
"line": 452,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 456,
|
|
"kind": "note",
|
|
"line": 457,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 460,
|
|
"kind": "note",
|
|
"line": 461,
|
|
"message": "'InferredParam' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 465,
|
|
"kind": "note",
|
|
"line": 466,
|
|
"message": "declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 471,
|
|
"kind": "error",
|
|
"line": 472,
|
|
"message": "'InferredParam' failed to infer parameter 'use', specify the parameter or use '_' or '...' to unbind the parameter explicitly",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 473,
|
|
"kind": "error",
|
|
"line": 474,
|
|
"message": "'InferredParam' failed to infer parameter 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 475,
|
|
"kind": "error",
|
|
"line": 476,
|
|
"message": "'MultiInferred' failed to infer parameter 'uP', specify the parameter or use '_' or '...' to unbind the parameter explicitly",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 477,
|
|
"kind": "error",
|
|
"line": 478,
|
|
"message": "'MultiInferred' failed to infer parameter 'uQ'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 482,
|
|
"kind": "error",
|
|
"line": 483,
|
|
"message": "failed to infer parameter 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 484,
|
|
"kind": "error",
|
|
"line": 485,
|
|
"message": "invalid call to 'autoparams': unexpected parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 486,
|
|
"kind": "error",
|
|
"line": 487,
|
|
"message": "value passed to 'x' cannot be converted from 'IntLiteral[1]' to 'ParamType[x.p]', it depends on an unresolved parameter 'x.p'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 488,
|
|
"kind": "error",
|
|
"line": 489,
|
|
"message": "value passed to 'x' cannot be converted from 'IntLiteral[1]' to 'MemParamType[x.p]', it depends on an unresolved parameter 'x.p'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 490,
|
|
"kind": "error",
|
|
"line": 491,
|
|
"message": "value passed to 'x' cannot be converted from 'IntLiteral[1]' to 'MemParamType[p]', it depends on an unresolved parameter 'p'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 493,
|
|
"kind": "error",
|
|
"line": 494,
|
|
"message": "value cannot be converted from 'IntLiteral[1]' to 'ParamType[f]', it depends on an unresolved parameter 'f'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 497,
|
|
"kind": "note",
|
|
"line": 498,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 504,
|
|
"kind": "error",
|
|
"line": 506,
|
|
"message": "invalid call to 'mem_param_with_ref': value passed to 'b' cannot be converted from 'MemParamType[Int(3)]' to ref 'MemParamType[Int(3)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 505,
|
|
"kind": "note",
|
|
"line": 506,
|
|
"message": "operand address space '2' doesn't match expected address space '3'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 509,
|
|
"kind": "note",
|
|
"line": 510,
|
|
"message": "declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 513,
|
|
"kind": "error",
|
|
"line": 514,
|
|
"message": "invalid call to 'substitution_edge_case': failed to infer parameter 'p'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 524,
|
|
"kind": "note",
|
|
"line": 525,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 529,
|
|
"kind": "error",
|
|
"line": 530,
|
|
"message": "invalid call to 'has_expr_for_elaborator': value passed to 'x' cannot be converted from 'HasSize[(width + Int(5))]' to 'HasSize[(width + Int(4))]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 534,
|
|
"kind": "note",
|
|
"line": 535,
|
|
"message": "struct declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 536,
|
|
"kind": "note",
|
|
"line": 537,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 541,
|
|
"kind": "error",
|
|
"line": 542,
|
|
"message": "failed to infer parameter 'A' of parent struct 'UnusedInitSelfParam'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 544,
|
|
"kind": "note",
|
|
"line": 548,
|
|
"message": "candidate not viable: missing required argument: 'move'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 545,
|
|
"kind": "note",
|
|
"line": 548,
|
|
"message": "def __init__(out self, *, deinit move: Self) # note - generated function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 546,
|
|
"kind": "note",
|
|
"line": 548,
|
|
"message": "candidate not viable: missing required argument: 'copy'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 547,
|
|
"kind": "note",
|
|
"line": 548,
|
|
"message": "def __init__(out self, *, copy: Self) # note - generated function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 549,
|
|
"kind": "note",
|
|
"line": 550,
|
|
"message": "candidate not viable: return type 'SimpleSIMD[Int(50), Int(1)]' parameter 'size' value 'Int(1)' doesn't match expected value 'Int(4)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 553,
|
|
"kind": "error",
|
|
"line": 554,
|
|
"message": "no matching function in initialization",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 556,
|
|
"kind": "note",
|
|
"line": 557,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 572,
|
|
"kind": "error",
|
|
"line": 574,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[get_int[Int(42)]()]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 573,
|
|
"kind": "note",
|
|
"line": 574,
|
|
"message": "types parameters include unfolded expression at parser time; try rebinding to a consistent type?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 576,
|
|
"kind": "error",
|
|
"line": 578,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[get_int2(Int(42))]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 577,
|
|
"kind": "note",
|
|
"line": 578,
|
|
"message": "types parameters include unfolded expression at parser time; try rebinding to a consistent type?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 580,
|
|
"kind": "error",
|
|
"line": 581,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[HoldsInt().t]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 583,
|
|
"kind": "error",
|
|
"line": 585,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[HoldsInt.get_int()]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 584,
|
|
"kind": "note",
|
|
"line": 585,
|
|
"message": "types parameters include unfolded expression at parser time; try rebinding to a consistent type?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 599,
|
|
"kind": "error",
|
|
"line": 600,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[size]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 601,
|
|
"kind": "error",
|
|
"line": 602,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[size]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 603,
|
|
"kind": "error",
|
|
"line": 604,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[size]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 605,
|
|
"kind": "error",
|
|
"line": 607,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[(size / Int(4))]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 606,
|
|
"kind": "note",
|
|
"line": 607,
|
|
"message": "types parameters include unfolded expression at parser time; try rebinding to a consistent type?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 608,
|
|
"kind": "error",
|
|
"line": 611,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[Int((mul size, size, 1522756)) if (lt (mul size, 1234), 42) else Int((add (mul size, 1234), -1))]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 609,
|
|
"kind": "note",
|
|
"line": 611,
|
|
"message": ".size of the first value is 'Int((mul size, size, 1522756)) if (lt (mul size, 1234), 42) else Int((add (mul size, 1234), -1))' but the second value is 'Int(4)'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 610,
|
|
"kind": "note",
|
|
"line": 611,
|
|
"message": "types parameters include unfolded expression at parser time; try rebinding to a consistent type?",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 612,
|
|
"kind": "error",
|
|
"line": 613,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[Int(42)]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 616,
|
|
"kind": "error",
|
|
"line": 617,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[Int(42)]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 620,
|
|
"kind": "error",
|
|
"line": 623,
|
|
"message": "cannot implicitly convert",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 621,
|
|
"kind": "note",
|
|
"line": 623,
|
|
"message": ".T.origin of the first value is 'MutUntrackedOrigin' but the second value is 'MutAnyOrigin'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 622,
|
|
"kind": "note",
|
|
"line": 623,
|
|
"message": "'MutAnyOrigin' is aka 'MutUnsafeAnyOrigin'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 632,
|
|
"kind": "error",
|
|
"line": 633,
|
|
"message": "cannot be converted from 'HasSize[size]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 635,
|
|
"kind": "note",
|
|
"line": 636,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 638,
|
|
"kind": "error",
|
|
"line": 639,
|
|
"message": "invalid call to 'take_a_4': value passed to 'a' cannot be converted from 'TakeAnything[origin_of(x)]' to 'TakeAnything[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 642,
|
|
"kind": "error",
|
|
"line": 643,
|
|
"message": "unbound packs not supported yet in runtime arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 650,
|
|
"kind": "error",
|
|
"line": 651,
|
|
"message": "parameter after `...` must be passed by keyword",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 654,
|
|
"kind": "note",
|
|
"line": 655,
|
|
"message": "'Foo' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 658,
|
|
"kind": "error",
|
|
"line": 659,
|
|
"message": "failed to infer from type 'SomeStruct[Int(1), Int(1), Int(1)]', it overwrites an explicitly unbound parameter '_' at #0",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 661,
|
|
"kind": "note",
|
|
"line": 662,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 665,
|
|
"kind": "note",
|
|
"line": 666,
|
|
"message": "'NestedDeps' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 674,
|
|
"kind": "note",
|
|
"line": 675,
|
|
"message": "'TakeAutoParamVA' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 682,
|
|
"kind": "error",
|
|
"line": 683,
|
|
"message": "invalid unpack in non-variadic parameter binding",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 685,
|
|
"kind": "error",
|
|
"line": 686,
|
|
"message": "value passed to 'shape' cannot be converted from 'IntLiteral[23456]' to 'AutoParamVA[$1]', it depends on an unresolved parameter '$0'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 689,
|
|
"kind": "error",
|
|
"line": 690,
|
|
"message": "'NestedDeps' failed to infer parameter 'b', specify the parameter or use '_' or '...' to unbind the parameter explicitly",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 697,
|
|
"kind": "error",
|
|
"line": 698,
|
|
"message": "'UnboundFieldContainer[Int, _]' is not concrete, use '[]' to bind missing parameters",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 712,
|
|
"kind": "error",
|
|
"line": 713,
|
|
"message": "failed to infer from type 'IntLiteral[5]', it overwrites an explicitly unbound parameter '_' at #0",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 731,
|
|
"kind": "note",
|
|
"line": 732,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 738,
|
|
"kind": "error",
|
|
"line": 739,
|
|
"message": "invalid call to 'helper': value passed to 'bag' cannot be converted from 'Bag[Leaf, tail=Int(1)]' to 'Bag[Leaf]'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "use of unknown declaration 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "unexpected parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 51,
|
|
"kind": "error",
|
|
"line": 53,
|
|
"message": "invalid redefinition of 'p2'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "invalid call to 'method': value passed to 'other' cannot be converted from 'Parameterized[{{.*}}12{{.*}}]' to 'Parameterized[{{.*}}11{{.*}}]'",
|
|
"regex": true
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "unexpected parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "'Thing' failed to infer parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 100,
|
|
"kind": "error",
|
|
"line": 101,
|
|
"message": "invalid call to '__add__': value passed to 'rhs' cannot be converted from 'MySIMD[Int(1), float64]' to 'MySIMD[Int(2), int32]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 103,
|
|
"kind": "error",
|
|
"line": 104,
|
|
"message": "invalid call to 'twoUses': value passed to 'rhs' cannot be converted from 'MySIMD[Int(2), int32]' to 'MySIMD[Int(1), dt2]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 128,
|
|
"kind": "error",
|
|
"line": 129,
|
|
"message": "invalid call to 'infer_then_convert': value passed to 'rhs' cannot be converted from 'TwoParams[Int(1), Int(2)]' to 'TwoParams[Int(1), Int(1)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 138,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "invalid call to 'badReboundType': 'badReboundType' parameter 'val' has '__mlir_type.`!kgen.scalar<f64>`' type, but value has type '__mlir_type.`!kgen.scalar<f32>`'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 148,
|
|
"kind": "error",
|
|
"line": 149,
|
|
"message": "invalid call to 'generic_fn': unexpected parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 154,
|
|
"kind": "error",
|
|
"line": 154,
|
|
"message": "invalid redefinition of 'dt'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 159,
|
|
"kind": "error",
|
|
"line": 160,
|
|
"message": "invalid redefinition of 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 164,
|
|
"kind": "error",
|
|
"line": 165,
|
|
"message": "required positional parameter follows optional positional parameter; change the ordering",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 175,
|
|
"kind": "error",
|
|
"line": 176,
|
|
"message": "variadic keyword parameters not supported yet",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 192,
|
|
"kind": "error",
|
|
"line": 193,
|
|
"message": "unbound syntax (i.e. `_`) cannot be passed as a variadic parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 203,
|
|
"kind": "error",
|
|
"line": 204,
|
|
"message": "only traits may contain a comptime member without an initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 206,
|
|
"kind": "error",
|
|
"line": 207,
|
|
"message": "cannot use a dynamic value in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 209,
|
|
"kind": "error",
|
|
"line": 210,
|
|
"message": "expected '=' after comptime declaration",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 225,
|
|
"kind": "error",
|
|
"line": 226,
|
|
"message": "cannot use a dynamic value in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 248,
|
|
"kind": "error",
|
|
"line": 249,
|
|
"message": "cannot access comptime member 'a3' with unbound parameter 'StructWithParams.b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 251,
|
|
"kind": "error",
|
|
"line": 252,
|
|
"message": "cannot access comptime member 'a3' with unbound parameter 'StructWithParams.a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 254,
|
|
"kind": "error",
|
|
"line": 255,
|
|
"message": "unexpected parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 265,
|
|
"kind": "error",
|
|
"line": 266,
|
|
"message": "required positional parameter follows optional positional parameter; change the ordering",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 276,
|
|
"kind": "error",
|
|
"line": 277,
|
|
"message": "unexpected parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 281,
|
|
"kind": "error",
|
|
"line": 282,
|
|
"message": "failed to infer parameter 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 297,
|
|
"kind": "error",
|
|
"line": 298,
|
|
"message": "invalid call to 'has_pos_only': unexpected keyword parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 299,
|
|
"kind": "error",
|
|
"line": 300,
|
|
"message": "invalid call to 'has_pos_only': unexpected keyword parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 302,
|
|
"kind": "error",
|
|
"line": 303,
|
|
"message": "invalid call to 'has_pos_only': failed to infer parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 309,
|
|
"kind": "error",
|
|
"line": 310,
|
|
"message": "unexpected keyword parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 311,
|
|
"kind": "error",
|
|
"line": 312,
|
|
"message": "unexpected keyword parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 336,
|
|
"kind": "error",
|
|
"line": 336,
|
|
"message": "keyword parameter 'a' was already used; remove the duplicate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 345,
|
|
"kind": "error",
|
|
"line": 346,
|
|
"message": "unexpected keyword parameter 'args'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 347,
|
|
"kind": "error",
|
|
"line": 348,
|
|
"message": "unexpected keyword parameter 'c'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 349,
|
|
"kind": "error",
|
|
"line": 350,
|
|
"message": "unexpected keyword parameter 'z'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 351,
|
|
"kind": "error",
|
|
"line": 352,
|
|
"message": "unexpected keyword parameter 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 369,
|
|
"kind": "error",
|
|
"line": 370,
|
|
"message": "unexpected keyword parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 371,
|
|
"kind": "error",
|
|
"line": 372,
|
|
"message": "unexpected keyword parameter 'b'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 373,
|
|
"kind": "error",
|
|
"line": 374,
|
|
"message": "failed to infer parameter 'b' of parent struct 'PosOnlyStruct'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 395,
|
|
"kind": "error",
|
|
"line": 396,
|
|
"message": "invalid call to 'foo': failed to infer parameter 'a' of parent struct 'CtadStruct'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 407,
|
|
"kind": "error",
|
|
"line": 408,
|
|
"message": "inferred parameter of type 'ParametricOnInt[MUT]' cannot depend on non-inferred parameter 'MUT'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 432,
|
|
"kind": "error",
|
|
"line": 433,
|
|
"message": "invalid call to 'take_some_trait': value passed to 'x' cannot be converted from 'NoTraitsType' to 'T', argument type 'NoTraitsType' does not conform to trait 'SomeTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 471,
|
|
"kind": "error",
|
|
"line": 472,
|
|
"message": "'InferredParam' failed to infer parameter 'use', specify the parameter or use '_' or '...' to unbind the parameter explicitly",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 473,
|
|
"kind": "error",
|
|
"line": 474,
|
|
"message": "'InferredParam' failed to infer parameter 'T'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 475,
|
|
"kind": "error",
|
|
"line": 476,
|
|
"message": "'MultiInferred' failed to infer parameter 'uP', specify the parameter or use '_' or '...' to unbind the parameter explicitly",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 477,
|
|
"kind": "error",
|
|
"line": 478,
|
|
"message": "'MultiInferred' failed to infer parameter 'uQ'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 482,
|
|
"kind": "error",
|
|
"line": 483,
|
|
"message": "failed to infer parameter 'a'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 484,
|
|
"kind": "error",
|
|
"line": 485,
|
|
"message": "invalid call to 'autoparams': unexpected parameter",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 486,
|
|
"kind": "error",
|
|
"line": 487,
|
|
"message": "value passed to 'x' cannot be converted from 'IntLiteral[1]' to 'ParamType[x.p]', it depends on an unresolved parameter 'x.p'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 488,
|
|
"kind": "error",
|
|
"line": 489,
|
|
"message": "value passed to 'x' cannot be converted from 'IntLiteral[1]' to 'MemParamType[x.p]', it depends on an unresolved parameter 'x.p'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 490,
|
|
"kind": "error",
|
|
"line": 491,
|
|
"message": "value passed to 'x' cannot be converted from 'IntLiteral[1]' to 'MemParamType[p]', it depends on an unresolved parameter 'p'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 493,
|
|
"kind": "error",
|
|
"line": 494,
|
|
"message": "value cannot be converted from 'IntLiteral[1]' to 'ParamType[f]', it depends on an unresolved parameter 'f'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 504,
|
|
"kind": "error",
|
|
"line": 506,
|
|
"message": "invalid call to 'mem_param_with_ref': value passed to 'b' cannot be converted from 'MemParamType[Int(3)]' to ref 'MemParamType[Int(3)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 513,
|
|
"kind": "error",
|
|
"line": 514,
|
|
"message": "invalid call to 'substitution_edge_case': failed to infer parameter 'p'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 529,
|
|
"kind": "error",
|
|
"line": 530,
|
|
"message": "invalid call to 'has_expr_for_elaborator': value passed to 'x' cannot be converted from 'HasSize[(width + Int(5))]' to 'HasSize[(width + Int(4))]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 541,
|
|
"kind": "error",
|
|
"line": 542,
|
|
"message": "failed to infer parameter 'A' of parent struct 'UnusedInitSelfParam'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 553,
|
|
"kind": "error",
|
|
"line": 554,
|
|
"message": "no matching function in initialization",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 572,
|
|
"kind": "error",
|
|
"line": 574,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[get_int[Int(42)]()]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 576,
|
|
"kind": "error",
|
|
"line": 578,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[get_int2(Int(42))]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 580,
|
|
"kind": "error",
|
|
"line": 581,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[HoldsInt().t]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 583,
|
|
"kind": "error",
|
|
"line": 585,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[HoldsInt.get_int()]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 599,
|
|
"kind": "error",
|
|
"line": 600,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[size]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 601,
|
|
"kind": "error",
|
|
"line": 602,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[size]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 603,
|
|
"kind": "error",
|
|
"line": 604,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[size]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 605,
|
|
"kind": "error",
|
|
"line": 607,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[(size / Int(4))]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 608,
|
|
"kind": "error",
|
|
"line": 611,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[Int((mul size, size, 1522756)) if (lt (mul size, 1234), 42) else Int((add (mul size, 1234), -1))]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 612,
|
|
"kind": "error",
|
|
"line": 613,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[Int(42)]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 616,
|
|
"kind": "error",
|
|
"line": 617,
|
|
"message": "invalid call to 'takes4': value passed to 'x' cannot be converted from 'HasSize[Int(42)]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 620,
|
|
"kind": "error",
|
|
"line": 623,
|
|
"message": "cannot implicitly convert",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 632,
|
|
"kind": "error",
|
|
"line": 633,
|
|
"message": "cannot be converted from 'HasSize[size]' to 'HasSize[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 638,
|
|
"kind": "error",
|
|
"line": 639,
|
|
"message": "invalid call to 'take_a_4': value passed to 'a' cannot be converted from 'TakeAnything[origin_of(x)]' to 'TakeAnything[Int(4)]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 642,
|
|
"kind": "error",
|
|
"line": 643,
|
|
"message": "unbound packs not supported yet in runtime arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 650,
|
|
"kind": "error",
|
|
"line": 651,
|
|
"message": "parameter after `...` must be passed by keyword",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 658,
|
|
"kind": "error",
|
|
"line": 659,
|
|
"message": "failed to infer from type 'SomeStruct[Int(1), Int(1), Int(1)]', it overwrites an explicitly unbound parameter '_' at #0",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 682,
|
|
"kind": "error",
|
|
"line": 683,
|
|
"message": "invalid unpack in non-variadic parameter binding",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 685,
|
|
"kind": "error",
|
|
"line": 686,
|
|
"message": "value passed to 'shape' cannot be converted from 'IntLiteral[23456]' to 'AutoParamVA[$1]', it depends on an unresolved parameter '$0'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 689,
|
|
"kind": "error",
|
|
"line": 690,
|
|
"message": "'NestedDeps' failed to infer parameter 'b', specify the parameter or use '_' or '...' to unbind the parameter explicitly",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 697,
|
|
"kind": "error",
|
|
"line": 698,
|
|
"message": "'UnboundFieldContainer[Int, _]' is not concrete, use '[]' to bind missing parameters",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 712,
|
|
"kind": "error",
|
|
"line": 713,
|
|
"message": "failed to infer from type 'IntLiteral[5]', it overwrites an explicitly unbound parameter '_' at #0",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 738,
|
|
"kind": "error",
|
|
"line": 739,
|
|
"message": "invalid call to 'helper': value passed to 'bag' cannot be converted from 'Bag[Leaf, tail=Int(1)]' to 'Bag[Leaf]'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/parameters_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/parameters_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/parameters_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "error",
|
|
"line": 20,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "error",
|
|
"line": 20,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/punctuation_tokens.mojo",
|
|
"id": "diagnostics/mojo-parser/punctuation_tokens",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/punctuation_tokens.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "note",
|
|
"line": 24,
|
|
"message": "or mark surrounding function as 'raises'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "cannot call function that may raise in a context that cannot raise",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "note",
|
|
"line": 29,
|
|
"message": "try surrounding the call in a 'try' block",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "cannot call function that may raise in a context that cannot raise",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/raising_getter_binds_parameters.mojo",
|
|
"id": "diagnostics/mojo-parser/raising_getter_binds_parameters",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/raising_getter_binds_parameters.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated --verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "'NotBool' does not implement the '__bool__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "cannot use a dynamic value in 'comptime assert' expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "cannot implicitly convert",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "'comptime assert' must be inside a function; move this into a function body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 45,
|
|
"kind": "note",
|
|
"line": 48,
|
|
"message": "cannot prove constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 46,
|
|
"kind": "note",
|
|
"line": 48,
|
|
"message": "constraint declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "note",
|
|
"line": 48,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "error",
|
|
"line": 81,
|
|
"message": "invalid call to 'requires_natural': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 80,
|
|
"kind": "note",
|
|
"line": 81,
|
|
"message": "provide evidence for the constraint here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "error",
|
|
"line": 85,
|
|
"message": "invalid call to 'requires_natural': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 84,
|
|
"kind": "note",
|
|
"line": 85,
|
|
"message": "provide evidence for the constraint here to aid in candidate selection",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 95,
|
|
"kind": "error",
|
|
"line": 96,
|
|
"message": "invalid call to 'requires_natural': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 119,
|
|
"kind": "error",
|
|
"line": 121,
|
|
"message": "invalid call to 'requires_natural': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 120,
|
|
"kind": "note",
|
|
"line": 121,
|
|
"message": "provide evidence for the constraint here to aid in candidate selection",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "'NotBool' does not implement the '__bool__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "cannot use a dynamic value in 'comptime assert' expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "error",
|
|
"line": 37,
|
|
"message": "cannot implicitly convert",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "'comptime assert' must be inside a function; move this into a function body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "error",
|
|
"line": 81,
|
|
"message": "invalid call to 'requires_natural': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 83,
|
|
"kind": "error",
|
|
"line": 85,
|
|
"message": "invalid call to 'requires_natural': lacking evidence to prove correctness",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 95,
|
|
"kind": "error",
|
|
"line": 96,
|
|
"message": "invalid call to 'requires_natural': violated constraint",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 119,
|
|
"kind": "error",
|
|
"line": 121,
|
|
"message": "invalid call to 'requires_natural': lacking evidence to prove correctness",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/statements/comptime_assert_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/statements/comptime_assert_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/statements/comptime_assert_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "'return' must be inside a function; move this into a function body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "statement indentation must match the rest of the block; adjust to align",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "NotBoolConvertible' does not implement the '__bool__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "'if' statement does not support decorators; remove the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 54,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "cannot use a dynamic value in 'comptime if' condition",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 60,
|
|
"message": "cannot use a dynamic value in 'comptime if' condition",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 65,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "'comptime if' statement does not support decorators; remove the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 71,
|
|
"message": "'comptime' cannot be used with 'elif'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 102,
|
|
"kind": "error",
|
|
"line": 104,
|
|
"message": "'my_iter_no_next' does not conform to 'Iterable'; add conformance to use in a 'for' loop",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 103,
|
|
"kind": "note",
|
|
"line": 104,
|
|
"message": "to conform to 'Iterable', add it to the struct declaration: 'struct Foo(Iterable):'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 107,
|
|
"kind": "error",
|
|
"line": 108,
|
|
"message": "'MyList_no_iter' does not implement the '__iter__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 111,
|
|
"kind": "error",
|
|
"line": 113,
|
|
"message": "'my_iter_no_next' does not conform to 'Iterable'; add conformance to use in a 'for' loop",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 112,
|
|
"kind": "note",
|
|
"line": 113,
|
|
"message": "to conform to 'Iterable', add it to the struct declaration: 'struct Foo(Iterable):'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 118,
|
|
"kind": "error",
|
|
"line": 119,
|
|
"message": "'FloatLiteral[1]' does not implement the '__iter__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 139,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 140,
|
|
"kind": "error",
|
|
"line": 140,
|
|
"message": "use of unknown declaration 'i'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 143,
|
|
"kind": "error",
|
|
"line": 143,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 168,
|
|
"kind": "error",
|
|
"line": 169,
|
|
"message": "expected ':' or ',' after 'with' expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 173,
|
|
"kind": "error",
|
|
"line": 174,
|
|
"message": "'raise' requires a surrounding 'try' block or the enclosing function to declare 'raises'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 178,
|
|
"kind": "error",
|
|
"line": 179,
|
|
"message": "'raise' requires a surrounding 'try' block or the enclosing function to declare 'raises'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 185,
|
|
"kind": "note",
|
|
"line": 185,
|
|
"message": "'BadCM' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 198,
|
|
"kind": "error",
|
|
"line": 199,
|
|
"message": "context manager of type 'BadCM' defines a consuming __enter__ method as well as an __exit__ method; either remove 'var' from its '__enter__' method or remove the '__exit__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 206,
|
|
"kind": "note",
|
|
"line": 207,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 212,
|
|
"kind": "error",
|
|
"line": 213,
|
|
"message": "value passed to 'self' cannot be converted from type value 'MyBool' to an instance of 'MyBool'; did you mean to instantiate 'MyBool'?",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 21,
|
|
"kind": "error",
|
|
"line": 22,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "'return' must be inside a function; move this into a function body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "statement indentation must match the rest of the block; adjust to align",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "NotBoolConvertible' does not implement the '__bool__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "'if' statement does not support decorators; remove the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 54,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "cannot use a dynamic value in 'comptime if' condition",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "error",
|
|
"line": 60,
|
|
"message": "cannot use a dynamic value in 'comptime if' condition",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 65,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "'comptime if' statement does not support decorators; remove the decorator",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 71,
|
|
"message": "'comptime' cannot be used with 'elif'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 102,
|
|
"kind": "error",
|
|
"line": 104,
|
|
"message": "'my_iter_no_next' does not conform to 'Iterable'; add conformance to use in a 'for' loop",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 107,
|
|
"kind": "error",
|
|
"line": 108,
|
|
"message": "'MyList_no_iter' does not implement the '__iter__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 111,
|
|
"kind": "error",
|
|
"line": 113,
|
|
"message": "'my_iter_no_next' does not conform to 'Iterable'; add conformance to use in a 'for' loop",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 118,
|
|
"kind": "error",
|
|
"line": 119,
|
|
"message": "'FloatLiteral[1]' does not implement the '__iter__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 139,
|
|
"kind": "error",
|
|
"line": 139,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 140,
|
|
"kind": "error",
|
|
"line": 140,
|
|
"message": "use of unknown declaration 'i'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 143,
|
|
"kind": "error",
|
|
"line": 143,
|
|
"message": "expression must be mutable in assignment",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 168,
|
|
"kind": "error",
|
|
"line": 169,
|
|
"message": "expected ':' or ',' after 'with' expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 173,
|
|
"kind": "error",
|
|
"line": 174,
|
|
"message": "'raise' requires a surrounding 'try' block or the enclosing function to declare 'raises'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 178,
|
|
"kind": "error",
|
|
"line": 179,
|
|
"message": "'raise' requires a surrounding 'try' block or the enclosing function to declare 'raises'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 198,
|
|
"kind": "error",
|
|
"line": 199,
|
|
"message": "context manager of type 'BadCM' defines a consuming __enter__ method as well as an __exit__ method; either remove 'var' from its '__enter__' method or remove the '__exit__' method",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 212,
|
|
"kind": "error",
|
|
"line": 213,
|
|
"message": "value passed to 'self' cannot be converted from type value 'MyBool' to an instance of 'MyBool'; did you mean to instantiate 'MyBool'?",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/statements/control_flow_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/statements/control_flow_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/statements/control_flow_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "error",
|
|
"line": 18,
|
|
"message": "use of unknown declaration 'no_such_subject'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "use of unknown declaration 'also_missing'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "use of unknown declaration 'no_such_subject'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "use of unknown declaration 'also_missing'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "'__match' statement must have at least one 'case' block",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "use of unknown declaration 'foo'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "error",
|
|
"line": 48,
|
|
"message": "'__match' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 57,
|
|
"kind": "error",
|
|
"line": 58,
|
|
"message": "use of unknown declaration 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 61,
|
|
"kind": "error",
|
|
"line": 62,
|
|
"message": "cannot match value of 'Tuple[Int, Int]' of 2 elements against a pattern with 3 elements",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 70,
|
|
"message": "invalid redefinition of 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 69,
|
|
"kind": "note",
|
|
"line": 70,
|
|
"message": "previous definition here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 77,
|
|
"kind": "warning",
|
|
"line": 78,
|
|
"message": "nested 'var' or 'ref' patterns are redundant, remove the outer pattern",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 80,
|
|
"kind": "warning",
|
|
"line": 81,
|
|
"message": "nested 'var' or 'ref' patterns are redundant, remove the outer pattern",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "error",
|
|
"line": 88,
|
|
"message": "expected a name after 'as'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 94,
|
|
"kind": "error",
|
|
"line": 95,
|
|
"message": "expected a name after 'as'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 101,
|
|
"kind": "error",
|
|
"line": 102,
|
|
"message": "value of type 'Int' doesn't have a memory origin in 'ref' binding",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 106,
|
|
"kind": "error",
|
|
"line": 107,
|
|
"message": "expected a tuple type to match against, got 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 117,
|
|
"kind": "error",
|
|
"line": 118,
|
|
"message": "or-pattern alternatives must bind the same names; 'x' is bound in one alternative but not the other",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 125,
|
|
"kind": "error",
|
|
"line": 126,
|
|
"message": "or-pattern alternatives must bind the same names; 'x' is bound in one alternative but not the other",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 133,
|
|
"kind": "error",
|
|
"line": 134,
|
|
"message": "or-pattern binding 'x' must use the same 'var'/'ref' kind in each alternative",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 141,
|
|
"kind": "error",
|
|
"line": 142,
|
|
"message": "or-pattern alternatives must bind the same names; 'x' is bound in one alternative but not the other",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 150,
|
|
"kind": "error",
|
|
"line": 151,
|
|
"message": "or-pattern alternatives must bind the same names",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 158,
|
|
"kind": "error",
|
|
"line": 160,
|
|
"message": "or-pattern binding 'x' has incompatible types across alternatives",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 159,
|
|
"kind": "note",
|
|
"line": 160,
|
|
"message": "left alternative has type 'String', right has type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 175,
|
|
"kind": "error",
|
|
"line": 176,
|
|
"message": "cannot match value of type 'Vec3' against pattern type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 182,
|
|
"kind": "error",
|
|
"line": 183,
|
|
"message": "'w' is not a field of 'Vec3'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "error",
|
|
"line": 191,
|
|
"message": "keyword argument 'x' was already used; remove the duplicate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 190,
|
|
"kind": "note",
|
|
"line": 191,
|
|
"message": "previously specified here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 197,
|
|
"kind": "error",
|
|
"line": 198,
|
|
"message": "struct patterns do not support positional or unpacked arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 204,
|
|
"kind": "error",
|
|
"line": 205,
|
|
"message": "struct patterns do not support positional or unpacked arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 211,
|
|
"kind": "error",
|
|
"line": 212,
|
|
"message": "struct patterns do not support positional or unpacked arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 221,
|
|
"kind": "error",
|
|
"line": 222,
|
|
"message": "enum case 'None' has no associated value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 229,
|
|
"kind": "error",
|
|
"line": 230,
|
|
"message": "enum case 'None' has no associated value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 237,
|
|
"kind": "error",
|
|
"line": 238,
|
|
"message": "enum case 'Some' requires a payload pattern inside the parentheses",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 245,
|
|
"kind": "error",
|
|
"line": 246,
|
|
"message": "'Nope' is not a case of 'Optional[Int]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 253,
|
|
"kind": "error",
|
|
"line": 254,
|
|
"message": "'Nope' is not a case of 'Optional[Int]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 261,
|
|
"kind": "error",
|
|
"line": 261,
|
|
"message": "cannot match on a parametric enum type",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {
|
|
"newer": [
|
|
"match"
|
|
]
|
|
},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 17,
|
|
"kind": "error",
|
|
"line": 18,
|
|
"message": "use of unknown declaration 'no_such_subject'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 24,
|
|
"kind": "error",
|
|
"line": 25,
|
|
"message": "use of unknown declaration 'also_missing'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "use of unknown declaration 'no_such_subject'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "use of unknown declaration 'also_missing'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 40,
|
|
"kind": "error",
|
|
"line": 41,
|
|
"message": "'__match' statement must have at least one 'case' block",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "use of unknown declaration 'foo'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "error",
|
|
"line": 48,
|
|
"message": "'__match' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 57,
|
|
"kind": "error",
|
|
"line": 58,
|
|
"message": "use of unknown declaration 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 61,
|
|
"kind": "error",
|
|
"line": 62,
|
|
"message": "cannot match value of 'Tuple[Int, Int]' of 2 elements against a pattern with 3 elements",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 70,
|
|
"message": "invalid redefinition of 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "error",
|
|
"line": 88,
|
|
"message": "expected a name after 'as'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 94,
|
|
"kind": "error",
|
|
"line": 95,
|
|
"message": "expected a name after 'as'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 101,
|
|
"kind": "error",
|
|
"line": 102,
|
|
"message": "value of type 'Int' doesn't have a memory origin in 'ref' binding",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 106,
|
|
"kind": "error",
|
|
"line": 107,
|
|
"message": "expected a tuple type to match against, got 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 117,
|
|
"kind": "error",
|
|
"line": 118,
|
|
"message": "or-pattern alternatives must bind the same names; 'x' is bound in one alternative but not the other",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 125,
|
|
"kind": "error",
|
|
"line": 126,
|
|
"message": "or-pattern alternatives must bind the same names; 'x' is bound in one alternative but not the other",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 133,
|
|
"kind": "error",
|
|
"line": 134,
|
|
"message": "or-pattern binding 'x' must use the same 'var'/'ref' kind in each alternative",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 141,
|
|
"kind": "error",
|
|
"line": 142,
|
|
"message": "or-pattern alternatives must bind the same names; 'x' is bound in one alternative but not the other",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 150,
|
|
"kind": "error",
|
|
"line": 151,
|
|
"message": "or-pattern alternatives must bind the same names",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 158,
|
|
"kind": "error",
|
|
"line": 160,
|
|
"message": "or-pattern binding 'x' has incompatible types across alternatives",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 175,
|
|
"kind": "error",
|
|
"line": 176,
|
|
"message": "cannot match value of type 'Vec3' against pattern type 'Int'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 182,
|
|
"kind": "error",
|
|
"line": 183,
|
|
"message": "'w' is not a field of 'Vec3'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 189,
|
|
"kind": "error",
|
|
"line": 191,
|
|
"message": "keyword argument 'x' was already used; remove the duplicate",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 197,
|
|
"kind": "error",
|
|
"line": 198,
|
|
"message": "struct patterns do not support positional or unpacked arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 204,
|
|
"kind": "error",
|
|
"line": 205,
|
|
"message": "struct patterns do not support positional or unpacked arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 211,
|
|
"kind": "error",
|
|
"line": 212,
|
|
"message": "struct patterns do not support positional or unpacked arguments",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 221,
|
|
"kind": "error",
|
|
"line": 222,
|
|
"message": "enum case 'None' has no associated value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 229,
|
|
"kind": "error",
|
|
"line": 230,
|
|
"message": "enum case 'None' has no associated value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 237,
|
|
"kind": "error",
|
|
"line": 238,
|
|
"message": "enum case 'Some' requires a payload pattern inside the parentheses",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 245,
|
|
"kind": "error",
|
|
"line": 246,
|
|
"message": "'Nope' is not a case of 'Optional[Int]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 253,
|
|
"kind": "error",
|
|
"line": 254,
|
|
"message": "'Nope' is not a case of 'Optional[Int]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 261,
|
|
"kind": "error",
|
|
"line": 261,
|
|
"message": "cannot match on a parametric enum type",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/statements/match_diags.mojo",
|
|
"id": "diagnostics/mojo-parser/statements/match_diags",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/statements/match_diags.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "'if' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 28,
|
|
"message": "'for' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "'while' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "'with' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "'comptime if' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "error",
|
|
"line": 48,
|
|
"message": "'comptime for' must be contained in a function",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "'if' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 28,
|
|
"message": "'for' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "'while' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "error",
|
|
"line": 36,
|
|
"message": "'with' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "'comptime if' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 47,
|
|
"kind": "error",
|
|
"line": 48,
|
|
"message": "'comptime for' must be contained in a function",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/statements/module_scope_control_flow_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/statements/module_scope_control_flow_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/statements/module_scope_control_flow_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "error",
|
|
"line": 21,
|
|
"message": "'try' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 20,
|
|
"kind": "error",
|
|
"line": 21,
|
|
"message": "'try' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 23,
|
|
"kind": "error",
|
|
"line": 24,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/statements/module_scope_try_error.mojo",
|
|
"id": "diagnostics/mojo-parser/statements/module_scope_try_error",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/statements/module_scope_try_error.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 160,
|
|
"kind": "warning",
|
|
"line": 160,
|
|
"message": "'Int' value is unused; assign to '_' to discard the result",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": []
|
|
},
|
|
"file": "files/mojo-parser/statements/raise_and_try.mojo",
|
|
"id": "diagnostics/mojo-parser/statements/raise_and_try",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/statements/raise_and_try.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated %s -verify-diagnostics | FileCheck %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "note",
|
|
"line": 26,
|
|
"message": "or mark surrounding function as 'raises'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "cannot call function that may raise in a context that cannot raise",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "note",
|
|
"line": 29,
|
|
"message": "try surrounding the call in a 'try' block",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "'raise' must live within an 'except' block or a function marked 'raises'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "'raise' requires a surrounding 'try' block or the enclosing function to declare 'raises'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "cannot implicitly convert 'IntLiteral[42]' value to 'Error'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 54,
|
|
"kind": "note",
|
|
"line": 54,
|
|
"message": "origin declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "error",
|
|
"line": 56,
|
|
"message": "inferred error type 'Pointer[Int, origin_of(key)]' captures origin 'origin_of(key)' from within try body; it is not in scope in except body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 61,
|
|
"kind": "note",
|
|
"line": 61,
|
|
"message": "origin declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "inferred error type 'Pointer[String, origin_of(str)]' captures origin 'origin_of(str)' from within try body; it is not in scope in except body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 70,
|
|
"message": "inferred error type 'Pointer[String, origin_of(__call_result_tmp__)]' captures origin of temporary from within try body; it is not in scope in except body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 69,
|
|
"kind": "note",
|
|
"line": 70,
|
|
"message": "origin declared here",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 27,
|
|
"kind": "error",
|
|
"line": 29,
|
|
"message": "cannot call function that may raise in a context that cannot raise",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "'raise' must live within an 'except' block or a function marked 'raises'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "'raise' requires a surrounding 'try' block or the enclosing function to declare 'raises'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "cannot implicitly convert 'IntLiteral[42]' value to 'Error'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "error",
|
|
"line": 56,
|
|
"message": "inferred error type 'Pointer[Int, origin_of(key)]' captures origin 'origin_of(key)' from within try body; it is not in scope in except body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "error",
|
|
"line": 63,
|
|
"message": "inferred error type 'Pointer[String, origin_of(str)]' captures origin 'origin_of(str)' from within try body; it is not in scope in except body",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 68,
|
|
"kind": "error",
|
|
"line": 70,
|
|
"message": "inferred error type 'Pointer[String, origin_of(__call_result_tmp__)]' captures origin of temporary from within try body; it is not in scope in except body",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/statements/raise_and_try_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/statements/raise_and_try_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/statements/raise_and_try_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "'if' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "'for' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 38,
|
|
"message": "'while' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "'comptime if' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "error",
|
|
"line": 50,
|
|
"message": "'comptime for' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "error",
|
|
"line": 56,
|
|
"message": "'with' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "'if' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 69,
|
|
"kind": "error",
|
|
"line": 70,
|
|
"message": "'for' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "'while' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "error",
|
|
"line": 80,
|
|
"message": "'with' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 91,
|
|
"kind": "error",
|
|
"line": 92,
|
|
"message": "'if' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 99,
|
|
"kind": "error",
|
|
"line": 100,
|
|
"message": "'for' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 107,
|
|
"kind": "error",
|
|
"line": 108,
|
|
"message": "'while' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 115,
|
|
"kind": "error",
|
|
"line": 116,
|
|
"message": "'comptime if' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 123,
|
|
"kind": "error",
|
|
"line": 124,
|
|
"message": "'comptime for' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 131,
|
|
"kind": "error",
|
|
"line": 132,
|
|
"message": "'with' must be contained in a function",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 25,
|
|
"kind": "error",
|
|
"line": 26,
|
|
"message": "'if' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 31,
|
|
"kind": "error",
|
|
"line": 32,
|
|
"message": "'for' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 37,
|
|
"kind": "error",
|
|
"line": 38,
|
|
"message": "'while' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 43,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "'comptime if' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "error",
|
|
"line": 50,
|
|
"message": "'comptime for' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 55,
|
|
"kind": "error",
|
|
"line": 56,
|
|
"message": "'with' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "'if' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 69,
|
|
"kind": "error",
|
|
"line": 70,
|
|
"message": "'for' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 74,
|
|
"kind": "error",
|
|
"line": 75,
|
|
"message": "'while' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "error",
|
|
"line": 80,
|
|
"message": "'with' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 91,
|
|
"kind": "error",
|
|
"line": 92,
|
|
"message": "'if' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 99,
|
|
"kind": "error",
|
|
"line": 100,
|
|
"message": "'for' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 107,
|
|
"kind": "error",
|
|
"line": 108,
|
|
"message": "'while' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 115,
|
|
"kind": "error",
|
|
"line": 116,
|
|
"message": "'comptime if' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 123,
|
|
"kind": "error",
|
|
"line": 124,
|
|
"message": "'comptime for' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 131,
|
|
"kind": "error",
|
|
"line": 132,
|
|
"message": "'with' must be contained in a function",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/statements/type_body_control_flow_errors.mojo",
|
|
"id": "diagnostics/mojo-parser/statements/type_body_control_flow_errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/statements/type_body_control_flow_errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "'try' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "'try' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "'try' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "'try' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 29,
|
|
"kind": "error",
|
|
"line": 30,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "error",
|
|
"line": 39,
|
|
"message": "'try' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 41,
|
|
"kind": "error",
|
|
"line": 42,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 53,
|
|
"kind": "error",
|
|
"line": 54,
|
|
"message": "'try' must be contained in a function",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 57,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/statements/type_body_try_error.mojo",
|
|
"id": "diagnostics/mojo-parser/statements/type_body_try_error",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/statements/type_body_try_error.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 22,
|
|
"kind": "error",
|
|
"line": 23,
|
|
"message": "t-string expression must not be empty; add an expression or remove these braces",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "unterminated string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 73,
|
|
"kind": "error",
|
|
"line": 74,
|
|
"message": "format specifiers are not supported in t-strings; format the value manually before interpolating",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "error",
|
|
"line": 80,
|
|
"message": "format specifiers are not supported in t-strings; format the value manually before interpolating",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 86,
|
|
"kind": "error",
|
|
"line": 87,
|
|
"message": "format specifiers are not supported in t-strings; format the value manually before interpolating",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 92,
|
|
"kind": "error",
|
|
"line": 93,
|
|
"message": "format specifiers are not supported in t-strings; format the value manually before interpolating",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 102,
|
|
"kind": "error",
|
|
"line": 103,
|
|
"message": "use of unknown declaration 'undefined_var'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 108,
|
|
"kind": "error",
|
|
"line": 109,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 114,
|
|
"kind": "error",
|
|
"line": 115,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 120,
|
|
"kind": "error",
|
|
"line": 121,
|
|
"message": "use of unknown declaration 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 129,
|
|
"kind": "error",
|
|
"line": 131,
|
|
"message": "cannot materialize comptime value of type 'List[Int]' to runtime because it is not 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 130,
|
|
"kind": "note",
|
|
"line": 131,
|
|
"message": "use 'materialize' to explicitly materialize the value",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 135,
|
|
"kind": "error",
|
|
"line": 136,
|
|
"message": "cannot use a dynamic value in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 144,
|
|
"kind": "error",
|
|
"line": 145,
|
|
"message": "t-string expression must not be empty; add an expression or remove these braces",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 150,
|
|
"kind": "error",
|
|
"line": 151,
|
|
"message": "t-string expression must not be empty; add an expression or remove these braces",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 156,
|
|
"kind": "error",
|
|
"line": 157,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 158,
|
|
"kind": "error",
|
|
"line": 159,
|
|
"message": "unterminated string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 164,
|
|
"kind": "error",
|
|
"line": 165,
|
|
"message": "format specifiers are not supported in t-strings; format the value manually before interpolating",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 170,
|
|
"kind": "error",
|
|
"line": 171,
|
|
"message": "format specifiers are not supported in t-strings; format the value manually before interpolating",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 175,
|
|
"kind": "error",
|
|
"line": 176,
|
|
"message": "use of unknown declaration 'undefined_var'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 180,
|
|
"kind": "error",
|
|
"line": 181,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 185,
|
|
"kind": "error",
|
|
"line": 186,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 191,
|
|
"kind": "error",
|
|
"line": 192,
|
|
"message": "cannot use a dynamic value in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 201,
|
|
"kind": "error",
|
|
"line": 202,
|
|
"message": "\\u requires exactly four hex digits",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 207,
|
|
"kind": "error",
|
|
"line": 208,
|
|
"message": "\\U requires exactly eight hex digits",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 213,
|
|
"kind": "error",
|
|
"line": 214,
|
|
"message": "value must not exceed U+10FFFF",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 219,
|
|
"kind": "error",
|
|
"line": 220,
|
|
"message": "unicode escape sequences do not support surrogate code points (U+D800 to U+DFFF); use '\\U' with the full code point (not a UTF-16 surrogate pair)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 231,
|
|
"kind": "error",
|
|
"line": 232,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 22,
|
|
"kind": "error",
|
|
"line": 23,
|
|
"message": "t-string expression must not be empty; add an expression or remove these braces",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 30,
|
|
"kind": "error",
|
|
"line": 31,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 32,
|
|
"kind": "error",
|
|
"line": 33,
|
|
"message": "unterminated string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 73,
|
|
"kind": "error",
|
|
"line": 74,
|
|
"message": "format specifiers are not supported in t-strings; format the value manually before interpolating",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 79,
|
|
"kind": "error",
|
|
"line": 80,
|
|
"message": "format specifiers are not supported in t-strings; format the value manually before interpolating",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 86,
|
|
"kind": "error",
|
|
"line": 87,
|
|
"message": "format specifiers are not supported in t-strings; format the value manually before interpolating",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 92,
|
|
"kind": "error",
|
|
"line": 93,
|
|
"message": "format specifiers are not supported in t-strings; format the value manually before interpolating",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 102,
|
|
"kind": "error",
|
|
"line": 103,
|
|
"message": "use of unknown declaration 'undefined_var'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 108,
|
|
"kind": "error",
|
|
"line": 109,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 114,
|
|
"kind": "error",
|
|
"line": 115,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 120,
|
|
"kind": "error",
|
|
"line": 121,
|
|
"message": "use of unknown declaration 'x'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 129,
|
|
"kind": "error",
|
|
"line": 131,
|
|
"message": "cannot materialize comptime value of type 'List[Int]' to runtime because it is not 'ImplicitlyCopyable'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 135,
|
|
"kind": "error",
|
|
"line": 136,
|
|
"message": "cannot use a dynamic value in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 144,
|
|
"kind": "error",
|
|
"line": 145,
|
|
"message": "t-string expression must not be empty; add an expression or remove these braces",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 150,
|
|
"kind": "error",
|
|
"line": 151,
|
|
"message": "t-string expression must not be empty; add an expression or remove these braces",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 156,
|
|
"kind": "error",
|
|
"line": 157,
|
|
"message": "t-string cannot contain unescaped newline (use triple quotes or escape as \\n)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 158,
|
|
"kind": "error",
|
|
"line": 159,
|
|
"message": "unterminated string",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 164,
|
|
"kind": "error",
|
|
"line": 165,
|
|
"message": "format specifiers are not supported in t-strings; format the value manually before interpolating",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 170,
|
|
"kind": "error",
|
|
"line": 171,
|
|
"message": "format specifiers are not supported in t-strings; format the value manually before interpolating",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 175,
|
|
"kind": "error",
|
|
"line": 176,
|
|
"message": "use of unknown declaration 'undefined_var'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 180,
|
|
"kind": "error",
|
|
"line": 181,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 185,
|
|
"kind": "error",
|
|
"line": 186,
|
|
"message": "unexpected token in expression",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 191,
|
|
"kind": "error",
|
|
"line": 192,
|
|
"message": "cannot use a dynamic value in comptime initializer",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 201,
|
|
"kind": "error",
|
|
"line": 202,
|
|
"message": "\\u requires exactly four hex digits",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 207,
|
|
"kind": "error",
|
|
"line": 208,
|
|
"message": "\\U requires exactly eight hex digits",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 213,
|
|
"kind": "error",
|
|
"line": 214,
|
|
"message": "value must not exceed U+10FFFF",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 219,
|
|
"kind": "error",
|
|
"line": 220,
|
|
"message": "unicode escape sequences do not support surrogate code points (U+D800 to U+DFFF); use '\\U' with the full code point (not a UTF-16 surrogate pair)",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 231,
|
|
"kind": "error",
|
|
"line": 232,
|
|
"message": "unterminated t-string (missing closing quote)",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/t-strings/errors.mojo",
|
|
"id": "diagnostics/mojo-parser/t-strings/errors",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/t-strings/errors.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated --verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "'Foo' value has no attribute 'copy'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "'Foo' value has no attribute 'copy'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/trait_downcast_error.mojo",
|
|
"id": "diagnostics/mojo-parser/trait_downcast_error",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/trait_downcast_error.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "note",
|
|
"line": 27,
|
|
"message": "trait 'LongishTraitNameForTheDiff' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 28,
|
|
"kind": "note",
|
|
"line": 29,
|
|
"message": "no 'method_with_a_name' candidates have type 'def(self: StructWithLongishNameForDiff, argument: Float64) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "'StructWithLongishNameForDiff' does not implement all requirements for 'LongishTraitNameForTheDiff'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 35,
|
|
"kind": "note",
|
|
"line": 37,
|
|
"message": "candidate declared here with type 'def(self: StructWithLongishNameForDiff, argument: Int) thin -> None'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "note",
|
|
"line": 37,
|
|
"message": ".argument.dtype of the first value is 'DType.float64' but the second value is 'DType.int'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "error",
|
|
"line": 34,
|
|
"message": "'StructWithLongishNameForDiff' does not implement all requirements for 'LongishTraitNameForTheDiff'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/type_diff_corresponding_origins.mojo",
|
|
"id": "diagnostics/mojo-parser/type_diff_corresponding_origins",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/type_diff_corresponding_origins.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 36,
|
|
"kind": "note",
|
|
"line": 37,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "cannot be converted",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 50,
|
|
"kind": "note",
|
|
"line": 51,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 56,
|
|
"message": "cannot be converted",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 62,
|
|
"kind": "note",
|
|
"line": 63,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 69,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "cannot be converted",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 75,
|
|
"kind": "note",
|
|
"line": 76,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 85,
|
|
"kind": "error",
|
|
"line": 85,
|
|
"message": "cannot be converted",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 88,
|
|
"kind": "note",
|
|
"line": 89,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 99,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "cannot be converted",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 105,
|
|
"kind": "note",
|
|
"line": 106,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 116,
|
|
"kind": "error",
|
|
"line": 116,
|
|
"message": "cannot be converted",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 122,
|
|
"kind": "note",
|
|
"line": 123,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 133,
|
|
"kind": "error",
|
|
"line": 133,
|
|
"message": "cannot be converted",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 139,
|
|
"kind": "note",
|
|
"line": 140,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 149,
|
|
"kind": "error",
|
|
"line": 149,
|
|
"message": "cannot be converted",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 171,
|
|
"kind": "note",
|
|
"line": 172,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 178,
|
|
"kind": "error",
|
|
"line": 179,
|
|
"message": "value has type 'UnrelatedTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 199,
|
|
"kind": "error",
|
|
"line": 200,
|
|
"message": "'HasKnownStaticMethod' value has no attribute 'unknown_method'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 44,
|
|
"message": "cannot be converted",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 56,
|
|
"kind": "error",
|
|
"line": 56,
|
|
"message": "cannot be converted",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 69,
|
|
"kind": "error",
|
|
"line": 69,
|
|
"message": "cannot be converted",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 85,
|
|
"kind": "error",
|
|
"line": 85,
|
|
"message": "cannot be converted",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 99,
|
|
"kind": "error",
|
|
"line": 99,
|
|
"message": "cannot be converted",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 116,
|
|
"kind": "error",
|
|
"line": 116,
|
|
"message": "cannot be converted",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 133,
|
|
"kind": "error",
|
|
"line": 133,
|
|
"message": "cannot be converted",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 149,
|
|
"kind": "error",
|
|
"line": 149,
|
|
"message": "cannot be converted",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 178,
|
|
"kind": "error",
|
|
"line": 179,
|
|
"message": "value has type 'UnrelatedTrait'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 199,
|
|
"kind": "error",
|
|
"line": 200,
|
|
"message": "'HasKnownStaticMethod' value has no attribute 'unknown_method'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/type_refinement_negative.mojo",
|
|
"id": "diagnostics/mojo-parser/type_refinement_negative",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/type_refinement_negative.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "maybe",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 33,
|
|
"kind": "note",
|
|
"line": 34,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 38,
|
|
"kind": "note",
|
|
"line": 39,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 46,
|
|
"message": "invalid call to 'all_copyable': value passed to 't' cannot be converted from 'SomeVA[SomeCopyable, SomeNonCopyable]' to 'SomeVA[*elt_type.values]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 45,
|
|
"kind": "note",
|
|
"line": 46,
|
|
"message": ".elt_types.values` of the first value is 'SomeCopyable, SomeNonCopyable' but the second value is 'elt_type.values'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "invalid call to 'all_int': value passed to 't' cannot be converted from 'SomeVA[Int, SomeNonCopyable]' to 'SomeVA[*elt_type.values]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 52,
|
|
"kind": "note",
|
|
"line": 53,
|
|
"message": "'ParamSubst' declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 60,
|
|
"kind": "note",
|
|
"line": 61,
|
|
"message": "function declared here",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 68,
|
|
"message": "invalid call to 'more_refined_variadic': value passed to 'elt_type' cannot be converted from 'TypeList[values]' to 'TypeList[elt_type.values]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 76,
|
|
"kind": "error",
|
|
"line": 77,
|
|
"message": "'ParamSubst' parameter 'shape' has 'KGENParamList[Int]' type, but value has type 'KGENParamList[__mlir_type.index]'",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 44,
|
|
"kind": "error",
|
|
"line": 46,
|
|
"message": "invalid call to 'all_copyable': value passed to 't' cannot be converted from 'SomeVA[SomeCopyable, SomeNonCopyable]' to 'SomeVA[*elt_type.values]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 48,
|
|
"kind": "error",
|
|
"line": 49,
|
|
"message": "invalid call to 'all_int': value passed to 't' cannot be converted from 'SomeVA[Int, SomeNonCopyable]' to 'SomeVA[*elt_type.values]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 67,
|
|
"kind": "error",
|
|
"line": 68,
|
|
"message": "invalid call to 'more_refined_variadic': value passed to 'elt_type' cannot be converted from 'TypeList[values]' to 'TypeList[elt_type.values]'",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 76,
|
|
"kind": "error",
|
|
"line": 77,
|
|
"message": "'ParamSubst' parameter 'shape' has 'KGENParamList[Int]' type, but value has type 'KGENParamList[__mlir_type.index]'",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/variadic_binding_error.mojo",
|
|
"id": "diagnostics/mojo-parser/variadic_binding_error",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/variadic_binding_error.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -verify-diagnostics %s"
|
|
]
|
|
},
|
|
{
|
|
"annotations": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "error",
|
|
"line": 20,
|
|
"message": "identifier may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "'def' keyword may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 35,
|
|
"message": "argument list may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 42,
|
|
"kind": "error",
|
|
"line": 43,
|
|
"message": "parameter list may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "error",
|
|
"line": 50,
|
|
"message": "identifier may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 57,
|
|
"kind": "error",
|
|
"line": 58,
|
|
"message": "parameter list may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "identifier may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "identifier may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 78,
|
|
"kind": "error",
|
|
"line": 79,
|
|
"message": "identifier may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "error",
|
|
"line": 88,
|
|
"message": "identifier may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 94,
|
|
"kind": "error",
|
|
"line": 95,
|
|
"message": "module path may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 100,
|
|
"kind": "error",
|
|
"line": 101,
|
|
"message": "'as' keyword may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 106,
|
|
"kind": "error",
|
|
"line": 107,
|
|
"message": "bound import name may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 112,
|
|
"kind": "error",
|
|
"line": 113,
|
|
"message": "comma may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 118,
|
|
"kind": "error",
|
|
"line": 119,
|
|
"message": "comma may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 124,
|
|
"kind": "error",
|
|
"line": 125,
|
|
"message": "module path may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 130,
|
|
"kind": "error",
|
|
"line": 131,
|
|
"message": "module path may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 136,
|
|
"kind": "error",
|
|
"line": 137,
|
|
"message": "module path may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 142,
|
|
"kind": "error",
|
|
"line": 143,
|
|
"message": "'import' statement may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 148,
|
|
"kind": "error",
|
|
"line": 149,
|
|
"message": "wildcard import may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 154,
|
|
"kind": "error",
|
|
"line": 155,
|
|
"message": "construct name to import may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 160,
|
|
"kind": "error",
|
|
"line": 161,
|
|
"message": "beginning of tuple import may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 166,
|
|
"kind": "error",
|
|
"line": 167,
|
|
"message": "'as' keyword may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 172,
|
|
"kind": "error",
|
|
"line": 173,
|
|
"message": "bound import name may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 179,
|
|
"kind": "error",
|
|
"line": 180,
|
|
"message": "comma may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 188,
|
|
"kind": "error",
|
|
"line": 189,
|
|
"message": "bound import name may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 195,
|
|
"kind": "error",
|
|
"line": 196,
|
|
"message": "expected construct name to import",
|
|
"regex": false
|
|
}
|
|
],
|
|
"dialect": {},
|
|
"expect": {
|
|
"kind": "compile-error",
|
|
"messages": [
|
|
{
|
|
"annotationLine": 19,
|
|
"kind": "error",
|
|
"line": 20,
|
|
"message": "identifier may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 26,
|
|
"kind": "error",
|
|
"line": 27,
|
|
"message": "'def' keyword may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 34,
|
|
"kind": "error",
|
|
"line": 35,
|
|
"message": "argument list may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 42,
|
|
"kind": "error",
|
|
"line": 43,
|
|
"message": "parameter list may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 49,
|
|
"kind": "error",
|
|
"line": 50,
|
|
"message": "identifier may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 57,
|
|
"kind": "error",
|
|
"line": 58,
|
|
"message": "parameter list may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 64,
|
|
"kind": "error",
|
|
"line": 65,
|
|
"message": "identifier may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 71,
|
|
"kind": "error",
|
|
"line": 72,
|
|
"message": "identifier may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 78,
|
|
"kind": "error",
|
|
"line": 79,
|
|
"message": "identifier may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 87,
|
|
"kind": "error",
|
|
"line": 88,
|
|
"message": "identifier may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 94,
|
|
"kind": "error",
|
|
"line": 95,
|
|
"message": "module path may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 100,
|
|
"kind": "error",
|
|
"line": 101,
|
|
"message": "'as' keyword may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 106,
|
|
"kind": "error",
|
|
"line": 107,
|
|
"message": "bound import name may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 112,
|
|
"kind": "error",
|
|
"line": 113,
|
|
"message": "comma may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 118,
|
|
"kind": "error",
|
|
"line": 119,
|
|
"message": "comma may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 124,
|
|
"kind": "error",
|
|
"line": 125,
|
|
"message": "module path may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 130,
|
|
"kind": "error",
|
|
"line": 131,
|
|
"message": "module path may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 136,
|
|
"kind": "error",
|
|
"line": 137,
|
|
"message": "module path may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 142,
|
|
"kind": "error",
|
|
"line": 143,
|
|
"message": "'import' statement may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 148,
|
|
"kind": "error",
|
|
"line": 149,
|
|
"message": "wildcard import may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 154,
|
|
"kind": "error",
|
|
"line": 155,
|
|
"message": "construct name to import may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 160,
|
|
"kind": "error",
|
|
"line": 161,
|
|
"message": "beginning of tuple import may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 166,
|
|
"kind": "error",
|
|
"line": 167,
|
|
"message": "'as' keyword may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 172,
|
|
"kind": "error",
|
|
"line": 173,
|
|
"message": "bound import name may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 179,
|
|
"kind": "error",
|
|
"line": 180,
|
|
"message": "comma may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 188,
|
|
"kind": "error",
|
|
"line": 189,
|
|
"message": "bound import name may not appear at the start of the line",
|
|
"regex": false
|
|
},
|
|
{
|
|
"annotationLine": 195,
|
|
"kind": "error",
|
|
"line": 196,
|
|
"message": "expected construct name to import",
|
|
"regex": false
|
|
}
|
|
]
|
|
},
|
|
"file": "files/mojo-parser/vertical_whitespace.mojo",
|
|
"id": "diagnostics/mojo-parser/vertical_whitespace",
|
|
"mode": "run",
|
|
"pass": "parser",
|
|
"provenance": {
|
|
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
|
|
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
|
|
"path": "test/mojo-parser/vertical_whitespace.mojo",
|
|
"repo": "modular/modular",
|
|
"source": "modular",
|
|
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
|
|
},
|
|
"reproducible": "unlikely",
|
|
"run": [
|
|
"%parse-mojo-isolated -split-input-file %s -verify-diagnostics"
|
|
]
|
|
}
|
|
],
|
|
"processor": "diagnostics"
|
|
}
|