Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–7 unchanged (7 lines)
8 main: ResolvedVc<EcmascriptInputTransforms>,
9 /// Transforms to run last: JSX, preset-env, scan for imports, ...
10 postprocess: ResolvedVc<EcmascriptInputTransforms>,
11 #[turbo_tasks(trace_ignore)]
12 options: ResolvedVc<EcmascriptOptions>,
13 },
14 WebAssembly {
15 source_ty: WebAssemblySourceType,
16 },
17}
18
19fn main () {
20 println!("Test")
21}
22

After

…lines 1–7 unchanged (7 lines)
8 main: ResolvedVc<EcmascriptInputTransforms>,
9 /// Transforms to run last: JSX, preset-env, scan for imports, ...
10 postprocess: ResolvedVc<EcmascriptInputTransforms>,
11 #[turbo_tasks(trace_ignore)]
12 options: ResolvedVc<EcmascriptOptions>,
13 },
14 InlinedByteJ,
15 WebAssembly {
16 source_ty: WebAssemblySourceType,
17 },
18}
19
20fn main () {
21 println!("Test")
22}
23

Before

source_file
attribute_item
# "#"
[ "["
attribute
scoped_identifier
identifier "turbo_tasks"
:: "::"
identifier "value"
token_tree
( "("
identifier "shared"
) ")"
] "]"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Hash"
, ","
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
enum_item
visibility_modifier
pub "pub"
enum "enum"
type_identifier "ModuleType"
enum_variant_list
{ "{"
enum_variant (+70 nodes collapsed)
, ","
enum_variant
identifier "WebAssembly"
field_declaration_list
{ "{"
field_declaration
field_identifier "source_ty"
: ":"
type_identifier "WebAssemblySourceType"
, ","
} "}"
, ","
} "}"
function_item
fn "fn"
identifier "main"
parameters
( "("
) ")"
block
{ "{"
macro_invocation
identifier "println"
! "!"
token_tree
( "("
string_literal
" "\""
string_content "Test"
" "\""
) ")"
} "}"

After

source_file
attribute_item
# "#"
[ "["
attribute
scoped_identifier
identifier "turbo_tasks"
:: "::"
identifier "value"
token_tree
( "("
identifier "shared"
) ")"
] "]"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Hash"
, ","
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
enum_item
visibility_modifier
pub "pub"
enum "enum"
type_identifier "ModuleType"
enum_variant_list
{ "{"
enum_variant (+70 nodes collapsed)
, ","
enum_variant
identifier "InlinedByteJ"
, ","
enum_variant
identifier "WebAssembly"
field_declaration_list
{ "{"
field_declaration
field_identifier "source_ty"
: ":"
type_identifier "WebAssemblySourceType"
, ","
} "}"
, ","
} "}"
function_item
fn "fn"
identifier "main"
parameters
( "("
) ")"
block
{ "{"
macro_invocation
identifier "println"
! "!"
token_tree
( "("
string_literal
" "\""
string_content "Test"
" "\""
) ")"
} "}"