Skip to content

Commit 7113896

Browse files
committed
Auto merge of #11701 - Ethan-000:add_lto_comment, r=weihanglo
add comment to lto.rs
2 parents b008a8d + aefde60 commit 7113896

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cargo/core/compiler/lto.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::util::interning::InternedString;
55
use crate::util::errors::CargoResult;
66
use std::collections::hash_map::{Entry, HashMap};
77

8-
/// Possible ways to run rustc and request various parts of LTO.
8+
/// Possible ways to run rustc and request various parts of [LTO].
99
///
1010
/// Variant | Flag | Object Code | Bitcode
1111
/// -------------------|------------------------|-------------|--------
@@ -14,6 +14,8 @@ use std::collections::hash_map::{Entry, HashMap};
1414
/// `OnlyBitcode` | `-C linker-plugin-lto` | | ✓
1515
/// `ObjectAndBitcode` | | ✓ | ✓
1616
/// `OnlyObject` | `-C embed-bitcode=no` | ✓ |
17+
///
18+
/// [LTO]: https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#lto
1719
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
1820
pub enum Lto {
1921
/// LTO is run for this rustc, and it's `-Clto=foo`. If the given value is

0 commit comments

Comments
 (0)