@@ -198,7 +198,7 @@ declare_clippy_lint! {
198198 "presence of `fn main() {` in code examples"
199199}
200200
201- #[ allow ( clippy:: module_name_repetitions) ]
201+ #[ expect ( clippy:: module_name_repetitions) ]
202202#[ derive( Clone ) ]
203203pub struct DocMarkdown {
204204 valid_idents : FxHashSet < String > ,
@@ -373,7 +373,7 @@ fn lint_for_missing_headers<'tcx>(
373373/// `rustc_ast::parse::lexer::comments::strip_doc_comment_decoration` because we
374374/// need to keep track of
375375/// the spans but this function is inspired from the later.
376- #[ allow ( clippy:: cast_possible_truncation) ]
376+ #[ expect ( clippy:: cast_possible_truncation) ]
377377#[ must_use]
378378pub fn strip_doc_comment_decoration ( doc : & str , comment_kind : CommentKind , span : Span ) -> ( String , Vec < ( usize , Span ) > ) {
379379 // one-line comments lose their prefix
@@ -428,7 +428,7 @@ fn check_attrs<'a>(cx: &LateContext<'_>, valid_idents: &FxHashSet<String>, attrs
428428 /// We don't want the parser to choke on intra doc links. Since we don't
429429 /// actually care about rendering them, just pretend that all broken links are
430430 /// point to a fake address.
431- #[ allow ( clippy:: unnecessary_wraps) ] // we're following a type signature
431+ #[ expect ( clippy:: unnecessary_wraps) ] // we're following a type signature
432432 fn fake_broken_link_callback < ' a > ( _: BrokenLink < ' _ > ) -> Option < ( CowStr < ' a > , CowStr < ' a > ) > {
433433 Some ( ( "fake" . into ( ) , "fake" . into ( ) ) )
434434 }
0 commit comments