From 98f4765cea90df479652ce6f5d2ec2c969940b24 Mon Sep 17 00:00:00 2001 From: ethan-000 Date: Sat, 11 Feb 2023 10:49:16 +0000 Subject: [PATCH] fix 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 f50b16f895ee..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 https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#lto +/// [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