about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-02-25 03:16:22 +0000
committerbors <bors@rust-lang.org>2022-02-25 03:16:22 +0000
commitf6a79936da30702b1c717769a2d12dffbad6d30a (patch)
tree2277126f6649883810888dc0073072ca60491fb2 /compiler/rustc_mir_transform
parentd4de1f230ca30b7ce08fbf453daebf8b2e7ffcc9 (diff)
parent7b7b0f148c0e76136beb3c24d392f25bb4044612 (diff)
downloadrust-f6a79936da30702b1c717769a2d12dffbad6d30a.tar.gz
rust-f6a79936da30702b1c717769a2d12dffbad6d30a.zip
Auto merge of #93878 - Aaron1011:newtype-macro, r=cjgillot
Convert `newtype_index` to a proc macro

The `macro_rules!` implementation was becomng excessively complicated,
and difficult to modify. The new proc macro implementation should make
it much easier to add new features (e.g. skipping certain `#[derive]`s)
Diffstat (limited to 'compiler/rustc_mir_transform')
-rw-r--r--compiler/rustc_mir_transform/src/coverage/graph.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/coverage/graph.rs b/compiler/rustc_mir_transform/src/coverage/graph.rs
index 57862b6628d..55f7e70db8f 100644
--- a/compiler/rustc_mir_transform/src/coverage/graph.rs
+++ b/compiler/rustc_mir_transform/src/coverage/graph.rs
@@ -281,7 +281,7 @@ impl graph::WithPredecessors for CoverageGraph {
 }
 
 rustc_index::newtype_index! {
-    /// A node in the [control-flow graph][CFG] of CoverageGraph.
+    /// A node in the control-flow graph of CoverageGraph.
     pub(super) struct BasicCoverageBlock {
         DEBUG_FORMAT = "bcb{}",
         const START_BCB = 0,