sway-core 0.48.0

Sway core language.
Documentation
Build #1042674 2023-12-06T07:18:03.105344+00:00
# rustc version
rustc 1.76.0-nightly (e9013ac0e 2023-12-05)# docs.rs version
docsrs 0.6.0 (cd4e3294 2023-12-01)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/sway-core-0.48.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/sway-core-0.48.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "-Z" "unstable-options" "--config" "build.rustdocflags=[\"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20231205-1.76.0-nightly-e9013ac0e\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] f86f32cc6bddf71414309417e95b9fcba47c0f2622c509b5fc008b28466cf30b
[INFO] running `Command { std: "docker" "start" "-a" "f86f32cc6bddf71414309417e95b9fcba47c0f2622c509b5fc008b28466cf30b", kill_on_drop: false }`
[INFO] [stderr] warning: Target filter specified, but no targets matched. This is a no-op
[INFO] [stderr]  Documenting sway-core v0.48.0 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unresolved link to `Procedures`
[INFO] [stderr]   --> src/asm_generation/miden_vm/miden_vm_asm_builder.rs:65:42
[INFO] [stderr]    |
[INFO] [stderr] 65 | /// Function bodies are abstracted into [Procedures]
[INFO] [stderr]    |                                          ^^^^^^^^^^ no item named `Procedures` in scope
[INFO] [stderr]    |
[INFO] [stderr]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr]    = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `wrapper::DeclWrapper`
[INFO] [stderr]  --> src/decl_engine/mod.rs:6:56
[INFO] [stderr]   |
[INFO] [stderr] 6 | //! mapping from [DeclId](id::DeclId) to [DeclWrapper](wrapper::DeclWrapper).
[INFO] [stderr]   |                                                        ^^^^^^^^^^^^^^^^^^^^ no item named `wrapper` in scope
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `wrapper::DeclWrapper`
[INFO] [stderr]  --> src/decl_engine/mod.rs:7:26
[INFO] [stderr]   |
[INFO] [stderr] 7 | //! When a [DeclWrapper](wrapper::DeclWrapper) is inserted into the
[INFO] [stderr]   |                          ^^^^^^^^^^^^^^^^^^^^ no item named `wrapper` in scope
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `get`
[INFO] [stderr]    --> src/decl_engine/engine.rs:260:30
[INFO] [stderr]     |
[INFO] [stderr] 260 |     /// Calling [DeclEngine][get] directly is equivalent to this method, but
[INFO] [stderr]     |                              ^^^ no item named `get` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `get`
[INFO] [stderr]    --> src/decl_engine/engine.rs:272:30
[INFO] [stderr]     |
[INFO] [stderr] 272 |     /// Calling [DeclEngine][get] directly is equivalent to this method, but
[INFO] [stderr]     |                              ^^^ no item named `get` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `get`
[INFO] [stderr]    --> src/decl_engine/engine.rs:299:30
[INFO] [stderr]     |
[INFO] [stderr] 299 |     /// Calling [DeclEngine][get] directly is equivalent to this method, but
[INFO] [stderr]     |                              ^^^ no item named `get` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `get`
[INFO] [stderr]    --> src/decl_engine/engine.rs:311:30
[INFO] [stderr]     |
[INFO] [stderr] 311 |     /// Calling [DeclEngine][get] directly is equivalent to this method, but
[INFO] [stderr]     |                              ^^^ no item named `get` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `get`
[INFO] [stderr]    --> src/decl_engine/engine.rs:323:30
[INFO] [stderr]     |
[INFO] [stderr] 323 |     /// Calling [DeclEngine][get] directly is equivalent to this method, but
[INFO] [stderr]     |                              ^^^ no item named `get` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `get`
[INFO] [stderr]    --> src/decl_engine/engine.rs:335:30
[INFO] [stderr]     |
[INFO] [stderr] 335 |     /// Calling [DeclEngine][get] directly is equivalent to this method, but
[INFO] [stderr]     |                              ^^^ no item named `get` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `get`
[INFO] [stderr]    --> src/decl_engine/engine.rs:347:30
[INFO] [stderr]     |
[INFO] [stderr] 347 |     /// Calling [DeclEngine][get] directly is equivalent to this method, but
[INFO] [stderr]     |                              ^^^ no item named `get` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `get`
[INFO] [stderr]    --> src/decl_engine/engine.rs:359:30
[INFO] [stderr]     |
[INFO] [stderr] 359 |     /// Calling [DeclEngine][get] directly is equivalent to this method, but
[INFO] [stderr]     |                              ^^^ no item named `get` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `get`
[INFO] [stderr]    --> src/decl_engine/engine.rs:371:30
[INFO] [stderr]     |
[INFO] [stderr] 371 |     /// Calling [DeclEngine][get] directly is equivalent to this method, but
[INFO] [stderr]     |                              ^^^ no item named `get` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `get`
[INFO] [stderr]    --> src/decl_engine/engine.rs:383:30
[INFO] [stderr]     |
[INFO] [stderr] 383 |     /// Calling [DeclEngine][get] directly is equivalent to this method, but
[INFO] [stderr]     |                              ^^^ no item named `get` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `get`
[INFO] [stderr]    --> src/decl_engine/engine.rs:395:30
[INFO] [stderr]     |
[INFO] [stderr] 395 |     /// Calling [DeclEngine][get] directly is equivalent to this method, but
[INFO] [stderr]     |                              ^^^ no item named `get` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: public documentation for `pretty_print` links to private item `DisplayWithEngines`
[INFO] [stderr]    --> src/decl_engine/engine.rs:406:10
[INFO] [stderr]     |
[INFO] [stderr] 406 |     /// [DisplayWithEngines].
[INFO] [stderr]     |          ^^^^^^^^^^^^^^^^^^ this item is private
[INFO] [stderr]     |
[INFO] [stderr]     = note: this link will resolve properly if you pass `--document-private-items`
[INFO] [stderr]     = note: `#[warn(rustdoc::private_intra_doc_links)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `super::decl_engine::DeclEngine`
[INFO] [stderr]   --> src/decl_engine/id.rs:17:56
[INFO] [stderr]    |
[INFO] [stderr] 17 | /// An ID used to refer to an item in the [DeclEngine](super::decl_engine::DeclEngine)
[INFO] [stderr]    |                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `decl_engine` in module `decl_engine`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `AstNodeContent::ReturnStatement`
[INFO] [stderr]   --> src/language/parsed/mod.rs:55:60
[INFO] [stderr]    |
[INFO] [stderr] 55 |     /// An implicit return expression is different from a [AstNodeContent::ReturnStatement] because
[INFO] [stderr]    |                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the enum `AstNodeContent` has no variant or associated item named `ReturnStatement`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `Purity::Impure`
[INFO] [stderr]  --> src/language/purity.rs:2:58
[INFO] [stderr]   |
[INFO] [stderr] 2 | /// or could potentially access contract storage, it is [Purity::Impure]. If a function does not utilize any
[INFO] [stderr]   |                                                          ^^^^^^^^^^^^^^ the enum `Purity` has no variant or associated item named `Impure`
[INFO] [stderr] 
[INFO] [stderr] warning: public documentation for `pretty_print` links to private item `DisplayWithEngines`
[INFO] [stderr]    --> src/type_system/engine.rs:363:10
[INFO] [stderr]     |
[INFO] [stderr] 363 |     /// [DisplayWithEngines].
[INFO] [stderr]     |          ^^^^^^^^^^^^^^^^^^ this item is private
[INFO] [stderr]     |
[INFO] [stderr]     = note: this link will resolve properly if you pass `--document-private-items`
[INFO] [stderr] 
[INFO] [stderr] warning: unclosed HTML tag `label`
[INFO] [stderr]   --> src/asm_generation/miden_vm/miden_vm_asm_builder.rs:32:23
[INFO] [stderr]    |
[INFO] [stderr] 32 | /// start with a proc.<label>.<number of locals> instruction and terminate with an end instruction.
[INFO] [stderr]    |                       ^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(rustdoc::invalid_html_tags)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unclosed HTML tag `number`
[INFO] [stderr]   --> src/asm_generation/miden_vm/miden_vm_asm_builder.rs:32:31
[INFO] [stderr]    |
[INFO] [stderr] 32 | /// start with a proc.<label>.<number of locals> instruction and terminate with an end instruction.
[INFO] [stderr]    |                               ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]    --> src/asm_generation/miden_vm/miden_vm_asm_builder.rs:580:9
[INFO] [stderr]     |
[INFO] [stderr] 580 |     /// https://0xpolygonmiden.github.io/miden-vm/design/stack/main.html#operand-stack
[INFO] [stderr]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://0xpolygonmiden.github.io/miden-vm/design/stack/main.html#operand-stack>`
[INFO] [stderr]     |
[INFO] [stderr]     = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr]     = note: `#[warn(rustdoc::bare_urls)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]  --> src/decl_engine/mod.rs:1:22
[INFO] [stderr]   |
[INFO] [stderr] 1 | //! The [DeclEngine](engine::DeclEngine) allows the compiler to add a layer of
[INFO] [stderr]   |          ----------  ^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]   |          |
[INFO] [stderr]   |          because label contains path that resolves to same destination
[INFO] [stderr]   |
[INFO] [stderr]   = note: when a link's destination is not specified,
[INFO] [stderr]           the label is used to resolve intra-doc links
[INFO] [stderr]   = note: `#[warn(rustdoc::redundant_explicit_links)]` on by default
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]   |
[INFO] [stderr] 1 | //! The [DeclEngine] allows the compiler to add a layer of
[INFO] [stderr]   |         ~~~~~~~~~~~~
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]  --> src/decl_engine/mod.rs:5:56
[INFO] [stderr]   |
[INFO] [stderr] 5 | //! As an interface, you can think of the [DeclEngine](engine::DeclEngine) as a
[INFO] [stderr]   |                                            ----------  ^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]   |                                            |
[INFO] [stderr]   |                                            because label contains path that resolves to same destination
[INFO] [stderr]   |
[INFO] [stderr]   = note: when a link's destination is not specified,
[INFO] [stderr]           the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]   |
[INFO] [stderr] 5 | //! As an interface, you can think of the [DeclEngine] as a
[INFO] [stderr]   |                                           ~~~~~~~~~~~~
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]  --> src/decl_engine/mod.rs:6:27
[INFO] [stderr]   |
[INFO] [stderr] 6 | //! mapping from [DeclId](id::DeclId) to [DeclWrapper](wrapper::DeclWrapper).
[INFO] [stderr]   |                   ------  ^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]   |                   |
[INFO] [stderr]   |                   because label contains path that resolves to same destination
[INFO] [stderr]   |
[INFO] [stderr]   = note: when a link's destination is not specified,
[INFO] [stderr]           the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]   |
[INFO] [stderr] 6 | //! mapping from [DeclId] to [DeclWrapper](wrapper::DeclWrapper).
[INFO] [stderr]   |                  ~~~~~~~~
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]  --> src/decl_engine/mod.rs:8:18
[INFO] [stderr]   |
[INFO] [stderr] 8 | //! [DeclEngine](engine::DeclEngine), a [DeclId](id::DeclId) is generated, which
[INFO] [stderr]   |      ----------  ^^^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]   |      |
[INFO] [stderr]   |      because label contains path that resolves to same destination
[INFO] [stderr]   |
[INFO] [stderr]   = note: when a link's destination is not specified,
[INFO] [stderr]           the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]   |
[INFO] [stderr] 8 | //! [DeclEngine], a [DeclId](id::DeclId) is generated, which
[INFO] [stderr]   |     ~~~~~~~~~~~~
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]  --> src/decl_engine/mod.rs:8:50
[INFO] [stderr]   |
[INFO] [stderr] 8 | //! [DeclEngine](engine::DeclEngine), a [DeclId](id::DeclId) is generated, which
[INFO] [stderr]   |                                          ------  ^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]   |                                          |
[INFO] [stderr]   |                                          because label contains path that resolves to same destination
[INFO] [stderr]   |
[INFO] [stderr]   = note: when a link's destination is not specified,
[INFO] [stderr]           the label is used to resolve intra-doc links
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]   |
[INFO] [stderr] 8 | //! [DeclEngine](engine::DeclEngine), a [DeclId] is generated, which
[INFO] [stderr]   |                                         ~~~~~~~~
[INFO] [stderr] 
[INFO] [stderr] warning: unclosed HTML tag `S`
[INFO] [stderr]   --> src/language/parsed/expression/method_name.rs:24:14
[INFO] [stderr]    |
[INFO] [stderr] 24 |     /// like <S as Trait>::method()
[INFO] [stderr]    |              ^^
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]   --> src/semantic_analysis/namespace/module.rs:84:43
[INFO] [stderr]    |
[INFO] [stderr] 84 |     /// `CONTRACT_ID`-containing modules: https://github.com/FuelLabs/sway/issues/3077
[INFO] [stderr]    |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://github.com/FuelLabs/sway/issues/3077>`
[INFO] [stderr]    |
[INFO] [stderr]    = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]    --> src/type_system/info.rs:100:9
[INFO] [stderr]     |
[INFO] [stderr] 100 |     /// https://doc.rust-lang.org/nightly/nightly-rustc/src/rustc_type_ir/sty.rs.html#190
[INFO] [stderr]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://doc.rust-lang.org/nightly/nightly-rustc/src/rustc_type_ir/sty.rs.html#190>`
[INFO] [stderr]     |
[INFO] [stderr]     = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]    --> src/type_system/info.rs:117:9
[INFO] [stderr]     |
[INFO] [stderr] 117 |     /// https://doc.rust-lang.org/nightly/nightly-rustc/src/rustc_type_ir/sty.rs.html#208
[INFO] [stderr]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://doc.rust-lang.org/nightly/nightly-rustc/src/rustc_type_ir/sty.rs.html#208>`
[INFO] [stderr]     |
[INFO] [stderr]     = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] 
[INFO] [stderr] warning: `sway-core` (lib doc) generated 31 warnings (run `cargo fix --lib -p sway-core` to apply 4 suggestions)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 4.97s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/sway_core/index.html
[INFO] running `Command { std: "docker" "inspect" "f86f32cc6bddf71414309417e95b9fcba47c0f2622c509b5fc008b28466cf30b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f86f32cc6bddf71414309417e95b9fcba47c0f2622c509b5fc008b28466cf30b", kill_on_drop: false }`
[INFO] [stdout] f86f32cc6bddf71414309417e95b9fcba47c0f2622c509b5fc008b28466cf30b