From be436373f4f575035ded9fa17a19fdf0e02297b9 Mon Sep 17 00:00:00 2001 From: ethan-000 Date: Sat, 11 Feb 2023 12:40:08 +0000 Subject: [PATCH] change --- src/cargo/core/compiler/lto.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cargo/core/compiler/lto.rs b/src/cargo/core/compiler/lto.rs index c2d04f2156fb..e934244c95c9 100644 --- a/src/cargo/core/compiler/lto.rs +++ b/src/cargo/core/compiler/lto.rs @@ -5,8 +5,7 @@ use crate::util::interning::InternedString; use crate::util::errors::CargoResult; use std::collections::hash_map::{Entry, HashMap}; -/// LTO: Link Time Optimizations -/// 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 /// -------------------|------------------------|-------------|-------- @@ -16,7 +15,7 @@ use std::collections::hash_map::{Entry, HashMap}; /// `ObjectAndBitcode` | | ✓ | ✓ /// `OnlyObject` | `-C embed-bitcode=no` | ✓ | /// -/// See +/// [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