From aefde6088836673d4750cc394cdfd231be5cfe15 Mon Sep 17 00:00:00 2001 From: ethan-000 Date: Sat, 11 Feb 2023 10:11:33 +0000 Subject: [PATCH] add comment to lto.rs fix change --- src/cargo/core/compiler/lto.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cargo/core/compiler/lto.rs b/src/cargo/core/compiler/lto.rs index 661d1d266e1..e934244c95c 100644 --- a/src/cargo/core/compiler/lto.rs +++ b/src/cargo/core/compiler/lto.rs @@ -5,7 +5,7 @@ use crate::util::interning::InternedString; use crate::util::errors::CargoResult; use std::collections::hash_map::{Entry, HashMap}; -/// Possible ways to run rustc and request various parts of LTO. +/// Possible ways to run rustc and request various parts of [LTO]. /// /// Variant | Flag | Object Code | Bitcode /// -------------------|------------------------|-------------|-------- @@ -14,6 +14,8 @@ use std::collections::hash_map::{Entry, HashMap}; /// `OnlyBitcode` | `-C linker-plugin-lto` | | ✓ /// `ObjectAndBitcode` | | ✓ | ✓ /// `OnlyObject` | `-C embed-bitcode=no` | ✓ | +/// +/// [LTO]: https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#lto #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum Lto { /// LTO is run for this rustc, and it's `-Clto=foo`. If the given value is