swc_common 4.0.1

Common utilities for the swc project.
Documentation
Build #1544578 2024-11-16T07:49:20.836501+00:00
# rustc version
rustc 1.84.0-nightly (917a50a03 2024-11-15)# docs.rs version
docsrs 0.6.0 (36c721fb 2024-11-06)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/swc_common-4.0.1/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/swc_common-4.0.1/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--all-features" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20241115-1.84.0-nightly-917a50a03\", \"--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] [stdout] 0ffae7866bbfd7e276c805373a59c58a8f53692fa5447b7a0dc92c157c09d9b6
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "0ffae7866bbfd7e276c805373a59c58a8f53692fa5447b7a0dc92c157c09d9b6", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting swc_common v4.0.1 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unresolved link to `&Comments`
[INFO] [stderr]   --> src/comments.rs:26:6
[INFO] [stderr]    |
[INFO] [stderr] 26 | /// [&Comments] to the parser. Thirdly, `(&self)` allows multi-threaded
[INFO] [stderr]    |      ^^^^^^^^^ no item named `&Comments` 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 `Atom::new_bad`
[INFO] [stderr]    --> src/comments.rs:642:11
[INFO] [stderr]     |
[INFO] [stderr] 642 |     /// [`Atom::new_bad`][] is perfectly fine for this value.
[INFO] [stderr]     |           ^^^^^^^^^^^^^ the struct `Atom` has no field or associated item named `new_bad`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `SourceMap`
[INFO] [stderr]   --> src/input.rs:26:36
[INFO] [stderr]    |
[INFO] [stderr] 26 |     /// `swc` get this value from [SourceMap] because code generator depends on
[INFO] [stderr]    |                                    ^^^^^^^^^ no item named `SourceMap` in scope
[INFO] [stderr]    |
[INFO] [stderr]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `SourceMap`
[INFO] [stderr]   --> src/input.rs:27:26
[INFO] [stderr]    |
[INFO] [stderr] 27 |     /// some methods of [SourceMap].
[INFO] [stderr]    |                          ^^^^^^^^^ no item named `SourceMap` in scope
[INFO] [stderr]    |
[INFO] [stderr]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `SourceMap`
[INFO] [stderr]   --> src/input.rs:29:10
[INFO] [stderr]    |
[INFO] [stderr] 29 |     /// [SourceMap], you may use any value.
[INFO] [stderr]    |          ^^^^^^^^^ no item named `SourceMap` in scope
[INFO] [stderr]    |
[INFO] [stderr]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `last_pos`
[INFO] [stderr]    --> src/input.rs:274:31
[INFO] [stderr]     |
[INFO] [stderr] 274 |     /// This method modifies [last_pos()] and [cur_pos()].
[INFO] [stderr]     |                               ^^^^^^^^^^ no item named `last_pos` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `cur_pos`
[INFO] [stderr]    --> src/input.rs:274:48
[INFO] [stderr]     |
[INFO] [stderr] 274 |     /// This method modifies [last_pos()] and [cur_pos()].
[INFO] [stderr]     |                                                ^^^^^^^^^ no item named `cur_pos` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `Ident`
[INFO] [stderr]   --> src/syntax_pos/hygiene.rs:58:37
[INFO] [stderr]    |
[INFO] [stderr] 58 |     /// In `op`, [EqIgnoreSpan] of [Ident] will ignore the syntax context.
[INFO] [stderr]    |                                     ^^^^^ no item named `Ident` in scope
[INFO] [stderr]    |
[INFO] [stderr]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unclosed HTML tag `Comments`
[INFO] [stderr]   --> src/comments.rs:22:25
[INFO] [stderr]    |
[INFO] [stderr] 22 | /// must use [Rc<RefCell<Comments>>]. We have two option. We may implement it in
[INFO] [stderr]    |                         ^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(rustdoc::invalid_html_tags)]` on by default
[INFO] [stderr] help: try marking as source code
[INFO] [stderr]    |
[INFO] [stderr] 22 | /// must use [`Rc<RefCell<Comments>>`]. We have two option. We may implement it in
[INFO] [stderr]    |               +                     +
[INFO] [stderr] 
[INFO] [stderr] warning: unclosed HTML tag `error`
[INFO] [stderr]    --> src/errors/mod.rs:366:41
[INFO] [stderr]     |
[INFO] [stderr] 366 |     /// Used to suggest rustc --explain <error code>
[INFO] [stderr]     |                                         ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]  --> src/iter.rs:1:17
[INFO] [stderr]   |
[INFO] [stderr] 1 | /// Copied from https://users.rust-lang.org/t/iterator-need-to-identify-the-last-element/8836/3
[INFO] [stderr]   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[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] help: use an automatic link instead
[INFO] [stderr]   |
[INFO] [stderr] 1 | /// Copied from <https://users.rust-lang.org/t/iterator-need-to-identify-the-last-element/8836/3>
[INFO] [stderr]   |                 +                                                                               +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/syntax_pos.rs:1182:35
[INFO] [stderr]      |
[INFO] [stderr] 1182 | /// to avoid redundant data copy (https://github.com/swc-project/swc/issues/5471)
[INFO] [stderr]      |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]      |
[INFO] [stderr] 1182 | /// to avoid redundant data copy (<https://github.com/swc-project/swc/issues/5471>)
[INFO] [stderr]      |                                   +                                              +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/syntax_pos.rs:1273:35
[INFO] [stderr]      |
[INFO] [stderr] 1273 | /// to avoid redundant data copy (https://github.com/swc-project/swc/issues/5471)
[INFO] [stderr]      |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]      |
[INFO] [stderr] 1273 | /// to avoid redundant data copy (<https://github.com/swc-project/swc/issues/5471>)
[INFO] [stderr]      |                                   +                                              +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]  --> src/util/iter.rs:2:21
[INFO] [stderr]   |
[INFO] [stderr] 2 |     /// Copied from https://stackoverflow.com/a/49456265/6193633
[INFO] [stderr]   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]   |
[INFO] [stderr] 2 |     /// Copied from <https://stackoverflow.com/a/49456265/6193633>
[INFO] [stderr]   |                     +                                            +
[INFO] [stderr] 
[INFO] [stderr] warning: `swc_common` (lib doc) generated 14 warnings (run `cargo fix --lib -p swc_common` to apply 4 suggestions)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.99s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/swc_common/index.html
[INFO] running `Command { std: "docker" "inspect" "0ffae7866bbfd7e276c805373a59c58a8f53692fa5447b7a0dc92c157c09d9b6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0ffae7866bbfd7e276c805373a59c58a8f53692fa5447b7a0dc92c157c09d9b6", kill_on_drop: false }`
[INFO] [stdout] 0ffae7866bbfd7e276c805373a59c58a8f53692fa5447b7a0dc92c157c09d9b6