Skip to content

Commit bb9e841

Browse files
committed
Change tooltips
1 parent 9831a29 commit bb9e841

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

site/frontend/src/pages/compare/artifact-size/artifact-size-table.vue

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,19 @@ function getClass(a: number | undefined, b: number | undefined): string {
6464
6565
function generateTitle(component: string): string {
6666
if (component === "rustc") {
67-
return `Main binary of the Rust compiler. It is a small shim that links to librustc_driver.so,
68-
which contains most of the compiler logic.`;
67+
return `Executable of the Rust compiler. A small wrapper that links to librustc_driver.so, which provides most of the compiler logic.`;
6968
} else if (component === "rustdoc") {
70-
return `Tool that generates documentation of Rust crates. Links to librustc_driver.so, which provides
71-
most of the compiler logic.`;
69+
return `Executable of rustdoc. Links to librustc_driver.so, which provides most of the compiler logic.`;
7270
} else if (component === "cargo") {
73-
return "Build tool that compiles crates and their dependencies.";
71+
return "Executable of cargo.";
7472
} else if (component === "librustc_driver") {
75-
return `Shared library which contains the core implementation of the compiler. It is used by several
76-
other tools and binaries.`;
73+
return `Shared library containing the core implementation of the compiler. It is used by several other tools and binaries.`;
7774
} else if (component === "libLLVM") {
78-
return `LLVM codegen backend that is used by librustc_driver.so to emit optimized assembly.`;
75+
return `Shared library of the LLVM codegen backend. It is used by librustc_driver.so.`;
7976
} else if (component === "libstd") {
80-
return `The Rust standard library.`;
77+
return `Shared library containing the Rust standard library. It is used by librustc_driver.so.`;
8178
} else if (component === "libtest") {
82-
return `Library that contains implementation of the default test harness used by Rust programs.`;
79+
return `Shared library containing the Rust test harness.`;
8380
} else {
8481
return ""; // Unknown component
8582
}
@@ -102,6 +99,7 @@ function generateTitle(component: string): string {
10299
<tr v-for="component in components">
103100
<td class="component" :title="generateTitle(component)">
104101
{{ formatName(component) }}
102+
<Tooltip>{{ generateTitle(component) }}</Tooltip>
105103
</td>
106104
<td>
107105
<div class="aligned">

0 commit comments

Comments
 (0)