[INFO] crate armor 1.2.0 is already in cache [INFO] documenting armor-1.2.0 against master#394e1b40d264aa6928811919c1124fa248e7d802 for pr-73566 [INFO] extracting crate armor 1.2.0 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate armor 1.2.0 on toolchain 394e1b40d264aa6928811919c1124fa248e7d802 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+394e1b40d264aa6928811919c1124fa248e7d802" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate armor 1.2.0 [INFO] finished tweaking crates.io crate armor 1.2.0 [INFO] tweaked toml for crates.io crate armor 1.2.0 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate crates.io crate armor 1.2.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+394e1b40d264aa6928811919c1124fa248e7d802" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+394e1b40d264aa6928811919c1124fa248e7d802" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fd9b1bc00b6cce61632bc051bfba1e65c3f4416060c27f95e5e837a07b575c64 [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" "fd9b1bc00b6cce61632bc051bfba1e65c3f4416060c27f95e5e837a07b575c64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd9b1bc00b6cce61632bc051bfba1e65c3f4416060c27f95e5e837a07b575c64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd9b1bc00b6cce61632bc051bfba1e65c3f4416060c27f95e5e837a07b575c64", kill_on_drop: false }` [INFO] [stdout] fd9b1bc00b6cce61632bc051bfba1e65c3f4416060c27f95e5e837a07b575c64 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+394e1b40d264aa6928811919c1124fa248e7d802" "doc" "--frozen" "--no-deps" "--document-private-items" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] edfeac6502b65a7f29f0d89aca71129f3b9f940a0f8d8f5e33656ce2c93cf889 [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" "edfeac6502b65a7f29f0d89aca71129f3b9f940a0f8d8f5e33656ce2c93cf889", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.5 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling libc v0.2.55 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Compiling ryu v1.0.1 [INFO] [stderr] Checking itoa v0.4.4 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking http v0.1.17 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Checking serde_json v1.0.41 [INFO] [stderr] Documenting armor v1.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | /// Set the frameguard level. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 15 | #![warn(missing_docs, missing_doc_code_examples)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | /// Set to `sameorigin` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | /// Set to `deny` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:149:1 [INFO] [stdout] | [INFO] [stdout] 149 | /// Set the Referrer-Policy level [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 152 | /// Set to "no-referrer" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 154 | /// Set to "no-referrer-when-downgrade" the default [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | /// Set to "same-origin" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 158 | /// Set to "origin" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | /// Set to "strict-origin" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 162 | /// Set to "origin-when-cross-origin" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:164:5 [INFO] [stdout] | [INFO] [stdout] 164 | /// Set to "strict-origin-when-cross-origin" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | /// Set to "unsafe-url" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `[sic]` cannot be resolved, ignoring it. [INFO] [stdout] --> src/lib.rs:170:59 [INFO] [stdout] | [INFO] [stdout] 170 | /// Mitigates referrer leakage by controlling the referer[sic] header in links away from pages [INFO] [stdout] | ^^^ cannot be resolved, ignoring [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(intra_doc_link_resolution_failure)]` on by default [INFO] [stdout] = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / /// Define `report-to` directive value [INFO] [stdout] 100 | | /// [INFO] [stdout] 101 | | /// [MDN | report-to](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-to) [INFO] [stdout] | |__________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | group: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | max_age: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | endpoints: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | include_subdomains: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | / /// Define `endpoints` for `report-to` directive value [INFO] [stdout] 113 | | /// [INFO] [stdout] 114 | | /// [MDN | report-to](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-to) [INFO] [stdout] | |__________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | url: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | /// Build the Content-Security-Policy [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | policy: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | report_only_flag: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | directives: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | / /// Define source value [INFO] [stdout] 31 | | /// [INFO] [stdout] 32 | | /// [read more](https://content-security-policy.com) [INFO] [stdout] | |____________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | /// Set source `'self'` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | /// Set source `'src'` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | /// Set source `'none'` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | /// Set source `'unsafe-inline'` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | /// Set source `data:` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | /// Set source `mediastream:` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | /// Set source `https:` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | /// Set source `blob:` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | /// Set source `filesystem:` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | /// Set source `'strict-dynamic'` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | /// Set source `'unsafe-eval'` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | /// Set source `*` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | /// Create a new instance. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:140:1 [INFO] [stdout] | [INFO] [stdout] 140 | / impl ContentSecurityPolicy { [INFO] [stdout] 141 | | /// Create a new instance. [INFO] [stdout] 142 | | pub fn new() -> Self { [INFO] [stdout] 143 | | Self { [INFO] [stdout] ... | [INFO] [stdout] 353 | | } [INFO] [stdout] 354 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | /// Create a new instance. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | / fn insert_directive>(&mut self, directive: &str, source: T) { [INFO] [stdout] 151 | | let directive = String::from(directive); [INFO] [stdout] 152 | | let directives = self.directives.entry(directive).or_insert_with(Vec::new); [INFO] [stdout] 153 | | let source: String = source.as_ref().to_string(); [INFO] [stdout] 154 | | directives.push(source); [INFO] [stdout] 155 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 157 | / /// Defines the Content-Security-Policy `base-uri` directive [INFO] [stdout] 158 | | /// [INFO] [stdout] 159 | | /// [MDN | base-uri](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/base-uri) [INFO] [stdout] | |____________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | / /// Defines the Content-Security-Policy `block-all-mixed-content` directive [INFO] [stdout] 166 | | /// [INFO] [stdout] 167 | | /// [MDN | block-all-mixed-content](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/block-all-mixed-content) [INFO] [stdout] | |__________________________________________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 174 | / /// Defines the Content-Security-Policy `connect-src` directive [INFO] [stdout] 175 | | /// [INFO] [stdout] 176 | | /// [MDN | connect-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/connect-src) [INFO] [stdout] | |__________________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 182 | / /// Defines the Content-Security-Policy `default-src` directive [INFO] [stdout] 183 | | /// [INFO] [stdout] 184 | | /// [MDN | default-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/default-src) [INFO] [stdout] | |__________________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 190 | / /// Defines the Content-Security-Policy `font-src` directive [INFO] [stdout] 191 | | /// [INFO] [stdout] 192 | | /// [MDN | font-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/font-src) [INFO] [stdout] | |____________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:198:5 [INFO] [stdout] | [INFO] [stdout] 198 | / /// Defines the Content-Security-Policy `form-action` directive [INFO] [stdout] 199 | | /// [INFO] [stdout] 200 | | /// [MDN | form-action](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/form-action) [INFO] [stdout] | |__________________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:206:5 [INFO] [stdout] | [INFO] [stdout] 206 | / /// Defines the Content-Security-Policy `frame-ancestors` directive [INFO] [stdout] 207 | | /// [INFO] [stdout] 208 | | /// [MDN | frame-ancestors](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors) [INFO] [stdout] | |__________________________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 214 | / /// Defines the Content-Security-Policy `frame-src` directive [INFO] [stdout] 215 | | /// [INFO] [stdout] 216 | | /// [MDN | frame-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-src) [INFO] [stdout] | |______________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:222:5 [INFO] [stdout] | [INFO] [stdout] 222 | / /// Defines the Content-Security-Policy `img-src` directive [INFO] [stdout] 223 | | /// [INFO] [stdout] 224 | | /// [MDN | img-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/img-src) [INFO] [stdout] | |__________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 230 | / /// Defines the Content-Security-Policy `media-src` directive [INFO] [stdout] 231 | | /// [INFO] [stdout] 232 | | /// [MDN | media-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/media-src) [INFO] [stdout] | |______________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:238:5 [INFO] [stdout] | [INFO] [stdout] 238 | / /// Defines the Content-Security-Policy `object-src` directive [INFO] [stdout] 239 | | /// [INFO] [stdout] 240 | | /// [MDN | object-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/object-src) [INFO] [stdout] | |________________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:246:5 [INFO] [stdout] | [INFO] [stdout] 246 | / /// Defines the Content-Security-Policy `plugin-types` directive [INFO] [stdout] 247 | | /// [INFO] [stdout] 248 | | /// [MDN | plugin-types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/plugin-types) [INFO] [stdout] | |____________________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:254:5 [INFO] [stdout] | [INFO] [stdout] 254 | / /// Defines the Content-Security-Policy `require-sri-for` directive [INFO] [stdout] 255 | | /// [INFO] [stdout] 256 | | /// [MDN | require-sri-for](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/require-sri-for) [INFO] [stdout] | |__________________________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:262:5 [INFO] [stdout] | [INFO] [stdout] 262 | / /// Defines the Content-Security-Policy `report-uri` directive [INFO] [stdout] 263 | | /// [INFO] [stdout] 264 | | /// [MDN | report-uri](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-uri) [INFO] [stdout] | |________________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 270 | / /// Defines the Content-Security-Policy `report-to` directive [INFO] [stdout] 271 | | /// [INFO] [stdout] 272 | | /// [MDN | report-to](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-to) [INFO] [stdout] | |______________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | / /// Defines the Content-Security-Policy `sandbox` directive [INFO] [stdout] 289 | | /// [INFO] [stdout] 290 | | /// [MDN | sandbox](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox) [INFO] [stdout] | |__________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 296 | / /// Defines the Content-Security-Policy `script-src` directive [INFO] [stdout] 297 | | /// [INFO] [stdout] 298 | | /// [MDN | script-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src) [INFO] [stdout] | |________________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:304:5 [INFO] [stdout] | [INFO] [stdout] 304 | / /// Defines the Content-Security-Policy `style-src` directive [INFO] [stdout] 305 | | /// [INFO] [stdout] 306 | | /// [MDN | style-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src) [INFO] [stdout] | |______________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:312:5 [INFO] [stdout] | [INFO] [stdout] 312 | / /// Defines the Content-Security-Policy `upgrade-insecure-requests` directive [INFO] [stdout] 313 | | /// [INFO] [stdout] 314 | | /// [MDN | upgrade-insecure-requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/upgrade-insecure-requests) [INFO] [stdout] | |______________________________________________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:321:5 [INFO] [stdout] | [INFO] [stdout] 321 | / /// Defines the Content-Security-Policy `worker-src` directive [INFO] [stdout] 322 | | /// [INFO] [stdout] 323 | | /// [MDN | worker-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/worker-src) [INFO] [stdout] | |________________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:329:5 [INFO] [stdout] | [INFO] [stdout] 329 | /// Change the header to `Content-Security-Policy-Report-Only` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:335:5 [INFO] [stdout] | [INFO] [stdout] 335 | /// Create and retrieve the policy value [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:345:5 [INFO] [stdout] | [INFO] [stdout] 345 | /// Sets the `Content-Security-Policy` (CSP) HTTP header to prevent cross-site injections [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | / impl AsRef for Source { [INFO] [stdout] 81 | | fn as_ref(&self) -> &str { [INFO] [stdout] 82 | | match *self { [INFO] [stdout] 83 | | Source::SameOrigin => "'self'", [INFO] [stdout] ... | [INFO] [stdout] 96 | | } [INFO] [stdout] 97 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | / fn as_ref(&self) -> &str { [INFO] [stdout] 82 | | match *self { [INFO] [stdout] 83 | | Source::SameOrigin => "'self'", [INFO] [stdout] 84 | | Source::SRC => "'src'", [INFO] [stdout] ... | [INFO] [stdout] 95 | | } [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:128:1 [INFO] [stdout] | [INFO] [stdout] 128 | / impl Default for ContentSecurityPolicy { [INFO] [stdout] 129 | | /// Sets the Content-Security-Policy default to "script-src 'self'; object-src 'self'" [INFO] [stdout] 130 | | fn default() -> Self { [INFO] [stdout] 131 | | let policy = String::from("script-src 'self'; object-src 'self'"); [INFO] [stdout] ... | [INFO] [stdout] 137 | | } [INFO] [stdout] 138 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | /// Sets the Content-Security-Policy default to "script-src 'self'; object-src 'self'" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:61:1 [INFO] [stdout] | [INFO] [stdout] 61 | / impl fmt::Display for Source { [INFO] [stdout] 62 | | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { [INFO] [stdout] 63 | | match *self { [INFO] [stdout] 64 | | Source::SameOrigin => write!(f, "'self'"), [INFO] [stdout] ... | [INFO] [stdout] 77 | | } [INFO] [stdout] 78 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/csp.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | / fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { [INFO] [stdout] 63 | | match *self { [INFO] [stdout] 64 | | Source::SameOrigin => write!(f, "'self'"), [INFO] [stdout] 65 | | Source::SRC => write!(f, "'src'"), [INFO] [stdout] ... | [INFO] [stdout] 76 | | } [INFO] [stdout] 77 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 70 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 40.96s [INFO] running `Command { std: "docker" "inspect" "edfeac6502b65a7f29f0d89aca71129f3b9f940a0f8d8f5e33656ce2c93cf889", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edfeac6502b65a7f29f0d89aca71129f3b9f940a0f8d8f5e33656ce2c93cf889", kill_on_drop: false }` [INFO] [stdout] edfeac6502b65a7f29f0d89aca71129f3b9f940a0f8d8f5e33656ce2c93cf889