about summary refs log tree commit diff
path: root/compiler/rustc_passes/src/lang_items.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-05-01 07:56:44 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-05-21 14:56:57 +1000
commitce222328d717d63e09a1fe38d8d4c20f7f5c6779 (patch)
treee464fbd9f7c775d7b4aeb5dd0559790a56cab64a /compiler/rustc_passes/src/lang_items.rs
parentd8ea4689943aa8cd7e949b10f16ebec6a8ac7132 (diff)
downloadrust-ce222328d717d63e09a1fe38d8d4c20f7f5c6779.tar.gz
rust-ce222328d717d63e09a1fe38d8d4c20f7f5c6779.zip
Minor `pub` and whitespace cleanups.
Diffstat (limited to 'compiler/rustc_passes/src/lang_items.rs')
-rw-r--r--compiler/rustc_passes/src/lang_items.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_passes/src/lang_items.rs b/compiler/rustc_passes/src/lang_items.rs
index a5fa94faead..b3722e99e16 100644
--- a/compiler/rustc_passes/src/lang_items.rs
+++ b/compiler/rustc_passes/src/lang_items.rs
@@ -149,8 +149,9 @@ impl<'ast, 'tcx> LanguageItemCollector<'ast, 'tcx> {
                 }
             };
 
-            // When there's a duplicate lang item, something went very wrong and there's no value in recovering or doing anything.
-            // Give the user the one message to let them debug the mess they created and then wish them farewell.
+            // When there's a duplicate lang item, something went very wrong and there's no value
+            // in recovering or doing anything. Give the user the one message to let them debug the
+            // mess they created and then wish them farewell.
             self.tcx.dcx().emit_fatal(DuplicateLangItem {
                 local_span: item_span,
                 lang_item_name,