Skip to main content
Module comments
rustc_
ast
1.101.0-nightly
(76456a688 2026-10-25)
Module comments
Module Items
Re-exports
Structs
Enums
Functions
In rustc_
ast::
util
rustc_ast
::
util
Module
comments
Copy item path
Source
Re-exports
ยง
use rustc_span::
BytePos
;
๐
use rustc_span::
Symbol
;
๐
use crate::token::
CommentKind
;
๐
Structs
ยง
Comment
Enums
ยง
Comment
Style
Functions
ยง
beautify_
doc_
string
Makes a doc string more presentable to users. Used by rustdoc and perhaps other tools, but not by rustc.
may_
have_
doc_
links
A fast conservative estimate on whether the string can contain documentation links. A pair of square brackets
[]
must exist in the string, but we only search for the opening bracket because brackets always go in pairs in practice.