diff --git a/tests/fixtures/hover/save_data/test_tooltip_mod_use_external.rs.0004_012.json b/tests/fixtures/hover/save_data/test_tooltip_mod_use_external.rs.0004_012.json index ece90b14303..653e5fabf51 100644 --- a/tests/fixtures/hover/save_data/test_tooltip_mod_use_external.rs.0004_012.json +++ b/tests/fixtures/hover/save_data/test_tooltip_mod_use_external.rs.0004_012.json @@ -7,9 +7,9 @@ "data": { "Ok": [{ "language": "rust", - "value": "libstd/sync/mod.rs" + "value": "std/src/sync/mod.rs" }, - "Useful synchronization primitives.\n\n## The need for synchronization\n\nConceptually, a Rust program is a series of operations which will\nbe executed on a computer. The timeline of events happening in the\nprogram is consistent with the order of the operations in the code." + "Useful synchronization primitives.\n\n## The need for synchronization\n\nConceptually, a Rust program is a series of operations which will\nbe executed on a computer. The timeline of events happening in the\nprogram is consistent with the order of the operations in the code.\n\nConsider the following code, operating on some global static variables:\n\n```rust\nstatic mut A: u32 = 0;" ] } } diff --git a/tests/fixtures/hover/save_data/test_tooltip_mod_use_external.rs.0005_012.json b/tests/fixtures/hover/save_data/test_tooltip_mod_use_external.rs.0005_012.json index 8269d9637b6..6d5971bd94e 100644 --- a/tests/fixtures/hover/save_data/test_tooltip_mod_use_external.rs.0005_012.json +++ b/tests/fixtures/hover/save_data/test_tooltip_mod_use_external.rs.0005_012.json @@ -7,9 +7,9 @@ "data": { "Ok": [{ "language": "rust", - "value": "libstd/sync/mod.rs" + "value": "std/src/sync/mod.rs" }, - "Useful synchronization primitives.\n\n## The need for synchronization\n\nConceptually, a Rust program is a series of operations which will\nbe executed on a computer. The timeline of events happening in the\nprogram is consistent with the order of the operations in the code." + "Useful synchronization primitives.\n\n## The need for synchronization\n\nConceptually, a Rust program is a series of operations which will\nbe executed on a computer. The timeline of events happening in the\nprogram is consistent with the order of the operations in the code.\n\nConsider the following code, operating on some global static variables:\n\n```rust\nstatic mut A: u32 = 0;" ] } } diff --git a/tests/fixtures/hover/save_data/test_tooltip_std.rs.0009_012.json b/tests/fixtures/hover/save_data/test_tooltip_std.rs.0009_012.json index 2a2e4033b39..bb805b69b37 100644 --- a/tests/fixtures/hover/save_data/test_tooltip_std.rs.0009_012.json +++ b/tests/fixtures/hover/save_data/test_tooltip_std.rs.0009_012.json @@ -10,7 +10,7 @@ "language": "rust", "value": "pub fn push(&mut self, value: T)" }, - "Appends an element to the back of a collection.\n\n# Panics\n\nPanics if the number of elements in the vector overflows a `usize`.\n\n# Examples\n\n```rust\nlet mut vec = vec![1, 2];\nvec.push(3);\nassert_eq!(vec, [1, 2, 3]);\n```" + "Appends an element to the back of a collection.\n\n# Panics\n\nPanics if the new capacity exceeds `isize::MAX` bytes.\n\n# Examples\n\n```rust\nlet mut vec = vec![1, 2];\nvec.push(3);\nassert_eq!(vec, [1, 2, 3]);\n```" ] } } \ No newline at end of file diff --git a/tests/fixtures/hover/save_data/test_tooltip_std.rs.0015_017.json b/tests/fixtures/hover/save_data/test_tooltip_std.rs.0015_017.json index b786296489d..5fd627d906d 100644 --- a/tests/fixtures/hover/save_data/test_tooltip_std.rs.0015_017.json +++ b/tests/fixtures/hover/save_data/test_tooltip_std.rs.0015_017.json @@ -8,10 +8,10 @@ "Ok": [ { "language": "rust", - "value": "src/liballoc/string.rs" + "value": "library/alloc/src/string.rs" }, "https://doc.rust-lang.org/nightly/alloc/string/", - "A UTF-8 encoded, growable string.\n\nThis module contains the [`String`] type, a trait for converting\n[`ToString`]s, and several error types that may result from working with\n[`String`]s.\n\n[`ToString`]: trait.ToString.html\n\n# Examples\n\nThere are multiple ways to create a new [`String`] from a string literal:\n\n```rust\nlet s = \"Hello\".to_string();\n\nlet s = String::from(\"world\");\nlet s: String = \"also this\".into();\n```\n\nYou can create a new [`String`] from an existing one by concatenating with\n`+`:\n\n[`String`]: struct.String.html\n\n```rust\nlet s = \"Hello\".to_string();\n\nlet message = s + \" world!\";\n```\n\nIf you have a vector of valid UTF-8 bytes, you can make a [`String`] out of\nit. You can do the reverse too.\n\n```rust\nlet sparkle_heart = vec![240, 159, 146, 150];\n\n// We know these bytes are valid, so we'll use `unwrap()`.\nlet sparkle_heart = String::from_utf8(sparkle_heart).unwrap();\n\nassert_eq!(\"💖\", sparkle_heart);\n\nlet bytes = sparkle_heart.into_bytes();\n\nassert_eq!(bytes, [240, 159, 146, 150]);\n```" + "A UTF-8 encoded, growable string.\n\nThis module contains the [`String`] type, a trait for converting\n[`ToString`]s, and several error types that may result from working with\n[`String`]s.\n\n# Examples\n\nThere are multiple ways to create a new [`String`] from a string literal:\n\n```rust\nlet s = \"Hello\".to_string();\n\nlet s = String::from(\"world\");\nlet s: String = \"also this\".into();\n```\n\nYou can create a new [`String`] from an existing one by concatenating with\n`+`:\n\n```rust\nlet s = \"Hello\".to_string();\n\nlet message = s + \" world!\";\n```\n\nIf you have a vector of valid UTF-8 bytes, you can make a [`String`] out of\nit. You can do the reverse too.\n\n```rust\nlet sparkle_heart = vec![240, 159, 146, 150];\n\n// We know these bytes are valid, so we'll use `unwrap()`.\nlet sparkle_heart = String::from_utf8(sparkle_heart).unwrap();\n\nassert_eq!(\"💖\", sparkle_heart);\n\nlet bytes = sparkle_heart.into_bytes();\n\nassert_eq!(bytes, [240, 159, 146, 150]);\n```" ] } } \ No newline at end of file diff --git a/tests/fixtures/hover/save_data/test_tooltip_std.rs.0015_025.json b/tests/fixtures/hover/save_data/test_tooltip_std.rs.0015_025.json index c77b8a6811c..d535ad9099b 100644 --- a/tests/fixtures/hover/save_data/test_tooltip_std.rs.0015_025.json +++ b/tests/fixtures/hover/save_data/test_tooltip_std.rs.0015_025.json @@ -11,7 +11,7 @@ "value": "pub trait ToString" }, "https://doc.rust-lang.org/nightly/alloc/string/ToString.t.html", - "A trait for converting a value to a `String`.\n\nThis trait is automatically implemented for any type which implements the\n[`Display`] trait. As such, `ToString` shouldn't be implemented directly:\n[`Display`] should be implemented instead, and you get the `ToString`\nimplementation for free.\n\n[`Display`]: ../../std/fmt/trait.Display.html" + "A trait for converting a value to a `String`.\n\nThis trait is automatically implemented for any type which implements the\n[`Display`] trait. As such, `ToString` shouldn't be implemented directly:\n[`Display`] should be implemented instead, and you get the `ToString`\nimplementation for free.\n\n[`Display`]: fmt::Display" ] } } \ No newline at end of file