chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
// parse-fail
package foo:bar;
interface foo {
type foo = bar;
}

View File

@@ -0,0 +1,5 @@
type `bar` does not exist
--> tests/ui/parse-fail/alias-no-type.wit:5:14
|
5 | type foo = bar;
| ^--

View File

@@ -0,0 +1,6 @@
package a:b;
world foo {
import x: async func();
import x: func();
}

View File

@@ -0,0 +1,5 @@
import `x` conflicts with prior func of same name
--> tests/ui/parse-fail/async-bad-world.wit:5:10
|
5 | import x: func();
| ^

View File

@@ -0,0 +1,6 @@
package a:b;
world foo {
import x: async func();
import x: interface {}
}

View File

@@ -0,0 +1,5 @@
import `x` conflicts with prior func of same name
--> tests/ui/parse-fail/async-bad-world2.wit:5:10
|
5 | import x: interface {}
| ^

View File

@@ -0,0 +1,6 @@
package a:b;
world foo {
import x: async func();
record x {}
}

View File

@@ -0,0 +1,5 @@
import `x` conflicts with prior type of same name
--> tests/ui/parse-fail/async-bad-world3.wit:4:10
|
4 | import x: async func();
| ^

View File

@@ -0,0 +1,11 @@
package a:b;
world a {
import x: async func();
}
world b {
include a;
import x: func();
}

View File

@@ -0,0 +1,5 @@
import of `x` shadows previously imported items
--> tests/ui/parse-fail/async-bad-world4.wit:8:11
|
8 | include a;
| ^

View File

@@ -0,0 +1,7 @@
package test:%async;
interface x {
resource z {
async constructor();
}
}

View File

@@ -0,0 +1,5 @@
expected `constructor` or identifier, found keyword `async`
--> tests/ui/parse-fail/async-bad1.wit:5:5
|
5 | async constructor();
| ^----

View File

@@ -0,0 +1,7 @@
package test:%async;
interface x {
resource z {
x: async static func();
}
}

View File

@@ -0,0 +1,5 @@
expected keyword `func`, found keyword `static`
--> tests/ui/parse-fail/async-bad2.wit:5:14
|
5 | x: async static func();
| ^

View File

@@ -0,0 +1,5 @@
expected keyword `func`, found eof
--> tests/ui/parse-fail/async.wit:3:1
|
3 |
| ^

View File

@@ -0,0 +1,5 @@
expected keyword `func`, found '('
--> tests/ui/parse-fail/async1.wit:2:9
|
2 | a: async()
| ^

View File

@@ -0,0 +1,4 @@
package a:b;
@deprecated
interface foo {}

View File

@@ -0,0 +1,5 @@
expected '(', found keyword `interface`
--> tests/ui/parse-fail/bad-deprecated1.wit:4:1
|
4 | interface foo {}
| ^

View File

@@ -0,0 +1,4 @@
package a:b;
@deprecated()
interface foo {}

View File

@@ -0,0 +1,5 @@
expected an identifier or string, found ')'
--> tests/ui/parse-fail/bad-deprecated2.wit:3:13
|
3 | @deprecated()
| ^

View File

@@ -0,0 +1,4 @@
package a:b;
@deprecated(since = 1.2.3)
interface foo {}

View File

@@ -0,0 +1,5 @@
expected `version`, found `since`
--> tests/ui/parse-fail/bad-deprecated3.wit:3:13
|
3 | @deprecated(since = 1.2.3)
| ^----

View File

@@ -0,0 +1,5 @@
package a:b;
@deprecated(since = 1.2.3)
@deprecated(since = 1.2.3)
interface foo {}

View File

@@ -0,0 +1,5 @@
expected `version`, found `since`
--> tests/ui/parse-fail/bad-deprecated4.wit:3:13
|
3 | @deprecated(since = 1.2.3)
| ^----

View File

@@ -0,0 +1,7 @@
// parse-fail
package foo:foo;
interface foo {
x: func(param: nonexistent);
}

View File

@@ -0,0 +1,5 @@
name `nonexistent` is not defined
--> tests/ui/parse-fail/bad-function.wit:6:18
|
6 | x: func(param: nonexistent);
| ^----------

View File

@@ -0,0 +1,7 @@
// parse-fail
package foo:foo;
interface foo {
x: func() -> nonexistent;
}

View File

@@ -0,0 +1,5 @@
name `nonexistent` is not defined
--> tests/ui/parse-fail/bad-function2.wit:6:16
|
6 | x: func() -> nonexistent;
| ^----------

View File

@@ -0,0 +1,8 @@
package a:b;
interface foo {
@unstable(feature = not-active)
type gated = u32;
type foo = gated;
}

View File

@@ -0,0 +1,5 @@
found a reference to a type which is excluded due to its feature not being activated
--> tests/ui/parse-fail/bad-gate1.wit:7:8
|
7 | type foo = gated;
| ^--

View File

@@ -0,0 +1,8 @@
package a:b;
@unstable(feature = not-active)
world a {}
world b {
include a;
}

View File

@@ -0,0 +1,5 @@
found a reference to a world which is excluded due to its feature not being activated
--> tests/ui/parse-fail/bad-gate2.wit:7:11
|
7 | include a;
| ^

View File

@@ -0,0 +1,6 @@
package a:b;
@unstable(feature = not-active)
interface a {
type a = u32;
}

View File

@@ -0,0 +1,5 @@
this type is not gated by a feature but its interface is gated by a feature: found a reference to a interface which is excluded due to its feature not being activated
--> tests/ui/parse-fail/bad-gate3.wit:5:8
|
5 | type a = u32;
| ^

View File

@@ -0,0 +1,8 @@
package a:b;
interface a {
@unstable(feature = inactive)
resource a {
constructor();
}
}

View File

@@ -0,0 +1,5 @@
failed to update function `[constructor]a`: found a reference to a type which is excluded due to its feature not being activated
--> tests/ui/parse-fail/bad-gate4.wit:6:5
|
6 | constructor();
| ^----------

View File

@@ -0,0 +1,11 @@
package a:b;
interface a {
@unstable(feature = inactive)
resource a {
@unstable(feature = inactive)
constructor();
x: static func();
}
}

View File

@@ -0,0 +1,5 @@
failed to update function `[static]a.x`: found a reference to a type which is excluded due to its feature not being activated
--> tests/ui/parse-fail/bad-gate5.wit:9:5
|
9 | x: static func();
| ^

View File

@@ -0,0 +1,5 @@
package foo:foo;
world foo {
include non-existance;
}

View File

@@ -0,0 +1,5 @@
interface or world `non-existance` not found in package
--> tests/ui/parse-fail/bad-include1.wit:4:11
|
4 | include non-existance;
| ^------------

View File

@@ -0,0 +1,9 @@
package foo:foo;
world bar {
include foo;
}
world foo {
include bar;
}

View File

@@ -0,0 +1,5 @@
interface or world `foo` depends on itself
--> tests/ui/parse-fail/bad-include2.wit:7:7
|
7 | world foo {
| ^--

View File

@@ -0,0 +1,5 @@
package foo:foo;
world foo {
include foo;
}

View File

@@ -0,0 +1,5 @@
interface or world `foo` depends on itself
--> tests/ui/parse-fail/bad-include3.wit:3:7
|
3 | world foo {
| ^--

View File

@@ -0,0 +1,7 @@
// parse-fail
interface foo {
type x = list<u32
type y = u32
}

View File

@@ -0,0 +1,5 @@
expected '>', found keyword `type`
--> tests/ui/parse-fail/bad-list.wit:6:3
|
6 | type y = u32
| ^

View File

@@ -0,0 +1,7 @@
// parse-fail
interface foo {
type z = list<u32,
type y = u32
}

View File

@@ -0,0 +1,5 @@
expected fixed size, found keyword `type`
--> tests/ui/parse-fail/bad-list2.wit:6:3
|
6 | type y = u32
| ^---

View File

@@ -0,0 +1,7 @@
// parse-fail
interface foo {
type a = list<u32,>
type y = u32
}

View File

@@ -0,0 +1,5 @@
expected fixed size, found '>'
--> tests/ui/parse-fail/bad-list3.wit:4:21
|
4 | type a = list<u32,>
| ^

View File

@@ -0,0 +1,7 @@
// parse-fail
interface foo {
type b = list<u32, u32>
type y = u32
}

View File

@@ -0,0 +1,5 @@
expected fixed size, found keyword `u32`
--> tests/ui/parse-fail/bad-list4.wit:4:22
|
4 | type b = list<u32, u32>
| ^--

View File

@@ -0,0 +1,5 @@
failed to resolve directory while parsing WIT for path [tests/ui/parse-fail/bad-pkg1]: failed to parse package: tests/ui/parse-fail/bad-pkg1: interface or world `nonexistent` not found in package
--> tests/ui/parse-fail/bad-pkg1/root.wit:4:7
|
4 | use nonexistent.{};
| ^----------

View File

@@ -0,0 +1,5 @@
package foo:foo;
interface foo {
use nonexistent.{};
}

View File

@@ -0,0 +1,5 @@
failed to resolve directory while parsing WIT for path [tests/ui/parse-fail/bad-pkg2]: interface not found in package
--> tests/ui/parse-fail/bad-pkg2/root.wit:4:15
|
4 | use foo:bar/nonexistent.{};
| ^----------

View File

@@ -0,0 +1 @@
package foo:bar;

View File

@@ -0,0 +1,5 @@
package foo:foo;
interface foo {
use foo:bar/nonexistent.{};
}

View File

@@ -0,0 +1,5 @@
failed to resolve directory while parsing WIT for path [tests/ui/parse-fail/bad-pkg3]: interface not found in package
--> tests/ui/parse-fail/bad-pkg3/root.wit:4:15
|
4 | use foo:bar/baz.{};
| ^--

View File

@@ -0,0 +1,2 @@
package foo:bar;
world baz {}

View File

@@ -0,0 +1,5 @@
package foo:foo;
interface foo {
use foo:bar/baz.{};
}

View File

@@ -0,0 +1,5 @@
failed to resolve directory while parsing WIT for path [tests/ui/parse-fail/bad-pkg4]: type `a-name` not defined in interface
--> tests/ui/parse-fail/bad-pkg4/root.wit:3:20
|
3 | use foo:bar/baz.{a-name};
| ^-----

View File

@@ -0,0 +1,4 @@
package foo:bar;
interface baz {
a-name: func();
}

View File

@@ -0,0 +1,4 @@
package foo:foo;
interface foo {
use foo:bar/baz.{a-name};
}

View File

@@ -0,0 +1,5 @@
failed to resolve directory while parsing WIT for path [tests/ui/parse-fail/bad-pkg5]: type `nonexistent` not defined in interface
--> tests/ui/parse-fail/bad-pkg5/root.wit:3:20
|
3 | use foo:bar/baz.{nonexistent};
| ^----------

View File

@@ -0,0 +1,3 @@
package foo:bar;
interface baz {
}

View File

@@ -0,0 +1,4 @@
package foo:foo;
interface foo {
use foo:bar/baz.{nonexistent};
}

View File

@@ -0,0 +1,8 @@
failed to resolve directory while parsing WIT for path [tests/ui/parse-fail/bad-pkg6]: package 'foo:bar' not found. known packages:
foo:baz
foo:foo
--> tests/ui/parse-fail/bad-pkg6/root.wit:3:7
|
3 | use foo:bar/baz.{};
| ^------

View File

@@ -0,0 +1,4 @@
package foo:baz;
interface bar {}

View File

@@ -0,0 +1,4 @@
package foo:foo;
interface foo {
use foo:bar/baz.{};
}

View File

@@ -0,0 +1,5 @@
package foo:bar;
interface foo {
type t = borrow<u32>;
}

View File

@@ -0,0 +1,5 @@
expected an identifier or string, found keyword `u32`
--> tests/ui/parse-fail/bad-resource1.wit:4:19
|
4 | type t = borrow<u32>;
| ^--

View File

@@ -0,0 +1,5 @@
package foo:bar;
interface foo {
type t = own<u32>;
}

View File

@@ -0,0 +1,5 @@
expected an identifier or string, found keyword `u32`
--> tests/ui/parse-fail/bad-resource10.wit:4:16
|
4 | type t = own<u32>;
| ^--

View File

@@ -0,0 +1,5 @@
package foo:bar;
interface foo {
type t = own<foo>;
}

View File

@@ -0,0 +1,5 @@
type `foo` does not exist
--> tests/ui/parse-fail/bad-resource11.wit:4:16
|
4 | type t = own<foo>;
| ^--

View File

@@ -0,0 +1,6 @@
package foo:bar;
interface foo {
foo: func();
type t = own<foo>;
}

View File

@@ -0,0 +1,5 @@
type `foo` does not exist
--> tests/ui/parse-fail/bad-resource12.wit:5:16
|
5 | type t = own<foo>;
| ^--

View File

@@ -0,0 +1,6 @@
package foo:bar;
interface foo {
type foo = u32;
type t = own<foo>;
}

View File

@@ -0,0 +1,5 @@
type `foo` used in a handle must be a resource
--> tests/ui/parse-fail/bad-resource13.wit:5:16
|
5 | type t = own<foo>;
| ^--

View File

@@ -0,0 +1,7 @@
package foo:bar;
interface foo {
resource a {}
type t = own<a>;
type b = own<t>;
}

View File

@@ -0,0 +1,5 @@
type `t` used in a handle must be a resource
--> tests/ui/parse-fail/bad-resource14.wit:6:16
|
6 | type b = own<t>;
| ^

View File

@@ -0,0 +1,5 @@
failed to resolve directory while parsing WIT for path [tests/ui/parse-fail/bad-resource15]: type used in a handle must be a resource
--> tests/ui/parse-fail/bad-resource15/foo.wit:6:16
|
6 | type t = own<r>;
| ^

View File

@@ -0,0 +1,5 @@
package some:dep;
interface foo {
type r = u32;
}

View File

@@ -0,0 +1,7 @@
package foo:bar;
interface foo {
use some:dep/foo.{r};
type t = own<r>;
}

View File

@@ -0,0 +1,7 @@
package foo:bar;
interface foo {
resource a {
constructor() -> result<_, string>;
}
}

View File

@@ -0,0 +1,5 @@
the `ok` type must be the resource being constructed
--> tests/ui/parse-fail/bad-resource16.wit:5:22
|
5 | constructor() -> result<_, string>;
| ^-----

View File

@@ -0,0 +1,8 @@
package foo:bar;
interface foo {
resource b;
resource a {
constructor() -> result<b, string>;
}
}

View File

@@ -0,0 +1,5 @@
the `ok` type must be the resource being constructed
--> tests/ui/parse-fail/bad-resource17.wit:6:29
|
6 | constructor() -> result<b, string>;
| ^

View File

@@ -0,0 +1,5 @@
package foo:bar;
interface foo {
type t = borrow<foo>;
}

View File

@@ -0,0 +1,5 @@
type `foo` does not exist
--> tests/ui/parse-fail/bad-resource2.wit:4:19
|
4 | type t = borrow<foo>;
| ^--

View File

@@ -0,0 +1,6 @@
package foo:bar;
interface foo {
foo: func();
type t = borrow<foo>;
}

View File

@@ -0,0 +1,5 @@
type `foo` does not exist
--> tests/ui/parse-fail/bad-resource3.wit:5:19
|
5 | type t = borrow<foo>;
| ^--

View File

@@ -0,0 +1,6 @@
package foo:bar;
interface foo {
type foo = u32;
type t = borrow<foo>;
}

View File

@@ -0,0 +1,5 @@
type `foo` used in a handle must be a resource
--> tests/ui/parse-fail/bad-resource4.wit:5:19
|
5 | type t = borrow<foo>;
| ^--

View File

@@ -0,0 +1,7 @@
package foo:bar;
interface foo {
resource a {}
type t = borrow<a>;
type b = borrow<t>;
}

View File

@@ -0,0 +1,5 @@
type `t` used in a handle must be a resource
--> tests/ui/parse-fail/bad-resource5.wit:6:19
|
6 | type b = borrow<t>;
| ^

Some files were not shown because too many files have changed in this diff Show More