about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-06-28 07:05:55 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-06-28 07:07:16 +0000
commit7c15779ff184f81a58fd5edb585341ea019e1fd9 (patch)
tree993bca8995464a06fd2903a43dea7f042674c0e5
parentb0142f603dd171dccf822a868284c93b8f6f6f91 (diff)
downloadrust-7c15779ff184f81a58fd5edb585341ea019e1fd9.tar.gz
rust-7c15779ff184f81a58fd5edb585341ea019e1fd9.zip
Rustdoc nit: refer to macro from docs
-rw-r--r--compiler/rustc_middle/src/ty/print/pretty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/print/pretty.rs b/compiler/rustc_middle/src/ty/print/pretty.rs
index 0bc62640bc9..dcc8247937d 100644
--- a/compiler/rustc_middle/src/ty/print/pretty.rs
+++ b/compiler/rustc_middle/src/ty/print/pretty.rs
@@ -3004,7 +3004,7 @@ fn for_each_def(tcx: TyCtxt<'_>, mut collect_fn: impl for<'b> FnMut(&'b Ident, N
 ///
 /// The implementation uses similar import discovery logic to that of 'use' suggestions.
 ///
-/// See also [`DelayDm`](rustc_error_messages::DelayDm) and [`with_no_trimmed_paths`].
+/// See also [`DelayDm`](rustc_error_messages::DelayDm) and [`with_no_trimmed_paths!`].
 fn trimmed_def_paths(tcx: TyCtxt<'_>, (): ()) -> FxHashMap<DefId, Symbol> {
     let mut map: FxHashMap<DefId, Symbol> = FxHashMap::default();