[INFO] fetching crate minilibx 0.2.1... [INFO] documenting minilibx-0.2.1 against master#394e1b40d264aa6928811919c1124fa248e7d802 for pr-73566 [INFO] extracting crate minilibx 0.2.1 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate minilibx 0.2.1 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 minilibx 0.2.1 [INFO] finished tweaking crates.io crate minilibx 0.2.1 [INFO] tweaked toml for crates.io crate minilibx 0.2.1 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate crates.io crate minilibx 0.2.1 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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] e8750fef8ef5e4fe73401d7cf5df3d5b7db163a350605e1ef400981df2a6df4b [INFO] running `Command { std: "docker" "start" "-a" "e8750fef8ef5e4fe73401d7cf5df3d5b7db163a350605e1ef400981df2a6df4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e8750fef8ef5e4fe73401d7cf5df3d5b7db163a350605e1ef400981df2a6df4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8750fef8ef5e4fe73401d7cf5df3d5b7db163a350605e1ef400981df2a6df4b", kill_on_drop: false }` [INFO] [stdout] e8750fef8ef5e4fe73401d7cf5df3d5b7db163a350605e1ef400981df2a6df4b [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] 53666d8a2625fa6979ffbc7c43fafac07ea49f6395b44dd9d8a6ee39df438f2e [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" "53666d8a2625fa6979ffbc7c43fafac07ea49f6395b44dd9d8a6ee39df438f2e", kill_on_drop: false }` [INFO] [stderr] Compiling minilibx v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Documenting minilibx v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 69 | /// Api method holder. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![warn(missing_doc_code_examples)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | mlx_ptr: *mut c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:242:1 [INFO] [stdout] | [INFO] [stdout] 242 | / /// Hook api holder. Needed in most [Mlx](struct.Mlx.html) methods. [INFO] [stdout] 243 | | /// [INFO] [stdout] 244 | | /// With hooks, you can provide closures that will run when an event occurs. [INFO] [stdout] 245 | | /// [INFO] [stdout] 246 | | /// The [mlx.event_loop](struct.Mlx.html#method.event_loop) method should run for these hooks to be executed. [INFO] [stdout] | |_____________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:249:5 [INFO] [stdout] | [INFO] [stdout] 249 | win_ptr: *mut c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:369:1 [INFO] [stdout] | [INFO] [stdout] 369 | /// Image data placeholder. Can be used to draw image onto the screen. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:372:5 [INFO] [stdout] | [INFO] [stdout] 372 | img_ptr: *mut c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:373:5 [INFO] [stdout] | [INFO] [stdout] 373 | /// width of the image [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:375:5 [INFO] [stdout] | [INFO] [stdout] 375 | /// height of the image [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:377:5 [INFO] [stdout] | [INFO] [stdout] 377 | area_start: *mut i8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:378:5 [INFO] [stdout] | [INFO] [stdout] 378 | /// number of bits needed to represent a pixel color ([depth](https://en.wikipedia.org/wiki/Color_depth) of the image) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:380:5 [INFO] [stdout] | [INFO] [stdout] 380 | / /// number of bytes used to store one line of the image in memory. [INFO] [stdout] 381 | | /// [INFO] [stdout] 382 | | /// needed to move from one line to another in the image. [INFO] [stdout] | |_____________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:384:5 [INFO] [stdout] | [INFO] [stdout] 384 | /// the endianness of the image [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | /// Enum for detecting errors in the minilibx. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | /// Error that could happen when mlx_init returns a null pointer [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | /// Error that could happen when mlx_new_window returns a null pointer [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | /// Error that might happen in all other places. It contains the information about the error. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:360:1 [INFO] [stdout] | [INFO] [stdout] 360 | /// Enum describing the [endianness](https://en.wikipedia.org/wiki/Endianness) of some data. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:363:5 [INFO] [stdout] | [INFO] [stdout] 363 | /// little endian variant. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:365:5 [INFO] [stdout] | [INFO] [stdout] 365 | /// big endian variant. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use std::ffi::{c_void, CString}; [INFO] [stdout] 2 | | use std::os::raw::c_char; [INFO] [stdout] 3 | | [INFO] [stdout] 4 | | fn create_c_str(s: &str) -> Result { [INFO] [stdout] ... | [INFO] [stdout] 492 | | } [INFO] [stdout] 493 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:158:1 [INFO] [stdout] | [INFO] [stdout] 158 | / pub struct XpmImage { [INFO] [stdout] 159 | | pub ptr: *mut c_void, [INFO] [stdout] 160 | | pub width: i32, [INFO] [stdout] 161 | | pub height: i32, [INFO] [stdout] 162 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | pub ptr: *mut c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | pub width: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | pub height: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:224:1 [INFO] [stdout] | [INFO] [stdout] 224 | / pub struct AddrData { [INFO] [stdout] 225 | | pub area: *mut c_char, [INFO] [stdout] 226 | | pub bits_per_pixel: i32, [INFO] [stdout] 227 | | pub size_line: i32, [INFO] [stdout] 228 | | pub endian: i32, [INFO] [stdout] 229 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:225:5 [INFO] [stdout] | [INFO] [stdout] 225 | pub area: *mut c_char, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:226:5 [INFO] [stdout] | [INFO] [stdout] 226 | pub bits_per_pixel: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:227:5 [INFO] [stdout] | [INFO] [stdout] 227 | pub size_line: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:228:5 [INFO] [stdout] | [INFO] [stdout] 228 | pub endian: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / fn create_c_str(s: &str) -> Result { [INFO] [stdout] 5 | | match CString::new(s) { [INFO] [stdout] 6 | | Ok(s) => Ok(s), [INFO] [stdout] 7 | | Err(_) => Err(MlxError::Any(format!("Error creating string {}", s))), [INFO] [stdout] 8 | | } [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / pub fn init() -> Result<*mut c_void, MlxError> { [INFO] [stdout] 23 | | extern "C" { [INFO] [stdout] 24 | | pub fn mlx_init() -> *mut c_void; [INFO] [stdout] 25 | | } [INFO] [stdout] ... | [INFO] [stdout] 34 | | } [INFO] [stdout] 35 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | / pub fn new_window( [INFO] [stdout] 38 | | mlx_ptr: *mut c_void, [INFO] [stdout] 39 | | size_x: i32, [INFO] [stdout] 40 | | size_y: i32, [INFO] [stdout] ... | [INFO] [stdout] 61 | | } [INFO] [stdout] 62 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / pub fn clear_window(mlx_ptr: *mut c_void, win_ptr: *mut c_void) { [INFO] [stdout] 65 | | extern "C" { [INFO] [stdout] 66 | | fn mlx_clear_window(mlx_ptr: *mut c_void, win_ptr: *mut c_void) -> i32; [INFO] [stdout] 67 | | } [INFO] [stdout] ... | [INFO] [stdout] 71 | | } [INFO] [stdout] 72 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | / pub fn destroy_window(mlx_ptr: *mut c_void, win_ptr: *mut c_void) { [INFO] [stdout] 75 | | extern "C" { [INFO] [stdout] 76 | | fn mlx_destroy_window(mlx_ptr: *mut c_void, win_ptr: *mut c_void) -> i32; [INFO] [stdout] 77 | | } [INFO] [stdout] ... | [INFO] [stdout] 81 | | } [INFO] [stdout] 82 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | / pub fn get_screen_size(mlx_ptr: *mut c_void) -> (i32, i32) { [INFO] [stdout] 85 | | extern "C" { [INFO] [stdout] 86 | | fn mlx_get_screen_size(mlx_ptr: *mut c_void, sizex: &mut i32, sizey: &mut i32) -> i32; [INFO] [stdout] 87 | | } [INFO] [stdout] ... | [INFO] [stdout] 94 | | (sizex, sizey) [INFO] [stdout] 95 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:97:1 [INFO] [stdout] | [INFO] [stdout] 97 | / pub fn pixel_put(mlx_ptr: *mut c_void, win_ptr: *mut c_void, x: i32, y: i32, color: i32) { [INFO] [stdout] 98 | | extern "C" { [INFO] [stdout] 99 | | fn mlx_pixel_put( [INFO] [stdout] 100 | | mlx_ptr: *mut c_void, [INFO] [stdout] ... | [INFO] [stdout] 110 | | } [INFO] [stdout] 111 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:113:1 [INFO] [stdout] | [INFO] [stdout] 113 | / pub fn string_put( [INFO] [stdout] 114 | | mlx_ptr: *mut c_void, [INFO] [stdout] 115 | | win_ptr: *mut c_void, [INFO] [stdout] 116 | | x: i32, [INFO] [stdout] ... | [INFO] [stdout] 137 | | Ok(()) [INFO] [stdout] 138 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:140:1 [INFO] [stdout] | [INFO] [stdout] 140 | / pub fn new_image(mlx_ptr: *mut c_void, width: i32, height: i32) -> Result<*mut c_void, MlxError> { [INFO] [stdout] 141 | | extern "C" { [INFO] [stdout] 142 | | fn mlx_new_image(mlx_ptr: *mut c_void, width: i32, height: i32) -> *mut c_void; [INFO] [stdout] 143 | | } [INFO] [stdout] ... | [INFO] [stdout] 155 | | } [INFO] [stdout] 156 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:164:1 [INFO] [stdout] | [INFO] [stdout] 164 | / pub fn xpm_to_image(mlx_ptr: *mut c_void, xpm_data: Vec) -> Result { [INFO] [stdout] 165 | | extern "C" { [INFO] [stdout] 166 | | fn mlx_xpm_to_image( [INFO] [stdout] 167 | | mlx_ptr: *mut c_void, [INFO] [stdout] ... | [INFO] [stdout] 188 | | } [INFO] [stdout] 189 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:191:1 [INFO] [stdout] | [INFO] [stdout] 191 | / pub fn xpm_file_to_image(mlx_ptr: *mut c_void, filename: &str) -> Result { [INFO] [stdout] 192 | | extern "C" { [INFO] [stdout] 193 | | fn mlx_xpm_file_to_image( [INFO] [stdout] 194 | | mlx_ptr: *mut c_void, [INFO] [stdout] ... | [INFO] [stdout] 211 | | } [INFO] [stdout] 212 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | / pub fn destroy_image(mlx_ptr: *mut c_void, img_ptr: *mut c_void) { [INFO] [stdout] 215 | | extern "C" { [INFO] [stdout] 216 | | fn mlx_destroy_image(mlx_ptr: *mut c_void, img_ptr: *mut c_void) -> i32; [INFO] [stdout] 217 | | } [INFO] [stdout] ... | [INFO] [stdout] 221 | | } [INFO] [stdout] 222 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:231:1 [INFO] [stdout] | [INFO] [stdout] 231 | / pub fn get_data_addr(img_ptr: *mut c_void) -> Result { [INFO] [stdout] 232 | | extern "C" { [INFO] [stdout] 233 | | fn mlx_get_data_addr( [INFO] [stdout] 234 | | img_ptr: *mut c_void, [INFO] [stdout] ... | [INFO] [stdout] 259 | | } [INFO] [stdout] 260 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:262:1 [INFO] [stdout] | [INFO] [stdout] 262 | / pub fn put_image_to_window( [INFO] [stdout] 263 | | mlx_ptr: *mut c_void, [INFO] [stdout] 264 | | win_ptr: *mut c_void, [INFO] [stdout] 265 | | img_ptr: *mut c_void, [INFO] [stdout] ... | [INFO] [stdout] 281 | | } [INFO] [stdout] 282 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:284:1 [INFO] [stdout] | [INFO] [stdout] 284 | / pub fn get_color_value(mlx_ptr: *mut c_void, color: i32) -> u32 { [INFO] [stdout] 285 | | extern "C" { [INFO] [stdout] 286 | | fn mlx_get_color_value(mlx_ptr: *mut c_void, color: i32) -> u32; [INFO] [stdout] 287 | | } [INFO] [stdout] 288 | | [INFO] [stdout] 289 | | unsafe { mlx_get_color_value(mlx_ptr, color) } [INFO] [stdout] 290 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:292:1 [INFO] [stdout] | [INFO] [stdout] 292 | / pub fn do_key_autorepeatoff(mlx_ptr: *mut c_void) { [INFO] [stdout] 293 | | extern "C" { [INFO] [stdout] 294 | | fn mlx_do_key_autorepeatoff(mlx_ptr: *mut c_void) -> i32; [INFO] [stdout] 295 | | } [INFO] [stdout] ... | [INFO] [stdout] 299 | | } [INFO] [stdout] 300 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:302:1 [INFO] [stdout] | [INFO] [stdout] 302 | / pub fn do_key_autorepeaton(mlx_ptr: *mut c_void) { [INFO] [stdout] 303 | | extern "C" { [INFO] [stdout] 304 | | fn mlx_do_key_autorepeaton(mlx_ptr: *mut c_void) -> i32; [INFO] [stdout] 305 | | } [INFO] [stdout] ... | [INFO] [stdout] 309 | | } [INFO] [stdout] 310 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:312:1 [INFO] [stdout] | [INFO] [stdout] 312 | / pub fn mouse_move(mlx_ptr: *mut c_void, win_ptr: *mut c_void, x: i32, y: i32) { [INFO] [stdout] 313 | | extern "C" { [INFO] [stdout] 314 | | fn mlx_mouse_move(mlx_ptr: *mut c_void, win_ptr: *mut c_void, x: i32, y: i32) -> i32; [INFO] [stdout] 315 | | } [INFO] [stdout] ... | [INFO] [stdout] 319 | | } [INFO] [stdout] 320 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:322:1 [INFO] [stdout] | [INFO] [stdout] 322 | / pub fn mouse_hide(mlx_ptr: *mut c_void, win_ptr: *mut c_void) { [INFO] [stdout] 323 | | extern "C" { [INFO] [stdout] 324 | | fn mlx_mouse_hide(mlx_ptr: *mut c_void, win_ptr: *mut c_void) -> i32; [INFO] [stdout] 325 | | } [INFO] [stdout] ... | [INFO] [stdout] 329 | | } [INFO] [stdout] 330 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:332:1 [INFO] [stdout] | [INFO] [stdout] 332 | / pub fn mouse_show(mlx_ptr: *mut c_void, win_ptr: *mut c_void) { [INFO] [stdout] 333 | | extern "C" { [INFO] [stdout] 334 | | fn mlx_mouse_show(mlx_ptr: *mut c_void, win_ptr: *mut c_void) -> i32; [INFO] [stdout] 335 | | } [INFO] [stdout] ... | [INFO] [stdout] 339 | | } [INFO] [stdout] 340 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:342:1 [INFO] [stdout] | [INFO] [stdout] 342 | / pub fn event_loop(mlx_ptr: *mut c_void) { [INFO] [stdout] 343 | | extern "C" { [INFO] [stdout] 344 | | fn mlx_loop(mlx_ptr: *mut c_void) -> i32; [INFO] [stdout] 345 | | } [INFO] [stdout] ... | [INFO] [stdout] 349 | | } [INFO] [stdout] 350 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:352:1 [INFO] [stdout] | [INFO] [stdout] 352 | / pub fn mouse_hook(win_ptr: *mut c_void, cb: T) [INFO] [stdout] 353 | | where [INFO] [stdout] 354 | | T: FnMut(i32, i32, i32) + 'static, [INFO] [stdout] 355 | | { [INFO] [stdout] ... | [INFO] [stdout] 376 | | } [INFO] [stdout] 377 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:379:1 [INFO] [stdout] | [INFO] [stdout] 379 | / pub fn key_hook(win_ptr: *mut c_void, cb: F) [INFO] [stdout] 380 | | where [INFO] [stdout] 381 | | F: FnMut(i32) + 'static, [INFO] [stdout] 382 | | { [INFO] [stdout] ... | [INFO] [stdout] 403 | | } [INFO] [stdout] 404 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:406:1 [INFO] [stdout] | [INFO] [stdout] 406 | / pub fn expose_hook(win_ptr: *mut c_void, cb: F) [INFO] [stdout] 407 | | where [INFO] [stdout] 408 | | F: FnMut() + 'static, [INFO] [stdout] 409 | | { [INFO] [stdout] ... | [INFO] [stdout] 430 | | } [INFO] [stdout] 431 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:433:1 [INFO] [stdout] | [INFO] [stdout] 433 | / pub fn loop_hook(win_ptr: *mut c_void, cb: F) [INFO] [stdout] 434 | | where [INFO] [stdout] 435 | | F: FnMut() + 'static, [INFO] [stdout] 436 | | { [INFO] [stdout] ... | [INFO] [stdout] 457 | | } [INFO] [stdout] 458 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/ffi.rs:460:1 [INFO] [stdout] | [INFO] [stdout] 460 | / pub fn hook(win_ptr: *mut c_void, x_event: i32, x_mask: i32, cb: F) [INFO] [stdout] 461 | | where [INFO] [stdout] 462 | | F: FnMut(), [INFO] [stdout] 463 | | { [INFO] [stdout] ... | [INFO] [stdout] 492 | | } [INFO] [stdout] 493 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:75:1 [INFO] [stdout] | [INFO] [stdout] 75 | / impl Mlx { [INFO] [stdout] 76 | | /// Creates a new Mlx instance. [INFO] [stdout] 77 | | /// [INFO] [stdout] 78 | | /// Calls the `mlx_init` C method under the hood. [INFO] [stdout] ... | [INFO] [stdout] 239 | | } [INFO] [stdout] 240 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | /// Clears the window with black. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | /// Destroys the window. This function also drops the window object. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | /// Get the actual screen size. [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 | /// Creates a new [image](struct.MlxImage.html). [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 163 | / /// Creates a new [image](struct.MlxImage.html) from [xpm](https://en.wikipedia.org/wiki/X_PixMap) data. [INFO] [stdout] 164 | | /// [INFO] [stdout] 165 | | /// Note that the minilibx does not use the standard Xpm library. You may not be able to read all types of xpm images. [INFO] [stdout] 166 | | /// [INFO] [stdout] 167 | | /// It however handles transparency. [INFO] [stdout] | |________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:175:5 [INFO] [stdout] | [INFO] [stdout] 175 | /// Creates a new [image](struct.MlxImage.html) from an [xpm](https://en.wikipedia.org/wiki/X_PixMap) file. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 182 | /// Destroy the image. Also drops the image instance. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | / /// Transforms an RGB color parameter into a u32 value. [INFO] [stdout] 201 | | /// [INFO] [stdout] 202 | | /// This returns a bits_per_pixel value of the rgb value. [INFO] [stdout] 203 | | /// [INFO] [stdout] 204 | | /// You can use this to write into an [image](struct.MlxImage.html) [INFO] [stdout] | |_______________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 209 | /// Enables key autorepeat when pressing a key [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 214 | /// Disables key autorepeat when pressing a key [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:219:5 [INFO] [stdout] | [INFO] [stdout] 219 | /// Moves the mouse cursor [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:224:5 [INFO] [stdout] | [INFO] [stdout] 224 | /// Shows the mouse cursor [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:229:5 [INFO] [stdout] | [INFO] [stdout] 229 | /// Hides the mouse cursor [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:234:5 [INFO] [stdout] | [INFO] [stdout] 234 | / /// Run the event loop. [INFO] [stdout] 235 | | /// [INFO] [stdout] 236 | | /// This is running an infinite loop which launches [hooks](struct.MlxWindow.html) when receiving events. [INFO] [stdout] | |_____________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:252:1 [INFO] [stdout] | [INFO] [stdout] 252 | / impl MlxWindow { [INFO] [stdout] 253 | | /// Hook running whenever a mouse event is received. [INFO] [stdout] 254 | | /// [INFO] [stdout] 255 | | /// F should be a closure taking 4 arguments: the buttons, x, y and the data you provide as last argument of the mouse_hook call. [INFO] [stdout] ... | [INFO] [stdout] 357 | | } [INFO] [stdout] 358 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:388:1 [INFO] [stdout] | [INFO] [stdout] 388 | / impl MlxImage { [INFO] [stdout] 389 | | fn new(img_ptr: *mut c_void, width: i32, height: i32) -> Result { [INFO] [stdout] 390 | | let data = ffi::get_data_addr(img_ptr)?; [INFO] [stdout] 391 | | Ok(Self { [INFO] [stdout] ... | [INFO] [stdout] 417 | | } [INFO] [stdout] 418 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:389:5 [INFO] [stdout] | [INFO] [stdout] 389 | / fn new(img_ptr: *mut c_void, width: i32, height: i32) -> Result { [INFO] [stdout] 390 | | let data = ffi::get_data_addr(img_ptr)?; [INFO] [stdout] 391 | | Ok(Self { [INFO] [stdout] 392 | | img_ptr, [INFO] [stdout] ... | [INFO] [stdout] 403 | | }) [INFO] [stdout] 404 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:406:5 [INFO] [stdout] | [INFO] [stdout] 406 | / /// Writes to the image from offset of the beginning of the area where the image is stored. [INFO] [stdout] 407 | | /// [INFO] [stdout] 408 | | /// The first bits_per_pixel bits represent the color of the first pixel in the first line of the image. [INFO] [stdout] 409 | | /// [INFO] [stdout] 410 | | /// The second bits_per_pixel bits represent the second pixel of the first line, and so on. [INFO] [stdout] 411 | | /// [INFO] [stdout] 412 | | /// This function could cause a segmentation fault if your offset is wrong, be careful ! [INFO] [stdout] | |____________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 74 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.80s [INFO] running `Command { std: "docker" "inspect" "53666d8a2625fa6979ffbc7c43fafac07ea49f6395b44dd9d8a6ee39df438f2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53666d8a2625fa6979ffbc7c43fafac07ea49f6395b44dd9d8a6ee39df438f2e", kill_on_drop: false }` [INFO] [stdout] 53666d8a2625fa6979ffbc7c43fafac07ea49f6395b44dd9d8a6ee39df438f2e