[INFO] fetching crate griddle 0.3.2... [INFO] documenting griddle-0.3.2 against beta-2020-08-29 for beta-1.47-rustdoc-1 [INFO] extracting crate griddle 0.3.2 into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate griddle 0.3.2 on toolchain beta-2020-08-29 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-08-29" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate griddle 0.3.2 [INFO] finished tweaking crates.io crate griddle 0.3.2 [INFO] tweaked toml for crates.io crate griddle 0.3.2 written to /workspace/builds/worker-2/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-08-29" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-08-29" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-08-29" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d570966866aacfbdca34016140e06835e880e5baf23bda34fb9fb2a465f307f5 [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" "d570966866aacfbdca34016140e06835e880e5baf23bda34fb9fb2a465f307f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d570966866aacfbdca34016140e06835e880e5baf23bda34fb9fb2a465f307f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d570966866aacfbdca34016140e06835e880e5baf23bda34fb9fb2a465f307f5", kill_on_drop: false }` [INFO] [stdout] d570966866aacfbdca34016140e06835e880e5baf23bda34fb9fb2a465f307f5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-08-29" "doc" "--frozen" "--no-deps" "--document-private-items" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a1da7e5085ed954852d7fc96d2c4b5a87d4da9d596192ea9a4362860c93cff6 [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" "1a1da7e5085ed954852d7fc96d2c4b5a87d4da9d596192ea9a4362860c93cff6", kill_on_drop: false }` [INFO] [stderr] Compiling hashbrown v0.8.2 [INFO] [stderr] Documenting griddle v0.3.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / /// A `HashMap` variant that spreads resize load across inserts. [INFO] [stdout] 15 | | /// [INFO] [stdout] 16 | | /// See the [crate-level documentation] for details. [INFO] [stdout] 17 | | /// [INFO] [stdout] ... | [INFO] [stdout] 185 | | /// // use the values stored in map [INFO] [stdout] 186 | | /// ``` [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | #![warn(rustdoc)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: `#[warn(private_doc_tests)]` implied by `#[warn(rustdoc)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / /// A hash set implemented as a `HashMap` where the value is `()`. [INFO] [stdout] 18 | | /// [INFO] [stdout] 19 | | /// As with the [`HashMap`] type, a `HashSet` requires that the elements [INFO] [stdout] 20 | | /// implement the [`Eq`] and [`Hash`] traits. This can frequently be achieved by [INFO] [stdout] ... | [INFO] [stdout] 112 | | /// [`PartialEq`]: https://doc.rust-lang.org/std/cmp/trait.PartialEq.html [INFO] [stdout] 113 | | /// [`RefCell`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html [INFO] [stdout] | |_______________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / /// A `HashMap` variant that spreads resize load across inserts. [INFO] [stdout] 15 | | /// [INFO] [stdout] 16 | | /// See the [crate-level documentation] for details. [INFO] [stdout] 17 | | /// [INFO] [stdout] ... | [INFO] [stdout] 185 | | /// // use the values stored in map [INFO] [stdout] 186 | | /// ``` [INFO] [stdout] | |_______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:225:5 [INFO] [stdout] | [INFO] [stdout] 225 | / /// Creates an empty `HashMap`. [INFO] [stdout] 226 | | /// [INFO] [stdout] 227 | | /// The hash map is initially created with a capacity of 0, so it will not allocate until it [INFO] [stdout] 228 | | /// is first inserted into. [INFO] [stdout] ... | [INFO] [stdout] 234 | | /// let mut map: HashMap<&str, i32> = HashMap::new(); [INFO] [stdout] 235 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:241:5 [INFO] [stdout] | [INFO] [stdout] 241 | / /// Creates an empty `HashMap` with the specified capacity. [INFO] [stdout] 242 | | /// [INFO] [stdout] 243 | | /// The hash map will be able to hold at least `capacity` elements without [INFO] [stdout] 244 | | /// reallocating. If `capacity` is 0, the hash map will not allocate. [INFO] [stdout] ... | [INFO] [stdout] 250 | | /// let mut map: HashMap<&str, i32> = HashMap::with_capacity(10); [INFO] [stdout] 251 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:259:5 [INFO] [stdout] | [INFO] [stdout] 259 | / /// Creates an empty `HashMap` which will use the given hash builder to hash [INFO] [stdout] 260 | | /// keys. [INFO] [stdout] 261 | | /// [INFO] [stdout] 262 | | /// The created map has the default initial capacity. [INFO] [stdout] ... | [INFO] [stdout] 282 | | /// [INFO] [stdout] 283 | | /// [`BuildHasher`]: ../../std/hash/trait.BuildHasher.html [INFO] [stdout] | |______________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:292:5 [INFO] [stdout] | [INFO] [stdout] 292 | / /// Creates an empty `HashMap` with the specified capacity, using `hash_builder` [INFO] [stdout] 293 | | /// to hash the keys. [INFO] [stdout] 294 | | /// [INFO] [stdout] 295 | | /// The hash map will be able to hold at least `capacity` elements without [INFO] [stdout] ... | [INFO] [stdout] 316 | | /// [INFO] [stdout] 317 | | /// [`BuildHasher`]: ../../std/hash/trait.BuildHasher.html [INFO] [stdout] | |______________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:326:5 [INFO] [stdout] | [INFO] [stdout] 326 | / /// Returns a reference to the map's [`BuildHasher`]. [INFO] [stdout] 327 | | /// [INFO] [stdout] 328 | | /// [`BuildHasher`]: https://doc.rust-lang.org/std/hash/trait.BuildHasher.html [INFO] [stdout] 329 | | /// [INFO] [stdout] ... | [INFO] [stdout] 338 | | /// let hasher: &DefaultHashBuilder = map.hasher(); [INFO] [stdout] 339 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:345:5 [INFO] [stdout] | [INFO] [stdout] 345 | / /// Returns the number of elements the map can hold without reallocating. [INFO] [stdout] 346 | | /// [INFO] [stdout] 347 | | /// This number is a lower bound; the `HashMap` might be able to hold [INFO] [stdout] 348 | | /// more, but is guaranteed to be able to hold at least this many. [INFO] [stdout] ... | [INFO] [stdout] 355 | | /// assert!(map.capacity() >= 100); [INFO] [stdout] 356 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:362:5 [INFO] [stdout] | [INFO] [stdout] 362 | / /// An iterator visiting all keys in arbitrary order. [INFO] [stdout] 363 | | /// The iterator element type is `&'a K`. [INFO] [stdout] 364 | | /// [INFO] [stdout] 365 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 377 | | /// } [INFO] [stdout] 378 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:384:5 [INFO] [stdout] | [INFO] [stdout] 384 | / /// An iterator visiting all values in arbitrary order. [INFO] [stdout] 385 | | /// The iterator element type is `&'a V`. [INFO] [stdout] 386 | | /// [INFO] [stdout] 387 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 399 | | /// } [INFO] [stdout] 400 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:406:5 [INFO] [stdout] | [INFO] [stdout] 406 | / /// An iterator visiting all values mutably in arbitrary order. [INFO] [stdout] 407 | | /// The iterator element type is `&'a mut V`. [INFO] [stdout] 408 | | /// [INFO] [stdout] 409 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 426 | | /// } [INFO] [stdout] 427 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:435:5 [INFO] [stdout] | [INFO] [stdout] 435 | / /// An iterator visiting all key-value pairs in arbitrary order. [INFO] [stdout] 436 | | /// The iterator element type is `(&'a K, &'a V)`. [INFO] [stdout] 437 | | /// [INFO] [stdout] 438 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 450 | | /// } [INFO] [stdout] 451 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:463:5 [INFO] [stdout] | [INFO] [stdout] 463 | / /// An iterator visiting all key-value pairs in arbitrary order, [INFO] [stdout] 464 | | /// with mutable references to the values. [INFO] [stdout] 465 | | /// The iterator element type is `(&'a K, &'a mut V)`. [INFO] [stdout] 466 | | /// [INFO] [stdout] ... | [INFO] [stdout] 484 | | /// } [INFO] [stdout] 485 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:508:5 [INFO] [stdout] | [INFO] [stdout] 508 | / /// Returns the number of elements in the map. [INFO] [stdout] 509 | | /// [INFO] [stdout] 510 | | /// # Examples [INFO] [stdout] 511 | | /// [INFO] [stdout] ... | [INFO] [stdout] 518 | | /// assert_eq!(a.len(), 1); [INFO] [stdout] 519 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:525:5 [INFO] [stdout] | [INFO] [stdout] 525 | / /// Returns `true` if the map contains no elements. [INFO] [stdout] 526 | | /// [INFO] [stdout] 527 | | /// # Examples [INFO] [stdout] 528 | | /// [INFO] [stdout] ... | [INFO] [stdout] 535 | | /// assert!(!a.is_empty()); [INFO] [stdout] 536 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:542:5 [INFO] [stdout] | [INFO] [stdout] 542 | / /// Clears the map, returning all key-value pairs as an iterator. Keeps the [INFO] [stdout] 543 | | /// allocated memory for reuse. [INFO] [stdout] 544 | | /// [INFO] [stdout] 545 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 559 | | /// assert!(a.is_empty()); [INFO] [stdout] 560 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:571:5 [INFO] [stdout] | [INFO] [stdout] 571 | / /// Retains only the elements specified by the predicate. [INFO] [stdout] 572 | | /// [INFO] [stdout] 573 | | /// In other words, remove all pairs `(k, v)` such that `f(&k,&mut v)` returns `false`. [INFO] [stdout] 574 | | /// [INFO] [stdout] ... | [INFO] [stdout] 582 | | /// assert_eq!(map.len(), 4); [INFO] [stdout] 583 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:599:5 [INFO] [stdout] | [INFO] [stdout] 599 | / /// Clears the map, removing all key-value pairs. Keeps the allocated memory [INFO] [stdout] 600 | | /// for reuse. [INFO] [stdout] 601 | | /// [INFO] [stdout] 602 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 610 | | /// assert!(a.is_empty()); [INFO] [stdout] 611 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:623:5 [INFO] [stdout] | [INFO] [stdout] 623 | / /// Reserves capacity for at least `additional` more elements to be inserted [INFO] [stdout] 624 | | /// in the `HashMap`. The collection may reserve more space to avoid [INFO] [stdout] 625 | | /// frequent reallocations. [INFO] [stdout] 626 | | /// [INFO] [stdout] ... | [INFO] [stdout] 641 | | /// map.reserve(10); [INFO] [stdout] 642 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:650:5 [INFO] [stdout] | [INFO] [stdout] 650 | / /// Tries to reserve capacity for at least `additional` more elements to be inserted [INFO] [stdout] 651 | | /// in the given `HashMap`. The collection may reserve more space to avoid [INFO] [stdout] 652 | | /// frequent reallocations. [INFO] [stdout] 653 | | /// [INFO] [stdout] ... | [INFO] [stdout] 667 | | /// map.try_reserve(10).expect("why is the test harness OOMing on 10 bytes?"); [INFO] [stdout] 668 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:676:5 [INFO] [stdout] | [INFO] [stdout] 676 | / /// Shrinks the capacity of the map as much as possible. It will drop [INFO] [stdout] 677 | | /// down as much as possible while maintaining the internal rules [INFO] [stdout] 678 | | /// and possibly leaving some space in accordance with the resize policy. [INFO] [stdout] 679 | | /// [INFO] [stdout] ... | [INFO] [stdout] 690 | | /// assert!(map.capacity() >= 2); [INFO] [stdout] 691 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:698:5 [INFO] [stdout] | [INFO] [stdout] 698 | / /// Shrinks the capacity of the map with a lower limit. It will drop [INFO] [stdout] 699 | | /// down no lower than the supplied limit while maintaining the internal rules [INFO] [stdout] 700 | | /// and possibly leaving some space in accordance with the resize policy. [INFO] [stdout] 701 | | /// [INFO] [stdout] ... | [INFO] [stdout] 719 | | /// assert!(map.capacity() >= 2); [INFO] [stdout] 720 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:728:5 [INFO] [stdout] | [INFO] [stdout] 728 | / /// Gets the given key's corresponding entry in the map for in-place manipulation. [INFO] [stdout] 729 | | /// [INFO] [stdout] 730 | | /// # Examples [INFO] [stdout] 731 | | /// [INFO] [stdout] ... | [INFO] [stdout] 745 | | /// assert_eq!(letters.get(&'y'), None); [INFO] [stdout] 746 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:765:5 [INFO] [stdout] | [INFO] [stdout] 765 | / /// Returns a reference to the value corresponding to the key. [INFO] [stdout] 766 | | /// [INFO] [stdout] 767 | | /// The key may be any borrowed form of the map's key type, but [INFO] [stdout] 768 | | /// [`Hash`] and [`Eq`] on the borrowed form *must* match those for [INFO] [stdout] ... | [INFO] [stdout] 782 | | /// assert_eq!(map.get(&2), None); [INFO] [stdout] 783 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:797:5 [INFO] [stdout] | [INFO] [stdout] 797 | / /// Returns the key-value pair corresponding to the supplied key. [INFO] [stdout] 798 | | /// [INFO] [stdout] 799 | | /// The supplied key may be any borrowed form of the map's key type, but [INFO] [stdout] 800 | | /// [`Hash`] and [`Eq`] on the borrowed form *must* match those for [INFO] [stdout] ... | [INFO] [stdout] 814 | | /// assert_eq!(map.get_key_value(&2), None); [INFO] [stdout] 815 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:833:5 [INFO] [stdout] | [INFO] [stdout] 833 | / /// Returns the key-value pair corresponding to the supplied key, with a mutable reference to value. [INFO] [stdout] 834 | | /// [INFO] [stdout] 835 | | /// The supplied key may be any borrowed form of the map's key type, but [INFO] [stdout] 836 | | /// [`Hash`] and [`Eq`] on the borrowed form *must* match those for [INFO] [stdout] ... | [INFO] [stdout] 854 | | /// assert_eq!(map.get_key_value_mut(&2), None); [INFO] [stdout] 855 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:873:5 [INFO] [stdout] | [INFO] [stdout] 873 | / /// Returns `true` if the map contains a value for the specified key. [INFO] [stdout] 874 | | /// [INFO] [stdout] 875 | | /// The key may be any borrowed form of the map's key type, but [INFO] [stdout] 876 | | /// [`Hash`] and [`Eq`] on the borrowed form *must* match those for [INFO] [stdout] ... | [INFO] [stdout] 890 | | /// assert_eq!(map.contains_key(&2), false); [INFO] [stdout] 891 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:901:5 [INFO] [stdout] | [INFO] [stdout] 901 | / /// Returns a mutable reference to the value corresponding to the key. [INFO] [stdout] 902 | | /// [INFO] [stdout] 903 | | /// The key may be any borrowed form of the map's key type, but [INFO] [stdout] 904 | | /// [`Hash`] and [`Eq`] on the borrowed form *must* match those for [INFO] [stdout] ... | [INFO] [stdout] 920 | | /// assert_eq!(map[&1], "b"); [INFO] [stdout] 921 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:936:5 [INFO] [stdout] | [INFO] [stdout] 936 | / /// Inserts a key-value pair into the map. [INFO] [stdout] 937 | | /// [INFO] [stdout] 938 | | /// If the map did not have this key present, [`None`] is returned. [INFO] [stdout] 939 | | /// [INFO] [stdout] ... | [INFO] [stdout] 959 | | /// assert_eq!(map[&37], "c"); [INFO] [stdout] 960 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:982:5 [INFO] [stdout] | [INFO] [stdout] 982 | / /// Removes a key from the map, returning the value at the key if the key [INFO] [stdout] 983 | | /// was previously in the map. [INFO] [stdout] 984 | | /// [INFO] [stdout] 985 | | /// The key may be any borrowed form of the map's key type, but [INFO] [stdout] ... | [INFO] [stdout] 1000 | | /// assert_eq!(map.remove(&1), None); [INFO] [stdout] 1001 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:1015:5 [INFO] [stdout] | [INFO] [stdout] 1015 | / /// Removes a key from the map, returning the stored key and value if the [INFO] [stdout] 1016 | | /// key was previously in the map. [INFO] [stdout] 1017 | | /// [INFO] [stdout] 1018 | | /// The key may be any borrowed form of the map's key type, but [INFO] [stdout] ... | [INFO] [stdout] 1033 | | /// assert_eq!(map.remove(&1), None); [INFO] [stdout] 1034 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:1516:5 [INFO] [stdout] | [INFO] [stdout] 1516 | / /// Sets the value of the entry, and returns a RawOccupiedEntryMut. [INFO] [stdout] 1517 | | /// [INFO] [stdout] 1518 | | /// # Examples [INFO] [stdout] 1519 | | /// [INFO] [stdout] ... | [INFO] [stdout] 1526 | | /// assert_eq!(entry.remove_entry(), ("horseyland", 37)); [INFO] [stdout] 1527 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:1543:5 [INFO] [stdout] | [INFO] [stdout] 1543 | / /// Ensures a value is in the entry by inserting the default if empty, and returns [INFO] [stdout] 1544 | | /// mutable references to the key and value in the entry. [INFO] [stdout] 1545 | | /// [INFO] [stdout] 1546 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 1557 | | /// assert_eq!(map["poneyland"], 6); [INFO] [stdout] 1558 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:1571:5 [INFO] [stdout] | [INFO] [stdout] 1571 | / /// Ensures a value is in the entry by inserting the result of the default function if empty, [INFO] [stdout] 1572 | | /// and returns mutable references to the key and value in the entry. [INFO] [stdout] 1573 | | /// [INFO] [stdout] 1574 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 1585 | | /// assert_eq!(map["poneyland"], "hoho".to_string()); [INFO] [stdout] 1586 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:1603:5 [INFO] [stdout] | [INFO] [stdout] 1603 | / /// Provides in-place mutable access to an occupied entry before any [INFO] [stdout] 1604 | | /// potential inserts into the map. [INFO] [stdout] 1605 | | /// [INFO] [stdout] 1606 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 1623 | | /// assert_eq!(map["poneyland"], 43); [INFO] [stdout] 1624 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2163:5 [INFO] [stdout] | [INFO] [stdout] 2163 | / /// Sets the value of the entry, and returns an OccupiedEntry. [INFO] [stdout] 2164 | | /// [INFO] [stdout] 2165 | | /// # Examples [INFO] [stdout] 2166 | | /// [INFO] [stdout] ... | [INFO] [stdout] 2173 | | /// assert_eq!(entry.key(), &"horseyland"); [INFO] [stdout] 2174 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2190:5 [INFO] [stdout] | [INFO] [stdout] 2190 | / /// Ensures a value is in the entry by inserting the default if empty, and returns [INFO] [stdout] 2191 | | /// a mutable reference to the value in the entry. [INFO] [stdout] 2192 | | /// [INFO] [stdout] 2193 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 2204 | | /// assert_eq!(map["poneyland"], 6); [INFO] [stdout] 2205 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2218:5 [INFO] [stdout] | [INFO] [stdout] 2218 | / /// Ensures a value is in the entry by inserting the result of the default function if empty, [INFO] [stdout] 2219 | | /// and returns a mutable reference to the value in the entry. [INFO] [stdout] 2220 | | /// [INFO] [stdout] 2221 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 2231 | | /// assert_eq!(map["poneyland"], "hoho".to_string()); [INFO] [stdout] 2232 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2245:5 [INFO] [stdout] | [INFO] [stdout] 2245 | / /// Ensures a value is in the entry by inserting, if empty, the result of the default function, [INFO] [stdout] 2246 | | /// which takes the key as its argument, and returns a mutable reference to the value in the [INFO] [stdout] 2247 | | /// entry. [INFO] [stdout] 2248 | | /// [INFO] [stdout] ... | [INFO] [stdout] 2258 | | /// assert_eq!(map["poneyland"], 9); [INFO] [stdout] 2259 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2275:5 [INFO] [stdout] | [INFO] [stdout] 2275 | / /// Returns a reference to this entry's key. [INFO] [stdout] 2276 | | /// [INFO] [stdout] 2277 | | /// # Examples [INFO] [stdout] 2278 | | /// [INFO] [stdout] ... | [INFO] [stdout] 2283 | | /// assert_eq!(map.entry("poneyland").key(), &"poneyland"); [INFO] [stdout] 2284 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2293:5 [INFO] [stdout] | [INFO] [stdout] 2293 | / /// Provides in-place mutable access to an occupied entry before any [INFO] [stdout] 2294 | | /// potential inserts into the map. [INFO] [stdout] 2295 | | /// [INFO] [stdout] 2296 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 2311 | | /// assert_eq!(map["poneyland"], 43); [INFO] [stdout] 2312 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2329:5 [INFO] [stdout] | [INFO] [stdout] 2329 | / /// Ensures a value is in the entry by inserting the default value if empty, [INFO] [stdout] 2330 | | /// and returns a mutable reference to the value in the entry. [INFO] [stdout] 2331 | | /// [INFO] [stdout] 2332 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 2340 | | /// assert_eq!(map["poneyland"], None); [INFO] [stdout] 2341 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2356:5 [INFO] [stdout] | [INFO] [stdout] 2356 | / /// Gets a reference to the key in the entry. [INFO] [stdout] 2357 | | /// [INFO] [stdout] 2358 | | /// # Examples [INFO] [stdout] 2359 | | /// [INFO] [stdout] ... | [INFO] [stdout] 2365 | | /// assert_eq!(map.entry("poneyland").key(), &"poneyland"); [INFO] [stdout] 2366 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2372:5 [INFO] [stdout] | [INFO] [stdout] 2372 | / /// Take the ownership of the key and value from the map. [INFO] [stdout] 2373 | | /// [INFO] [stdout] 2374 | | /// # Examples [INFO] [stdout] 2375 | | /// [INFO] [stdout] ... | [INFO] [stdout] 2388 | | /// assert_eq!(map.contains_key("poneyland"), false); [INFO] [stdout] 2389 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2395:5 [INFO] [stdout] | [INFO] [stdout] 2395 | / /// Gets a reference to the value in the entry. [INFO] [stdout] 2396 | | /// [INFO] [stdout] 2397 | | /// # Examples [INFO] [stdout] 2398 | | /// [INFO] [stdout] ... | [INFO] [stdout] 2408 | | /// } [INFO] [stdout] 2409 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2415:5 [INFO] [stdout] | [INFO] [stdout] 2415 | / /// Gets a mutable reference to the value in the entry. [INFO] [stdout] 2416 | | /// [INFO] [stdout] 2417 | | /// If you need a reference to the `OccupiedEntry` which may outlive the [INFO] [stdout] 2418 | | /// destruction of the `Entry` value, see [`into_mut`]. [INFO] [stdout] ... | [INFO] [stdout] 2440 | | /// assert_eq!(map["poneyland"], 24); [INFO] [stdout] 2441 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2447:5 [INFO] [stdout] | [INFO] [stdout] 2447 | / /// Converts the OccupiedEntry into a mutable reference to the value in the entry [INFO] [stdout] 2448 | | /// with a lifetime bound to the map itself. [INFO] [stdout] 2449 | | /// [INFO] [stdout] 2450 | | /// If you need multiple references to the `OccupiedEntry`, see [`get_mut`]. [INFO] [stdout] ... | [INFO] [stdout] 2468 | | /// assert_eq!(map["poneyland"], 22); [INFO] [stdout] 2469 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2475:5 [INFO] [stdout] | [INFO] [stdout] 2475 | / /// Sets the value of the entry, and returns the entry's old value. [INFO] [stdout] 2476 | | /// [INFO] [stdout] 2477 | | /// # Examples [INFO] [stdout] 2478 | | /// [INFO] [stdout] ... | [INFO] [stdout] 2490 | | /// assert_eq!(map["poneyland"], 15); [INFO] [stdout] 2491 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2499:5 [INFO] [stdout] | [INFO] [stdout] 2499 | / /// Takes the value out of the entry, and returns it. [INFO] [stdout] 2500 | | /// [INFO] [stdout] 2501 | | /// # Examples [INFO] [stdout] 2502 | | /// [INFO] [stdout] ... | [INFO] [stdout] 2514 | | /// assert_eq!(map.contains_key("poneyland"), false); [INFO] [stdout] 2515 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2521:5 [INFO] [stdout] | [INFO] [stdout] 2521 | / /// Replaces the entry, returning the old key and value. The new key in the hash map will be [INFO] [stdout] 2522 | | /// the key used to create this entry. [INFO] [stdout] 2523 | | /// [INFO] [stdout] 2524 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 2540 | | /// assert_eq!(map[&my_key], 16); [INFO] [stdout] 2541 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2552:5 [INFO] [stdout] | [INFO] [stdout] 2552 | / /// Replaces the key in the hash map with the key used to create this entry. [INFO] [stdout] 2553 | | /// [INFO] [stdout] 2554 | | /// # Examples [INFO] [stdout] 2555 | | /// [INFO] [stdout] ... | [INFO] [stdout] 2574 | | /// } [INFO] [stdout] 2575 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2584:5 [INFO] [stdout] | [INFO] [stdout] 2584 | / /// Gets a reference to the key that would be used when inserting a value [INFO] [stdout] 2585 | | /// through the `VacantEntry`. [INFO] [stdout] 2586 | | /// [INFO] [stdout] 2587 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 2593 | | /// assert_eq!(map.entry("poneyland").key(), &"poneyland"); [INFO] [stdout] 2594 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2600:5 [INFO] [stdout] | [INFO] [stdout] 2600 | / /// Take ownership of the key. [INFO] [stdout] 2601 | | /// [INFO] [stdout] 2602 | | /// # Examples [INFO] [stdout] 2603 | | /// [INFO] [stdout] ... | [INFO] [stdout] 2612 | | /// } [INFO] [stdout] 2613 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:2619:5 [INFO] [stdout] | [INFO] [stdout] 2619 | / /// Sets the value of the entry with the VacantEntry's key, [INFO] [stdout] 2620 | | /// and returns a mutable reference to it. [INFO] [stdout] 2621 | | /// [INFO] [stdout] 2622 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 2633 | | /// assert_eq!(map["poneyland"], 37); [INFO] [stdout] 2634 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | / /// Creates an empty `HashSet`. [INFO] [stdout] 133 | | /// [INFO] [stdout] 134 | | /// The hash set is initially created with a capacity of 0, so it will not allocate until it [INFO] [stdout] 135 | | /// is first inserted into. [INFO] [stdout] ... | [INFO] [stdout] 141 | | /// let set: HashSet = HashSet::new(); [INFO] [stdout] 142 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | / /// Creates an empty `HashSet` with the specified capacity. [INFO] [stdout] 151 | | /// [INFO] [stdout] 152 | | /// The hash set will be able to hold at least `capacity` elements without [INFO] [stdout] 153 | | /// reallocating. If `capacity` is 0, the hash set will not allocate. [INFO] [stdout] ... | [INFO] [stdout] 160 | | /// assert!(set.capacity() >= 10); [INFO] [stdout] 161 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | / /// Returns the number of elements the set can hold without reallocating. [INFO] [stdout] 172 | | /// [INFO] [stdout] 173 | | /// # Examples [INFO] [stdout] 174 | | /// [INFO] [stdout] ... | [INFO] [stdout] 178 | | /// assert!(set.capacity() >= 100); [INFO] [stdout] 179 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:185:5 [INFO] [stdout] | [INFO] [stdout] 185 | / /// An iterator visiting all elements in arbitrary order. [INFO] [stdout] 186 | | /// The iterator element type is `&'a T`. [INFO] [stdout] 187 | | /// [INFO] [stdout] 188 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 199 | | /// } [INFO] [stdout] 200 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:208:5 [INFO] [stdout] | [INFO] [stdout] 208 | / /// Returns the number of elements in the set. [INFO] [stdout] 209 | | /// [INFO] [stdout] 210 | | /// # Examples [INFO] [stdout] 211 | | /// [INFO] [stdout] ... | [INFO] [stdout] 218 | | /// assert_eq!(v.len(), 1); [INFO] [stdout] 219 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:225:5 [INFO] [stdout] | [INFO] [stdout] 225 | / /// Returns `true` if the set contains no elements. [INFO] [stdout] 226 | | /// [INFO] [stdout] 227 | | /// # Examples [INFO] [stdout] 228 | | /// [INFO] [stdout] ... | [INFO] [stdout] 235 | | /// assert!(!v.is_empty()); [INFO] [stdout] 236 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:242:5 [INFO] [stdout] | [INFO] [stdout] 242 | / /// Retains only the elements specified by the predicate. [INFO] [stdout] 243 | | /// [INFO] [stdout] 244 | | /// In other words, remove all elements `e` such that `f(&e)` returns `false`. [INFO] [stdout] 245 | | /// [INFO] [stdout] ... | [INFO] [stdout] 254 | | /// assert_eq!(set.len(), 3); [INFO] [stdout] 255 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:263:5 [INFO] [stdout] | [INFO] [stdout] 263 | / /// Clears the set, removing all values. [INFO] [stdout] 264 | | /// [INFO] [stdout] 265 | | /// # Examples [INFO] [stdout] 266 | | /// [INFO] [stdout] ... | [INFO] [stdout] 273 | | /// assert!(v.is_empty()); [INFO] [stdout] 274 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:286:5 [INFO] [stdout] | [INFO] [stdout] 286 | / /// Creates a new empty hash set which will use the given hasher to hash [INFO] [stdout] 287 | | /// keys. [INFO] [stdout] 288 | | /// [INFO] [stdout] 289 | | /// The hash set is also created with the default initial capacity. [INFO] [stdout] ... | [INFO] [stdout] 310 | | /// [INFO] [stdout] 311 | | /// [`BuildHasher`]: ../../std/hash/trait.BuildHasher.html [INFO] [stdout] | |______________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:319:5 [INFO] [stdout] | [INFO] [stdout] 319 | / /// Creates an empty `HashSet` with the specified capacity, using [INFO] [stdout] 320 | | /// `hasher` to hash the keys. [INFO] [stdout] 321 | | /// [INFO] [stdout] 322 | | /// The hash set will be able to hold at least `capacity` elements without [INFO] [stdout] ... | [INFO] [stdout] 343 | | /// [INFO] [stdout] 344 | | /// [`BuildHasher`]: ../../std/hash/trait.BuildHasher.html [INFO] [stdout] | |______________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:352:5 [INFO] [stdout] | [INFO] [stdout] 352 | / /// Returns a reference to the set's [`BuildHasher`]. [INFO] [stdout] 353 | | /// [INFO] [stdout] 354 | | /// [`BuildHasher`]: https://doc.rust-lang.org/std/hash/trait.BuildHasher.html [INFO] [stdout] 355 | | /// [INFO] [stdout] ... | [INFO] [stdout] 364 | | /// let hasher: &DefaultHashBuilder = set.hasher(); [INFO] [stdout] 365 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | / /// Reserves capacity for at least `additional` more elements to be inserted [INFO] [stdout] 372 | | /// in the `HashSet`. The collection may reserve more space to avoid [INFO] [stdout] 373 | | /// frequent reallocations. [INFO] [stdout] 374 | | /// [INFO] [stdout] ... | [INFO] [stdout] 385 | | /// assert!(set.capacity() >= 10); [INFO] [stdout] 386 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:392:5 [INFO] [stdout] | [INFO] [stdout] 392 | / /// Tries to reserve capacity for at least `additional` more elements to be inserted [INFO] [stdout] 393 | | /// in the given `HashSet`. The collection may reserve more space to avoid [INFO] [stdout] 394 | | /// frequent reallocations. [INFO] [stdout] 395 | | /// [INFO] [stdout] ... | [INFO] [stdout] 406 | | /// set.try_reserve(10).expect("why is the test harness OOMing on 10 bytes?"); [INFO] [stdout] 407 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:413:5 [INFO] [stdout] | [INFO] [stdout] 413 | / /// Shrinks the capacity of the set as much as possible. It will drop [INFO] [stdout] 414 | | /// down as much as possible while maintaining the internal rules [INFO] [stdout] 415 | | /// and possibly leaving some space in accordance with the resize policy. [INFO] [stdout] 416 | | /// [INFO] [stdout] ... | [INFO] [stdout] 427 | | /// assert!(set.capacity() >= 2); [INFO] [stdout] 428 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:434:5 [INFO] [stdout] | [INFO] [stdout] 434 | / /// Shrinks the capacity of the set with a lower limit. It will drop [INFO] [stdout] 435 | | /// down no lower than the supplied limit while maintaining the internal rules [INFO] [stdout] 436 | | /// and possibly leaving some space in accordance with the resize policy. [INFO] [stdout] 437 | | /// [INFO] [stdout] ... | [INFO] [stdout] 453 | | /// assert!(set.capacity() >= 2); [INFO] [stdout] 454 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:460:5 [INFO] [stdout] | [INFO] [stdout] 460 | / /// Visits the values representing the difference, [INFO] [stdout] 461 | | /// i.e., the values that are in `self` but not in `other`. [INFO] [stdout] 462 | | /// [INFO] [stdout] 463 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 481 | | /// assert_eq!(diff, [4].iter().collect()); [INFO] [stdout] 482 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:491:5 [INFO] [stdout] | [INFO] [stdout] 491 | / /// Visits the values representing the symmetric difference, [INFO] [stdout] 492 | | /// i.e., the values that are in `self` or in `other` but not in both. [INFO] [stdout] 493 | | /// [INFO] [stdout] 494 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 510 | | /// assert_eq!(diff1, [1, 4].iter().collect()); [INFO] [stdout] 511 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:519:5 [INFO] [stdout] | [INFO] [stdout] 519 | / /// Visits the values representing the intersection, [INFO] [stdout] 520 | | /// i.e., the values that are both in `self` and `other`. [INFO] [stdout] 521 | | /// [INFO] [stdout] 522 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 535 | | /// assert_eq!(intersection, [2, 3].iter().collect()); [INFO] [stdout] 536 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:550:5 [INFO] [stdout] | [INFO] [stdout] 550 | / /// Visits the values representing the union, [INFO] [stdout] 551 | | /// i.e., all the values in `self` or `other`, without duplicates. [INFO] [stdout] 552 | | /// [INFO] [stdout] 553 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 566 | | /// assert_eq!(union, [1, 2, 3, 4].iter().collect()); [INFO] [stdout] 567 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:580:5 [INFO] [stdout] | [INFO] [stdout] 580 | / /// Returns `true` if the set contains a value. [INFO] [stdout] 581 | | /// [INFO] [stdout] 582 | | /// The value may be any borrowed form of the set's value type, but [INFO] [stdout] 583 | | /// [`Hash`] and [`Eq`] on the borrowed form *must* match those for [INFO] [stdout] ... | [INFO] [stdout] 596 | | /// [`Eq`]: https://doc.rust-lang.org/std/cmp/trait.Eq.html [INFO] [stdout] 597 | | /// [`Hash`]: https://doc.rust-lang.org/std/hash/trait.Hash.html [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:607:5 [INFO] [stdout] | [INFO] [stdout] 607 | / /// Returns a reference to the value in the set, if any, that is equal to the given value. [INFO] [stdout] 608 | | /// [INFO] [stdout] 609 | | /// The value may be any borrowed form of the set's value type, but [INFO] [stdout] 610 | | /// [`Hash`] and [`Eq`] on the borrowed form *must* match those for [INFO] [stdout] ... | [INFO] [stdout] 623 | | /// [`Eq`]: https://doc.rust-lang.org/std/cmp/trait.Eq.html [INFO] [stdout] 624 | | /// [`Hash`]: https://doc.rust-lang.org/std/hash/trait.Hash.html [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:638:5 [INFO] [stdout] | [INFO] [stdout] 638 | / /// Returns `true` if `self` has no elements in common with `other`. [INFO] [stdout] 639 | | /// This is equivalent to checking for an empty intersection. [INFO] [stdout] 640 | | /// [INFO] [stdout] 641 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 653 | | /// assert_eq!(a.is_disjoint(&b), false); [INFO] [stdout] 654 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:659:5 [INFO] [stdout] | [INFO] [stdout] 659 | / /// Returns `true` if the set is a subset of another, [INFO] [stdout] 660 | | /// i.e., `other` contains at least all the values in `self`. [INFO] [stdout] 661 | | /// [INFO] [stdout] 662 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 674 | | /// assert_eq!(set.is_subset(&sup), false); [INFO] [stdout] 675 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:680:5 [INFO] [stdout] | [INFO] [stdout] 680 | / /// Returns `true` if the set is a superset of another, [INFO] [stdout] 681 | | /// i.e., `self` contains at least all the values in `other`. [INFO] [stdout] 682 | | /// [INFO] [stdout] 683 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 698 | | /// assert_eq!(set.is_superset(&sub), true); [INFO] [stdout] 699 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:705:5 [INFO] [stdout] | [INFO] [stdout] 705 | / /// Adds a value to the set. [INFO] [stdout] 706 | | /// [INFO] [stdout] 707 | | /// If the set did not have this value present, `true` is returned. [INFO] [stdout] 708 | | /// [INFO] [stdout] ... | [INFO] [stdout] 720 | | /// assert_eq!(set.len(), 1); [INFO] [stdout] 721 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:727:5 [INFO] [stdout] | [INFO] [stdout] 727 | / /// Adds a value to the set, replacing the existing value, if any, that is equal to the given [INFO] [stdout] 728 | | /// one. Returns the replaced value. [INFO] [stdout] 729 | | /// [INFO] [stdout] 730 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 740 | | /// assert_eq!(set.get(&[][..]).unwrap().capacity(), 10); [INFO] [stdout] 741 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:753:5 [INFO] [stdout] | [INFO] [stdout] 753 | / /// Removes a value from the set. Returns whether the value was [INFO] [stdout] 754 | | /// present in the set. [INFO] [stdout] 755 | | /// [INFO] [stdout] 756 | | /// The value may be any borrowed form of the set's value type, but [INFO] [stdout] ... | [INFO] [stdout] 772 | | /// [`Eq`]: https://doc.rust-lang.org/std/cmp/trait.Eq.html [INFO] [stdout] 773 | | /// [`Hash`]: https://doc.rust-lang.org/std/hash/trait.Hash.html [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:783:5 [INFO] [stdout] | [INFO] [stdout] 783 | / /// Removes and returns the value in the set, if any, that is equal to the given one. [INFO] [stdout] 784 | | /// [INFO] [stdout] 785 | | /// The value may be any borrowed form of the set's value type, but [INFO] [stdout] 786 | | /// [`Hash`] and [`Eq`] on the borrowed form *must* match those for [INFO] [stdout] ... | [INFO] [stdout] 799 | | /// [`Eq`]: https://doc.rust-lang.org/std/cmp/trait.Eq.html [INFO] [stdout] 800 | | /// [`Hash`]: https://doc.rust-lang.org/std/hash/trait.Hash.html [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/map.rs:1934:5 [INFO] [stdout] | [INFO] [stdout] 1934 | / /// Creates a consuming iterator, that is, one that moves each key-value [INFO] [stdout] 1935 | | /// pair out of the map in arbitrary order. The map cannot be used after [INFO] [stdout] 1936 | | /// calling this. [INFO] [stdout] 1937 | | /// [INFO] [stdout] ... | [INFO] [stdout] 1949 | | /// let vec: Vec<(&str, i32)> = map.into_iter().collect(); [INFO] [stdout] 1950 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: documentation test in private item [INFO] [stdout] --> src/set.rs:1132:5 [INFO] [stdout] | [INFO] [stdout] 1132 | / /// Creates a consuming iterator, that is, one that moves each value out [INFO] [stdout] 1133 | | /// of the set in arbitrary order. The set cannot be used after calling [INFO] [stdout] 1134 | | /// this. [INFO] [stdout] 1135 | | /// [INFO] [stdout] ... | [INFO] [stdout] 1150 | | /// } [INFO] [stdout] 1151 | | /// ``` [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 85 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.49s [INFO] running `Command { std: "docker" "inspect" "1a1da7e5085ed954852d7fc96d2c4b5a87d4da9d596192ea9a4362860c93cff6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a1da7e5085ed954852d7fc96d2c4b5a87d4da9d596192ea9a4362860c93cff6", kill_on_drop: false }` [INFO] [stdout] 1a1da7e5085ed954852d7fc96d2c4b5a87d4da9d596192ea9a4362860c93cff6