diff --git a/crates/wit-component/tests/interfaces/doc-comments.wat b/crates/wit-component/tests/interfaces/doc-comments.wat index c2bd4d067f..cd0b4eaec9 100644 --- a/crates/wit-component/tests/interfaces/doc-comments.wat +++ b/crates/wit-component/tests/interfaces/doc-comments.wat @@ -66,7 +66,7 @@ ) ) (export (;5;) "coverage-world" (type 4)) - (@custom "package-docs" "\01{\22docs\22:\22package docs;\22,\22worlds\22:{\22coverage-world\22:{\22docs\22:\22world docs\22,\22types\22:{\22t\22:{\22docs\22:\22world typedef docs\22}},\22funcs\22:{\22imp\22:{\22docs\22:\22world func import docs\22}},\22interface_exports\22:{\22i\22:{\22docs\22:\22world inline interface docs\22,\22funcs\22:{\22f\22:{\22docs\22:\22inline interface func docs\22}},\22types\22:{\22t\22:{\22docs\22:\22inline interface typedef docs\22}}}},\22func_exports\22:{\22exp\22:{\22docs\22:\22world func export docs\22}}}},\22interfaces\22:{\22coverage-iface\22:{\22docs\22:\22interface docs\22,\22funcs\22:{\22[constructor]res\22:{\22docs\22:\22constructor docs\22},\22[method]res.m\22:{\22docs\22:\22method docs\22},\22[static]res.s\22:{\22docs\22:\22static func docs\22},\22f\22:{\22docs\22:\22interface func docs\22}},\22types\22:{\22t\22:{\22docs\22:\22basic typedef docs\22},\22r\22:{\22docs\22:\22record typedef docs\22,\22items\22:{\22f1\22:\22record field docs\22}},\22fl\22:{\22items\22:{\22f1\22:\22flag docs\22}},\22v\22:{\22items\22:{\22c1\22:\22variant case docs\22}},\22e\22:{\22items\22:{\22c1\22:\22enum case docs\22}}}},\22other-comment-forms\22:{\22docs\22:\22other comment forms\5cn multi-line block\22,\22funcs\22:{\22multiple-lines-split\22:{\22docs\22:\22one doc line\5cnnon-doc in the middle\5cnanother doc line\22},\22mixed-forms\22:{\22docs\22:\22mixed forms; line doc\5cnplus block doc\5cn multi-line\22}}}}}") + (@custom "package-docs" "\01{\22docs\22:\22package docs;\22,\22worlds\22:{\22coverage-world\22:{\22docs\22:\22world docs\22,\22types\22:{\22t\22:{\22docs\22:\22world typedef docs\22}},\22funcs\22:{\22imp\22:{\22docs\22:\22world func import docs\22}},\22interface_exports\22:{\22i\22:{\22docs\22:\22world inline interface docs\22,\22funcs\22:{\22f\22:{\22docs\22:\22inline interface func docs\22}},\22types\22:{\22t\22:{\22docs\22:\22inline interface typedef docs\22}}}},\22func_exports\22:{\22exp\22:{\22docs\22:\22world func export docs\22}}}},\22interfaces\22:{\22coverage-iface\22:{\22docs\22:\22interface docs\22,\22funcs\22:{\22[constructor]res\22:{\22docs\22:\22constructor docs\22},\22[method]res.m\22:{\22docs\22:\22method docs\22},\22[static]res.s\22:{\22docs\22:\22static func docs\22},\22f\22:{\22docs\22:\22interface func docs\22}},\22types\22:{\22t\22:{\22docs\22:\22basic typedef docs\22},\22r\22:{\22docs\22:\22record typedef docs\22,\22items\22:{\22f1\22:\22record field docs\22}},\22fl\22:{\22items\22:{\22f1\22:\22flag docs\22}},\22v\22:{\22items\22:{\22c1\22:\22variant case docs\22}},\22e\22:{\22items\22:{\22c1\22:\22enum case docs\22}}}},\22other-comment-forms\22:{\22docs\22:\22other comment forms\5cn multi-line block\22,\22funcs\22:{\22multiple-lines-split\22:{\22docs\22:\22one doc line\5cnanother doc line\22},\22mixed-forms\22:{\22docs\22:\22mixed forms; line doc\5cnplus block doc\5cn multi-line\22}}}}}") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/interfaces/doc-comments/foo.wit.print b/crates/wit-component/tests/interfaces/doc-comments/foo.wit.print index 7f31dbf9ce..83b808e9b4 100644 --- a/crates/wit-component/tests/interfaces/doc-comments/foo.wit.print +++ b/crates/wit-component/tests/interfaces/doc-comments/foo.wit.print @@ -48,7 +48,6 @@ interface coverage-iface { /// multi-line block interface other-comment-forms { /// one doc line - /// non-doc in the middle /// another doc line multiple-lines-split: func(); diff --git a/crates/wit-component/tests/interfaces/maps.wat b/crates/wit-component/tests/interfaces/maps.wat index 91e2f862aa..c97cbe7e7b 100644 --- a/crates/wit-component/tests/interfaces/maps.wat +++ b/crates/wit-component/tests/interfaces/maps.wat @@ -179,7 +179,7 @@ ) ) (export (;3;) "maps-test-world" (type 2)) - (@custom "package-docs" "\01{\22interfaces\22:{\22maps-interface\22:{\22funcs\22:{\22map-param\22:{\22docs\22:\22Functions\22}},\22types\22:{\22bool-map\22:{\22docs\22:\22Test all primitive key types\22},\22string-to-bool\22:{\22docs\22:\22Test all value types\22},\22map-of-maps\22:{\22docs\22:\22Nested structures\22}}}}}") + (@custom "package-docs" "\01{}") (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) diff --git a/crates/wit-component/tests/interfaces/maps.wit.print b/crates/wit-component/tests/interfaces/maps.wit.print index f9235085bc..e7b85d196e 100644 --- a/crates/wit-component/tests/interfaces/maps.wit.print +++ b/crates/wit-component/tests/interfaces/maps.wit.print @@ -1,7 +1,6 @@ package foo:maps-test; interface maps-interface { - /// Test all primitive key types type bool-map = map; type u8-map = map; @@ -24,7 +23,6 @@ interface maps-interface { type string-map = map; - /// Test all value types type string-to-bool = map; type string-to-list = map>; @@ -35,14 +33,12 @@ interface maps-interface { type string-to-tuple = map>; - /// Nested structures type map-of-maps = map>; type list-of-maps = list>; type option-of-map = option>; - /// Functions map-param: func(x: map); map-result: func() -> map; diff --git a/crates/wit-parser/src/ast.rs b/crates/wit-parser/src/ast.rs index 10ed687411..866d02b845 100644 --- a/crates/wit-parser/src/ast.rs +++ b/crates/wit-parser/src/ast.rs @@ -1379,8 +1379,12 @@ fn parse_docs<'a>(tokens: &mut Tokenizer<'a>) -> Result, lex::Error> { let mut started = false; while let Some((span, token)) = clone.next_raw()? { match token { - Token::Whitespace => {} - Token::Comment => { + // Whitespace and non-doc comments are transparent for the + // purposes of collecting doc comments: they neither contribute + // to `docs` nor stop us from attaching a later `///`/`/** */` + // block to the following item. + Token::Whitespace | Token::Comment => {} + Token::DocComment => { let comment = tokens.get_span(span); if !started { docs.span.set_start(span.start()); diff --git a/crates/wit-parser/src/ast/lex.rs b/crates/wit-parser/src/ast/lex.rs index 3789c00a53..6caeef0640 100644 --- a/crates/wit-parser/src/ast/lex.rs +++ b/crates/wit-parser/src/ast/lex.rs @@ -92,7 +92,14 @@ impl Span { #[derive(Eq, PartialEq, Debug, Copy, Clone)] pub enum Token { Whitespace, + /// A non-documentation comment: a line comment beginning with `//` (but + /// not `///`) or a block comment beginning with `/*` (but not `/**`). Comment, + /// A documentation comment: a line comment beginning with `///` or a + /// block comment beginning with `/**` (matching Rust's rustdoc rules, + /// so `////`-prefixed lines and `/**/` are treated as non-doc + /// [`Token::Comment`]s instead). + DocComment, Equals, Comma, @@ -234,7 +241,9 @@ impl<'a> Tokenizer<'a> { pub fn next(&mut self) -> Result, Error> { loop { match self.next_raw()? { - Some((_, Token::Whitespace)) | Some((_, Token::Comment)) => {} + Some((_, Token::Whitespace)) + | Some((_, Token::Comment)) + | Some((_, Token::DocComment)) => {} other => break Ok(other), } } @@ -258,14 +267,50 @@ impl<'a> Tokenizer<'a> { '/' => { // Eat a line comment if it's `//...` if self.eatc('/') { + // Distinguish doc line comments (`///...`) from regular + // line comments (`//...`) and from `////...` which + // rustdoc also treats as non-doc. + let is_doc = { + let mut peek = self.chars.clone(); + match (peek.next(), peek.next()) { + (Some((_, '/')), Some((_, ch2))) if ch2 != '/' => true, + (Some((_, '/')), None) => true, + _ => false, + } + }; + if is_doc { + // consume the third `/` + self.chars.next(); + } for (_, ch) in &mut self.chars { if ch == '\n' { break; } } - Comment + if is_doc { DocComment } else { Comment } // eat a block comment if it's `/*...` } else if self.eatc('*') { + // Distinguish doc block comments (`/** ... */`) from + // regular block comments. Following rustdoc: `/**/`, + // `/***/` (and `/*** ... */` where after the first two + // `*`s the next char is `*` or `/`) are treated as + // non-doc. + let is_doc = { + let mut peek = self.chars.clone(); + match peek.next() { + Some((_, '*')) => { + // Look at the char after `/**`; if it is + // `/` we have the empty `/**/` block, and + // if it is `*` we have `/***...` which is + // not a doc block. + match peek.next() { + Some((_, '/')) | Some((_, '*')) => false, + _ => true, + } + } + _ => false, + } + }; let mut depth = 1; while depth > 0 { let (_, ch) = match self.chars.next() { @@ -278,7 +323,7 @@ impl<'a> Tokenizer<'a> { _ => {} } } - Comment + if is_doc { DocComment } else { Comment } } else { Slash } @@ -681,6 +726,7 @@ impl Token { match self { Whitespace => "whitespace", Comment => "a comment", + DocComment => "a doc comment", Equals => "'='", Comma => "','", Colon => "':'", @@ -982,6 +1028,47 @@ fn test_tokenizer() { assert!(collect("\u{85}").is_err(), "control code"); } +#[test] +fn test_comment_kinds() { + fn collect_raw(s: &str) -> Result, Error> { + let mut t = Tokenizer::new(s, 0)?; + let mut tokens = Vec::new(); + while let Some((_, token)) = t.next_raw()? { + match token { + Token::Whitespace => continue, + _ => tokens.push(token), + } + } + Ok(tokens) + } + + // Line comments: `//` is non-doc, `///` is doc, `////`+ is non-doc. + assert_eq!(collect_raw("//\n").unwrap(), vec![Token::Comment]); + assert_eq!(collect_raw("// hi\n").unwrap(), vec![Token::Comment]); + assert_eq!(collect_raw("///\n").unwrap(), vec![Token::DocComment]); + assert_eq!(collect_raw("/// doc\n").unwrap(), vec![Token::DocComment]); + assert_eq!(collect_raw("////\n").unwrap(), vec![Token::Comment]); + assert_eq!(collect_raw("//// not-doc\n").unwrap(), vec![Token::Comment]); + assert_eq!(collect_raw("///////\n").unwrap(), vec![Token::Comment]); + + // Block comments: `/* */` is non-doc, `/** */` is doc, + // `/**/` and `/*** */` are non-doc. + assert_eq!(collect_raw("/* hi */").unwrap(), vec![Token::Comment]); + assert_eq!(collect_raw("/** hi */").unwrap(), vec![Token::DocComment]); + assert_eq!(collect_raw("/**/").unwrap(), vec![Token::Comment]); + assert_eq!(collect_raw("/***/").unwrap(), vec![Token::Comment]); + assert_eq!(collect_raw("/*** hi */").unwrap(), vec![Token::Comment]); + assert_eq!( + collect_raw("/** /* nested */ */").unwrap(), + vec![Token::DocComment] + ); + + // `next` (as opposed to `next_raw`) skips both comment kinds. + let mut t = Tokenizer::new("// non-doc\n/// doc\ntype", 0).unwrap(); + assert!(matches!(t.next().unwrap(), Some((_, Token::Type)))); + assert!(t.next().unwrap().is_none()); +} + #[test] fn test_strings() { #[track_caller] diff --git a/crates/wit-parser/tests/ui/comments.wit b/crates/wit-parser/tests/ui/comments.wit index 46545453de..e5fb8926ef 100644 --- a/crates/wit-parser/tests/ui/comments.wit +++ b/crates/wit-parser/tests/ui/comments.wit @@ -7,6 +7,8 @@ package foo:comments; /* this too */ /* is a comment */ /* this /* is /* a */ nested */ comment */ +/// doc comment for `foo` +/// second doc line interface foo { type x = u32; @@ -17,9 +19,26 @@ interface foo { - x >; + /// doc comment for `docd` + // this line comment must NOT appear in docs + /* neither does this block */ + /** doc block for `docd`, continued */ + type docd = u32; + + //// four-slash lines are NOT doc comments + type undocd = u32; + + /**/ + /***/ + type also-undocd = u32; +} + +/// docs for bar interface +interface bar { + /// docs for the-fn + the-fn: func(); } diff --git a/crates/wit-parser/tests/ui/comments.wit.json b/crates/wit-parser/tests/ui/comments.wit.json index b15b1200f7..66c6050a76 100644 --- a/crates/wit-parser/tests/ui/comments.wit.json +++ b/crates/wit-parser/tests/ui/comments.wit.json @@ -5,11 +5,32 @@ "name": "foo", "types": { "x": 0, - "bar": 1 + "bar": 1, + "docd": 2, + "undocd": 3, + "also-undocd": 4 }, "functions": {}, "docs": { - "contents": " hello\n world\n why, yes\n this is a comment\n* this too */\n* is a comment */\n* this /* is /* a */ nested */ comment */" + "contents": "doc comment for `foo`\nsecond doc line" + }, + "package": 0 + }, + { + "name": "bar", + "types": {}, + "functions": { + "the-fn": { + "name": "the-fn", + "kind": "freestanding", + "params": [], + "docs": { + "contents": "docs for the-fn" + } + } + }, + "docs": { + "contents": "docs for bar interface" }, "package": 0 } @@ -32,13 +53,44 @@ "owner": { "interface": 0 } + }, + { + "name": "docd", + "kind": { + "type": "u32" + }, + "owner": { + "interface": 0 + }, + "docs": { + "contents": "doc comment for `docd`\ndoc block for `docd`, continued" + } + }, + { + "name": "undocd", + "kind": { + "type": "u32" + }, + "owner": { + "interface": 0 + } + }, + { + "name": "also-undocd", + "kind": { + "type": "u32" + }, + "owner": { + "interface": 0 + } } ], "packages": [ { "name": "foo:comments", "interfaces": { - "foo": 0 + "foo": 0, + "bar": 1 }, "worlds": {} } diff --git a/crates/wit-parser/tests/ui/maps.wit.json b/crates/wit-parser/tests/ui/maps.wit.json index 33f5065f12..237c795e07 100644 --- a/crates/wit-parser/tests/ui/maps.wit.json +++ b/crates/wit-parser/tests/ui/maps.wit.json @@ -46,10 +46,7 @@ "type": "string" } ], - "result": 11, - "docs": { - "contents": "Functions using maps" - } + "result": 11 }, "set-value": { "name": "set-value", @@ -100,9 +97,6 @@ }, "owner": { "interface": 0 - }, - "docs": { - "contents": "Basic maps" } }, { @@ -137,9 +131,6 @@ }, "owner": { "interface": 0 - }, - "docs": { - "contents": "Nested maps" } }, { @@ -160,9 +151,6 @@ }, "owner": { "interface": 0 - }, - "docs": { - "contents": "Maps with complex types" } }, { @@ -201,9 +189,6 @@ }, "owner": { "interface": 0 - }, - "docs": { - "contents": "Maps with tuples, lists, options" } }, { @@ -216,9 +201,6 @@ }, "owner": { "interface": 0 - }, - "docs": { - "contents": "Map with various key types" } }, { diff --git a/crates/wit-parser/tests/ui/multi-package-gated-include.wit.json b/crates/wit-parser/tests/ui/multi-package-gated-include.wit.json index 8beca272e7..058cbcd5a2 100644 --- a/crates/wit-parser/tests/ui/multi-package-gated-include.wit.json +++ b/crates/wit-parser/tests/ui/multi-package-gated-include.wit.json @@ -367,10 +367,7 @@ "name": "test-only-stable-with-in-active-feature", "imports": {}, "exports": {}, - "package": 6, - "docs": { - "contents": "in test this results in world with nothing" - } + "package": 6 } ], "interfaces": [ diff --git a/tests/cli/component-docs-roundtrip.wit.stdout b/tests/cli/component-docs-roundtrip.wit.stdout index 02276d0e17..b351e5dda0 100644 --- a/tests/cli/component-docs-roundtrip.wit.stdout +++ b/tests/cli/component-docs-roundtrip.wit.stdout @@ -1,4 +1,3 @@ -/// RUN: component wit % --wasm | component wit package foo:docs-test; /// The interface. diff --git a/tests/cli/exportize.wit.selective.stdout b/tests/cli/exportize.wit.selective.stdout index 7011a2febd..0a30e2b50d 100644 --- a/tests/cli/exportize.wit.selective.stdout +++ b/tests/cli/exportize.wit.selective.stdout @@ -1,8 +1,3 @@ -/// RUN[simple]: component wit --exportize-world simple % -/// RUN[simple-rename]: component wit --exportize-world simple-rename --exportize-out-world-name test-rename % -/// RUN[with-deps]: component wit --exportize-world with-deps % -/// RUN[simple-toplevel]: component wit --exportize-world simple-toplevel % -/// RUN[selective]: component wit --exportize-world selective --exportize-import a % package exportize:exportize; interface i { diff --git a/tests/cli/exportize.wit.simple-rename.stdout b/tests/cli/exportize.wit.simple-rename.stdout index fca483ffdd..d7f26c47f5 100644 --- a/tests/cli/exportize.wit.simple-rename.stdout +++ b/tests/cli/exportize.wit.simple-rename.stdout @@ -1,8 +1,3 @@ -/// RUN[simple]: component wit --exportize-world simple % -/// RUN[simple-rename]: component wit --exportize-world simple-rename --exportize-out-world-name test-rename % -/// RUN[with-deps]: component wit --exportize-world with-deps % -/// RUN[simple-toplevel]: component wit --exportize-world simple-toplevel % -/// RUN[selective]: component wit --exportize-world selective --exportize-import a % package exportize:exportize; interface i { diff --git a/tests/cli/exportize.wit.simple-toplevel.stdout b/tests/cli/exportize.wit.simple-toplevel.stdout index 61da9cc141..ba78859db0 100644 --- a/tests/cli/exportize.wit.simple-toplevel.stdout +++ b/tests/cli/exportize.wit.simple-toplevel.stdout @@ -1,8 +1,3 @@ -/// RUN[simple]: component wit --exportize-world simple % -/// RUN[simple-rename]: component wit --exportize-world simple-rename --exportize-out-world-name test-rename % -/// RUN[with-deps]: component wit --exportize-world with-deps % -/// RUN[simple-toplevel]: component wit --exportize-world simple-toplevel % -/// RUN[selective]: component wit --exportize-world selective --exportize-import a % package exportize:exportize; interface i { diff --git a/tests/cli/exportize.wit.simple.stdout b/tests/cli/exportize.wit.simple.stdout index c9b81ec836..95bace45f4 100644 --- a/tests/cli/exportize.wit.simple.stdout +++ b/tests/cli/exportize.wit.simple.stdout @@ -1,8 +1,3 @@ -/// RUN[simple]: component wit --exportize-world simple % -/// RUN[simple-rename]: component wit --exportize-world simple-rename --exportize-out-world-name test-rename % -/// RUN[with-deps]: component wit --exportize-world with-deps % -/// RUN[simple-toplevel]: component wit --exportize-world simple-toplevel % -/// RUN[selective]: component wit --exportize-world selective --exportize-import a % package exportize:exportize; interface i { diff --git a/tests/cli/exportize.wit.with-deps.stdout b/tests/cli/exportize.wit.with-deps.stdout index f9e0cf944d..02c0d50022 100644 --- a/tests/cli/exportize.wit.with-deps.stdout +++ b/tests/cli/exportize.wit.with-deps.stdout @@ -1,8 +1,3 @@ -/// RUN[simple]: component wit --exportize-world simple % -/// RUN[simple-rename]: component wit --exportize-world simple-rename --exportize-out-world-name test-rename % -/// RUN[with-deps]: component wit --exportize-world with-deps % -/// RUN[simple-toplevel]: component wit --exportize-world simple-toplevel % -/// RUN[selective]: component wit --exportize-world selective --exportize-import a % package exportize:exportize; interface i { diff --git a/tests/cli/external-id-in-binary-format.wit.stdout b/tests/cli/external-id-in-binary-format.wit.stdout index 4e6a228e25..63d70c8cbd 100644 --- a/tests/cli/external-id-in-binary-format.wit.stdout +++ b/tests/cli/external-id-in-binary-format.wit.stdout @@ -1,4 +1,3 @@ -/// RUN: component wit % --wasm | component wit package a:b; interface foo { diff --git a/tests/cli/importize.wit.simple-rename.stdout b/tests/cli/importize.wit.simple-rename.stdout index 1514dbe814..7fcfe23a1e 100644 --- a/tests/cli/importize.wit.simple-rename.stdout +++ b/tests/cli/importize.wit.simple-rename.stdout @@ -1,13 +1,3 @@ -/// RUN[simple]: component wit --importize-world simple % -/// RUN[simple-rename]: component wit --importize-world simple-rename --importize-out-world-name test-rename % -/// RUN[simple-component]: component embed --dummy --world simple % | / -/// component wit --importize -/// RUN[with-deps]: component wit --importize-world with-deps % -/// RUN[simple-toplevel]: component wit --importize-world simple-toplevel % -/// RUN[toplevel-deps]: component wit --importize-world toplevel-deps % -/// FAIL[fail1]: component wit --importize-world fail1 % -/// RUN[trim-imports]: component wit --importize-world trim-imports % -/// RUN[tricky-import]: component wit --importize-world tricky-import % package importize:importize; interface t { diff --git a/tests/cli/importize.wit.simple-toplevel.stdout b/tests/cli/importize.wit.simple-toplevel.stdout index 47994748d1..7cbc2f4637 100644 --- a/tests/cli/importize.wit.simple-toplevel.stdout +++ b/tests/cli/importize.wit.simple-toplevel.stdout @@ -1,13 +1,3 @@ -/// RUN[simple]: component wit --importize-world simple % -/// RUN[simple-rename]: component wit --importize-world simple-rename --importize-out-world-name test-rename % -/// RUN[simple-component]: component embed --dummy --world simple % | / -/// component wit --importize -/// RUN[with-deps]: component wit --importize-world with-deps % -/// RUN[simple-toplevel]: component wit --importize-world simple-toplevel % -/// RUN[toplevel-deps]: component wit --importize-world toplevel-deps % -/// FAIL[fail1]: component wit --importize-world fail1 % -/// RUN[trim-imports]: component wit --importize-world trim-imports % -/// RUN[tricky-import]: component wit --importize-world tricky-import % package importize:importize; interface t { diff --git a/tests/cli/importize.wit.simple.stdout b/tests/cli/importize.wit.simple.stdout index 7e13e85321..4cc88ac596 100644 --- a/tests/cli/importize.wit.simple.stdout +++ b/tests/cli/importize.wit.simple.stdout @@ -1,13 +1,3 @@ -/// RUN[simple]: component wit --importize-world simple % -/// RUN[simple-rename]: component wit --importize-world simple-rename --importize-out-world-name test-rename % -/// RUN[simple-component]: component embed --dummy --world simple % | / -/// component wit --importize -/// RUN[with-deps]: component wit --importize-world with-deps % -/// RUN[simple-toplevel]: component wit --importize-world simple-toplevel % -/// RUN[toplevel-deps]: component wit --importize-world toplevel-deps % -/// FAIL[fail1]: component wit --importize-world fail1 % -/// RUN[trim-imports]: component wit --importize-world trim-imports % -/// RUN[tricky-import]: component wit --importize-world tricky-import % package importize:importize; interface t { diff --git a/tests/cli/importize.wit.toplevel-deps.stdout b/tests/cli/importize.wit.toplevel-deps.stdout index f9247fc10a..c5d9b7b2c0 100644 --- a/tests/cli/importize.wit.toplevel-deps.stdout +++ b/tests/cli/importize.wit.toplevel-deps.stdout @@ -1,13 +1,3 @@ -/// RUN[simple]: component wit --importize-world simple % -/// RUN[simple-rename]: component wit --importize-world simple-rename --importize-out-world-name test-rename % -/// RUN[simple-component]: component embed --dummy --world simple % | / -/// component wit --importize -/// RUN[with-deps]: component wit --importize-world with-deps % -/// RUN[simple-toplevel]: component wit --importize-world simple-toplevel % -/// RUN[toplevel-deps]: component wit --importize-world toplevel-deps % -/// FAIL[fail1]: component wit --importize-world fail1 % -/// RUN[trim-imports]: component wit --importize-world trim-imports % -/// RUN[tricky-import]: component wit --importize-world tricky-import % package importize:importize; interface t { diff --git a/tests/cli/importize.wit.tricky-import.stdout b/tests/cli/importize.wit.tricky-import.stdout index c89d0acfa7..47c83a05e8 100644 --- a/tests/cli/importize.wit.tricky-import.stdout +++ b/tests/cli/importize.wit.tricky-import.stdout @@ -1,13 +1,3 @@ -/// RUN[simple]: component wit --importize-world simple % -/// RUN[simple-rename]: component wit --importize-world simple-rename --importize-out-world-name test-rename % -/// RUN[simple-component]: component embed --dummy --world simple % | / -/// component wit --importize -/// RUN[with-deps]: component wit --importize-world with-deps % -/// RUN[simple-toplevel]: component wit --importize-world simple-toplevel % -/// RUN[toplevel-deps]: component wit --importize-world toplevel-deps % -/// FAIL[fail1]: component wit --importize-world fail1 % -/// RUN[trim-imports]: component wit --importize-world trim-imports % -/// RUN[tricky-import]: component wit --importize-world tricky-import % package importize:importize; interface t { diff --git a/tests/cli/importize.wit.trim-imports.stdout b/tests/cli/importize.wit.trim-imports.stdout index 831fce9705..94b8cc448f 100644 --- a/tests/cli/importize.wit.trim-imports.stdout +++ b/tests/cli/importize.wit.trim-imports.stdout @@ -1,13 +1,3 @@ -/// RUN[simple]: component wit --importize-world simple % -/// RUN[simple-rename]: component wit --importize-world simple-rename --importize-out-world-name test-rename % -/// RUN[simple-component]: component embed --dummy --world simple % | / -/// component wit --importize -/// RUN[with-deps]: component wit --importize-world with-deps % -/// RUN[simple-toplevel]: component wit --importize-world simple-toplevel % -/// RUN[toplevel-deps]: component wit --importize-world toplevel-deps % -/// FAIL[fail1]: component wit --importize-world fail1 % -/// RUN[trim-imports]: component wit --importize-world trim-imports % -/// RUN[tricky-import]: component wit --importize-world tricky-import % package importize:importize; interface t { diff --git a/tests/cli/importize.wit.with-deps.stdout b/tests/cli/importize.wit.with-deps.stdout index 97bef88dc7..0ac16ff704 100644 --- a/tests/cli/importize.wit.with-deps.stdout +++ b/tests/cli/importize.wit.with-deps.stdout @@ -1,13 +1,3 @@ -/// RUN[simple]: component wit --importize-world simple % -/// RUN[simple-rename]: component wit --importize-world simple-rename --importize-out-world-name test-rename % -/// RUN[simple-component]: component embed --dummy --world simple % | / -/// component wit --importize -/// RUN[with-deps]: component wit --importize-world with-deps % -/// RUN[simple-toplevel]: component wit --importize-world simple-toplevel % -/// RUN[toplevel-deps]: component wit --importize-world toplevel-deps % -/// FAIL[fail1]: component wit --importize-world fail1 % -/// RUN[trim-imports]: component wit --importize-world trim-imports % -/// RUN[tricky-import]: component wit --importize-world tricky-import % package importize:importize; interface t { diff --git a/tests/cli/merge-canon-with-implements.wit.stdout b/tests/cli/merge-canon-with-implements.wit.stdout index fe6fbde914..a2912db6b3 100644 --- a/tests/cli/merge-canon-with-implements.wit.stdout +++ b/tests/cli/merge-canon-with-implements.wit.stdout @@ -1,4 +1,3 @@ -/// RUN: component wit --merge-world-imports-based-on-semver foo % package test:pkg; world foo { diff --git a/tests/cli/merge-semver-edge-cases.wit.new-import-new-dep.stdout b/tests/cli/merge-semver-edge-cases.wit.new-import-new-dep.stdout index 2148050af5..354aaa5f5e 100644 --- a/tests/cli/merge-semver-edge-cases.wit.new-import-new-dep.stdout +++ b/tests/cli/merge-semver-edge-cases.wit.new-import-new-dep.stdout @@ -1,5 +1,3 @@ -/// RUN[new-import-new-dep]: component wit % --merge-world-imports-based-on-semver new-dep -/// RUN[reorder-new-dep]: component wit % --merge-world-imports-based-on-semver reorder-dep package foo:bar; world new-dep { diff --git a/tests/cli/merge-semver-edge-cases.wit.reorder-new-dep.stdout b/tests/cli/merge-semver-edge-cases.wit.reorder-new-dep.stdout index de791dc0b1..b4e68108d7 100644 --- a/tests/cli/merge-semver-edge-cases.wit.reorder-new-dep.stdout +++ b/tests/cli/merge-semver-edge-cases.wit.reorder-new-dep.stdout @@ -1,5 +1,3 @@ -/// RUN[new-import-new-dep]: component wit % --merge-world-imports-based-on-semver new-dep -/// RUN[reorder-new-dep]: component wit % --merge-world-imports-based-on-semver reorder-dep package foo:bar; world new-dep { diff --git a/tests/cli/merge-semver-update-all-worlds.wit.stdout b/tests/cli/merge-semver-update-all-worlds.wit.stdout index ea94749d44..2e73466b7a 100644 --- a/tests/cli/merge-semver-update-all-worlds.wit.stdout +++ b/tests/cli/merge-semver-update-all-worlds.wit.stdout @@ -1,4 +1,3 @@ -/// RUN: component wit --merge-world-imports-based-on-semver a % package foo:bar; world a { diff --git a/tests/cli/merge-with-similar-versions.wit.exports.stdout b/tests/cli/merge-with-similar-versions.wit.exports.stdout index c9ed724099..0126b538b8 100644 --- a/tests/cli/merge-with-similar-versions.wit.exports.stdout +++ b/tests/cli/merge-with-similar-versions.wit.exports.stdout @@ -1,10 +1,3 @@ -/// RUN[imports]: component wit % --merge-world-imports-based-on-semver imports -/// RUN[exports]: component wit % --merge-world-imports-based-on-semver exports -/// RUN[imports-deps]: component wit % --merge-world-imports-based-on-semver imports-deps -/// RUN[imports-deps2]: component wit % --merge-world-imports-based-on-semver imports-deps2 -/// RUN[invalid-semver]: component wit % --merge-world-imports-based-on-semver invalid-semver -/// RUN[valid-semver]: component wit % --merge-world-imports-based-on-semver valid-semver -/// RUN[fix-transitive]: component wit % --merge-world-imports-based-on-semver fix-transitive package foo:bar; world imports { diff --git a/tests/cli/merge-with-similar-versions.wit.fix-transitive.stdout b/tests/cli/merge-with-similar-versions.wit.fix-transitive.stdout index 6cd668ef6a..eaa5fcb837 100644 --- a/tests/cli/merge-with-similar-versions.wit.fix-transitive.stdout +++ b/tests/cli/merge-with-similar-versions.wit.fix-transitive.stdout @@ -1,10 +1,3 @@ -/// RUN[imports]: component wit % --merge-world-imports-based-on-semver imports -/// RUN[exports]: component wit % --merge-world-imports-based-on-semver exports -/// RUN[imports-deps]: component wit % --merge-world-imports-based-on-semver imports-deps -/// RUN[imports-deps2]: component wit % --merge-world-imports-based-on-semver imports-deps2 -/// RUN[invalid-semver]: component wit % --merge-world-imports-based-on-semver invalid-semver -/// RUN[valid-semver]: component wit % --merge-world-imports-based-on-semver valid-semver -/// RUN[fix-transitive]: component wit % --merge-world-imports-based-on-semver fix-transitive package foo:bar; world imports { diff --git a/tests/cli/merge-with-similar-versions.wit.imports-deps.stdout b/tests/cli/merge-with-similar-versions.wit.imports-deps.stdout index 996c951f16..d6725b1952 100644 --- a/tests/cli/merge-with-similar-versions.wit.imports-deps.stdout +++ b/tests/cli/merge-with-similar-versions.wit.imports-deps.stdout @@ -1,10 +1,3 @@ -/// RUN[imports]: component wit % --merge-world-imports-based-on-semver imports -/// RUN[exports]: component wit % --merge-world-imports-based-on-semver exports -/// RUN[imports-deps]: component wit % --merge-world-imports-based-on-semver imports-deps -/// RUN[imports-deps2]: component wit % --merge-world-imports-based-on-semver imports-deps2 -/// RUN[invalid-semver]: component wit % --merge-world-imports-based-on-semver invalid-semver -/// RUN[valid-semver]: component wit % --merge-world-imports-based-on-semver valid-semver -/// RUN[fix-transitive]: component wit % --merge-world-imports-based-on-semver fix-transitive package foo:bar; world imports { diff --git a/tests/cli/merge-with-similar-versions.wit.imports-deps2.stdout b/tests/cli/merge-with-similar-versions.wit.imports-deps2.stdout index dc62c2b35b..4c6a16bd79 100644 --- a/tests/cli/merge-with-similar-versions.wit.imports-deps2.stdout +++ b/tests/cli/merge-with-similar-versions.wit.imports-deps2.stdout @@ -1,10 +1,3 @@ -/// RUN[imports]: component wit % --merge-world-imports-based-on-semver imports -/// RUN[exports]: component wit % --merge-world-imports-based-on-semver exports -/// RUN[imports-deps]: component wit % --merge-world-imports-based-on-semver imports-deps -/// RUN[imports-deps2]: component wit % --merge-world-imports-based-on-semver imports-deps2 -/// RUN[invalid-semver]: component wit % --merge-world-imports-based-on-semver invalid-semver -/// RUN[valid-semver]: component wit % --merge-world-imports-based-on-semver valid-semver -/// RUN[fix-transitive]: component wit % --merge-world-imports-based-on-semver fix-transitive package foo:bar; world imports { diff --git a/tests/cli/merge-with-similar-versions.wit.imports.stdout b/tests/cli/merge-with-similar-versions.wit.imports.stdout index 0151bd53c9..0421054d26 100644 --- a/tests/cli/merge-with-similar-versions.wit.imports.stdout +++ b/tests/cli/merge-with-similar-versions.wit.imports.stdout @@ -1,10 +1,3 @@ -/// RUN[imports]: component wit % --merge-world-imports-based-on-semver imports -/// RUN[exports]: component wit % --merge-world-imports-based-on-semver exports -/// RUN[imports-deps]: component wit % --merge-world-imports-based-on-semver imports-deps -/// RUN[imports-deps2]: component wit % --merge-world-imports-based-on-semver imports-deps2 -/// RUN[invalid-semver]: component wit % --merge-world-imports-based-on-semver invalid-semver -/// RUN[valid-semver]: component wit % --merge-world-imports-based-on-semver valid-semver -/// RUN[fix-transitive]: component wit % --merge-world-imports-based-on-semver fix-transitive package foo:bar; world imports { diff --git a/tests/cli/merge-with-similar-versions.wit.invalid-semver.stdout b/tests/cli/merge-with-similar-versions.wit.invalid-semver.stdout index b6a9da879b..9e282b28b0 100644 --- a/tests/cli/merge-with-similar-versions.wit.invalid-semver.stdout +++ b/tests/cli/merge-with-similar-versions.wit.invalid-semver.stdout @@ -1,10 +1,3 @@ -/// RUN[imports]: component wit % --merge-world-imports-based-on-semver imports -/// RUN[exports]: component wit % --merge-world-imports-based-on-semver exports -/// RUN[imports-deps]: component wit % --merge-world-imports-based-on-semver imports-deps -/// RUN[imports-deps2]: component wit % --merge-world-imports-based-on-semver imports-deps2 -/// RUN[invalid-semver]: component wit % --merge-world-imports-based-on-semver invalid-semver -/// RUN[valid-semver]: component wit % --merge-world-imports-based-on-semver valid-semver -/// RUN[fix-transitive]: component wit % --merge-world-imports-based-on-semver fix-transitive package foo:bar; world imports { diff --git a/tests/cli/merge-with-similar-versions.wit.valid-semver.stdout b/tests/cli/merge-with-similar-versions.wit.valid-semver.stdout index 32fe73a9e9..5f3f42af5d 100644 --- a/tests/cli/merge-with-similar-versions.wit.valid-semver.stdout +++ b/tests/cli/merge-with-similar-versions.wit.valid-semver.stdout @@ -1,10 +1,3 @@ -/// RUN[imports]: component wit % --merge-world-imports-based-on-semver imports -/// RUN[exports]: component wit % --merge-world-imports-based-on-semver exports -/// RUN[imports-deps]: component wit % --merge-world-imports-based-on-semver imports-deps -/// RUN[imports-deps2]: component wit % --merge-world-imports-based-on-semver imports-deps2 -/// RUN[invalid-semver]: component wit % --merge-world-imports-based-on-semver invalid-semver -/// RUN[valid-semver]: component wit % --merge-world-imports-based-on-semver valid-semver -/// RUN[fix-transitive]: component wit % --merge-world-imports-based-on-semver fix-transitive package foo:bar; world imports { diff --git a/tests/cli/merge-world-imports-based-on-semver.wit.stdout b/tests/cli/merge-world-imports-based-on-semver.wit.stdout index 1c410fd4de..8070effbbc 100644 --- a/tests/cli/merge-world-imports-based-on-semver.wit.stdout +++ b/tests/cli/merge-world-imports-based-on-semver.wit.stdout @@ -1,4 +1,3 @@ -/// RUN: component wit --merge-world-imports-based-on-semver foo % package a:b; world foo { diff --git a/tests/cli/merge-world-imports-fixup-exports.wit.stdout b/tests/cli/merge-world-imports-fixup-exports.wit.stdout index 813cb1d6ce..7dbecff080 100644 --- a/tests/cli/merge-world-imports-fixup-exports.wit.stdout +++ b/tests/cli/merge-world-imports-fixup-exports.wit.stdout @@ -1,4 +1,3 @@ -/// RUN: component wit % --merge-world-imports-based-on-semver a package foo:bar; world a { diff --git a/tests/cli/nominal1.wit.stdout b/tests/cli/nominal1.wit.stdout index b9ff3e7604..a26d70072d 100644 --- a/tests/cli/nominal1.wit.stdout +++ b/tests/cli/nominal1.wit.stdout @@ -89,9 +89,6 @@ "packages": [ { "name": "a:b", - "docs": { - "contents": "RUN: component wit --generate-nominal-type-ids foo % --json" - }, "interfaces": { "x": 0 }, diff --git a/tests/cli/nominal10.wit.stdout b/tests/cli/nominal10.wit.stdout index 6aa93710b1..e92e262d11 100644 --- a/tests/cli/nominal10.wit.stdout +++ b/tests/cli/nominal10.wit.stdout @@ -82,9 +82,6 @@ "packages": [ { "name": "a:b", - "docs": { - "contents": "RUN: component wit --generate-nominal-type-ids foo % --json" - }, "interfaces": { "dep": 0, "i": 1 diff --git a/tests/cli/nominal11.wit.stdout b/tests/cli/nominal11.wit.stdout index da7aeb39ad..fae0d159e7 100644 --- a/tests/cli/nominal11.wit.stdout +++ b/tests/cli/nominal11.wit.stdout @@ -129,9 +129,6 @@ "packages": [ { "name": "a:b", - "docs": { - "contents": "RUN: component wit --generate-nominal-type-ids foo % --json" - }, "interfaces": { "dep": 0, "i": 1 diff --git a/tests/cli/nominal12.wit.stdout b/tests/cli/nominal12.wit.stdout index 7e2717a5f5..3b270b3ff8 100644 --- a/tests/cli/nominal12.wit.stdout +++ b/tests/cli/nominal12.wit.stdout @@ -152,9 +152,6 @@ "packages": [ { "name": "a:b", - "docs": { - "contents": "RUN: component wit --generate-nominal-type-ids foo % --json" - }, "interfaces": { "dep": 0, "i": 1 diff --git a/tests/cli/nominal13.wit.stdout b/tests/cli/nominal13.wit.stdout index 600535dc1e..e838394f2e 100644 --- a/tests/cli/nominal13.wit.stdout +++ b/tests/cli/nominal13.wit.stdout @@ -50,9 +50,6 @@ "packages": [ { "name": "a:b", - "docs": { - "contents": "RUN: component wit --generate-nominal-type-ids w % --json" - }, "interfaces": { "i": 0 }, diff --git a/tests/cli/nominal2.wit.stdout b/tests/cli/nominal2.wit.stdout index 01060209ce..6426f88638 100644 --- a/tests/cli/nominal2.wit.stdout +++ b/tests/cli/nominal2.wit.stdout @@ -129,9 +129,6 @@ "packages": [ { "name": "a:b", - "docs": { - "contents": "RUN: component wit --generate-nominal-type-ids foo % --json" - }, "interfaces": { "x": 0 }, diff --git a/tests/cli/nominal3.wit.stdout b/tests/cli/nominal3.wit.stdout index 15aaca488d..abb40bc573 100644 --- a/tests/cli/nominal3.wit.stdout +++ b/tests/cli/nominal3.wit.stdout @@ -88,9 +88,6 @@ "packages": [ { "name": "a:b", - "docs": { - "contents": "RUN: component wit --generate-nominal-type-ids foo % --json" - }, "interfaces": { "x": 0, "y": 1 diff --git a/tests/cli/nominal4.wit.stdout b/tests/cli/nominal4.wit.stdout index f2a0db18fd..87725cd094 100644 --- a/tests/cli/nominal4.wit.stdout +++ b/tests/cli/nominal4.wit.stdout @@ -96,9 +96,6 @@ }, { "name": "a:b", - "docs": { - "contents": "RUN: component wit --generate-nominal-type-ids foo % --json" - }, "interfaces": {}, "worlds": { "foo": 0 diff --git a/tests/cli/nominal5.wit.stdout b/tests/cli/nominal5.wit.stdout index fc7f0bd6cc..5830edae05 100644 --- a/tests/cli/nominal5.wit.stdout +++ b/tests/cli/nominal5.wit.stdout @@ -49,9 +49,6 @@ "packages": [ { "name": "a:b", - "docs": { - "contents": "RUN: component wit --generate-nominal-type-ids foo % --json" - }, "interfaces": { "i": 0 }, diff --git a/tests/cli/nominal6.wit.stdout b/tests/cli/nominal6.wit.stdout index 82c375a627..59e158ce09 100644 --- a/tests/cli/nominal6.wit.stdout +++ b/tests/cli/nominal6.wit.stdout @@ -50,9 +50,6 @@ "packages": [ { "name": "a:b", - "docs": { - "contents": "RUN: component wit --generate-nominal-type-ids foo % --json" - }, "interfaces": { "i": 0 }, diff --git a/tests/cli/nominal7.wit.stdout b/tests/cli/nominal7.wit.stdout index 6ab64be37f..861e0b4ccd 100644 --- a/tests/cli/nominal7.wit.stdout +++ b/tests/cli/nominal7.wit.stdout @@ -50,9 +50,6 @@ "packages": [ { "name": "a:b", - "docs": { - "contents": "RUN: component wit --generate-nominal-type-ids foo % --json" - }, "interfaces": { "i": 0 }, diff --git a/tests/cli/nominal8.wit.stdout b/tests/cli/nominal8.wit.stdout index e20f038f9d..c8ff1ddf65 100644 --- a/tests/cli/nominal8.wit.stdout +++ b/tests/cli/nominal8.wit.stdout @@ -50,9 +50,6 @@ "packages": [ { "name": "a:b", - "docs": { - "contents": "RUN: component wit --generate-nominal-type-ids foo % --json" - }, "interfaces": { "i": 0 }, diff --git a/tests/cli/nominal9.wit.stdout b/tests/cli/nominal9.wit.stdout index 2a84af6a9d..5f87549675 100644 --- a/tests/cli/nominal9.wit.stdout +++ b/tests/cli/nominal9.wit.stdout @@ -49,9 +49,6 @@ "packages": [ { "name": "a:b", - "docs": { - "contents": "RUN: component wit --generate-nominal-type-ids foo % --json" - }, "interfaces": { "i": 0 }, diff --git a/tests/cli/print-interfaces-in-world-correctly.wit.stdout b/tests/cli/print-interfaces-in-world-correctly.wit.stdout index 56ae5efa32..071950fac6 100644 --- a/tests/cli/print-interfaces-in-world-correctly.wit.stdout +++ b/tests/cli/print-interfaces-in-world-correctly.wit.stdout @@ -1,4 +1,3 @@ -/// RUN: component wit % package foo:bar; interface local { diff --git a/tests/cli/roundtrip-external-id.wit.stdout b/tests/cli/roundtrip-external-id.wit.stdout index cb734aa61d..b5927b293a 100644 --- a/tests/cli/roundtrip-external-id.wit.stdout +++ b/tests/cli/roundtrip-external-id.wit.stdout @@ -1,4 +1,3 @@ -/// RUN: component wit % package x:name; interface i { diff --git a/tests/cli/wit-directory-output-in-deps-folder-with-multiple-version.wit.read.stdout b/tests/cli/wit-directory-output-in-deps-folder-with-multiple-version.wit.read.stdout index 4cd898c464..8962529da1 100644 --- a/tests/cli/wit-directory-output-in-deps-folder-with-multiple-version.wit.read.stdout +++ b/tests/cli/wit-directory-output-in-deps-folder-with-multiple-version.wit.read.stdout @@ -1,5 +1,3 @@ -/// RUN[gen]: component wit % --out-dir %tmpdir -/// RUN[read]: component wit %tmpdir package foo:root; package a:b { diff --git a/tests/cli/wit-directory-output-valid.wit.read.stdout b/tests/cli/wit-directory-output-valid.wit.read.stdout index bccf6e8e5f..5104c2dc5e 100644 --- a/tests/cli/wit-directory-output-valid.wit.read.stdout +++ b/tests/cli/wit-directory-output-valid.wit.read.stdout @@ -1,5 +1,3 @@ -/// RUN[gen]: component wit % --out-dir %tmpdir -/// RUN[read]: component wit %tmpdir package foo:root; package a:c { diff --git a/tests/cli/wit-stability-in-binary-format.wit.stdout b/tests/cli/wit-stability-in-binary-format.wit.stdout index 54a0a939dc..7628f6224f 100644 --- a/tests/cli/wit-stability-in-binary-format.wit.stdout +++ b/tests/cli/wit-stability-in-binary-format.wit.stdout @@ -1,4 +1,3 @@ -/// RUN: component wit % --wasm | component wit package a:b@1.0.0; @since(version = 1.0.0) diff --git a/tests/cli/wit-stability-inherited.wit.stdout b/tests/cli/wit-stability-inherited.wit.stdout index 19b3df4505..771ee718c5 100644 --- a/tests/cli/wit-stability-inherited.wit.stdout +++ b/tests/cli/wit-stability-inherited.wit.stdout @@ -1,4 +1,3 @@ -/// RUN: component wit % package a:b@1.0.0; interface foo { diff --git a/tests/cli/wit-with-all-features.wit.stdout b/tests/cli/wit-with-all-features.wit.stdout index 05b7c7fec7..88db712b0e 100644 --- a/tests/cli/wit-with-all-features.wit.stdout +++ b/tests/cli/wit-with-all-features.wit.stdout @@ -1,4 +1,3 @@ -/// RUN: component wit --all-features % package a:b; @unstable(feature = foo) diff --git a/tests/cli/wit-with-features.wit.stdout b/tests/cli/wit-with-features.wit.stdout index f188b45ec1..e98d10ed7f 100644 --- a/tests/cli/wit-with-features.wit.stdout +++ b/tests/cli/wit-with-features.wit.stdout @@ -1,4 +1,3 @@ -/// RUN: component wit --features foo % package a:b; @unstable(feature = foo) diff --git a/tests/cli/wit-world-async-func-toplevel.wit.stdout b/tests/cli/wit-world-async-func-toplevel.wit.stdout index c1795efdd3..f7aaa07380 100644 --- a/tests/cli/wit-world-async-func-toplevel.wit.stdout +++ b/tests/cli/wit-world-async-func-toplevel.wit.stdout @@ -1,4 +1,3 @@ -/// RUN: component wit % -t | component wit package a:b; world foo { diff --git a/tests/cli/world-export-elaborated-import-stability.wit.round-trip.stdout b/tests/cli/world-export-elaborated-import-stability.wit.round-trip.stdout index 01054e5b3c..23d0b5fa5b 100644 --- a/tests/cli/world-export-elaborated-import-stability.wit.round-trip.stdout +++ b/tests/cli/world-export-elaborated-import-stability.wit.round-trip.stdout @@ -1,4 +1,3 @@ -/// RUN[round-trip]: component wit % --wasm | component wit package a:b@9.0.0; interface name {