@@ -198,7 +198,7 @@ declare_clippy_lint! {
198
198
"presence of `fn main() {` in code examples"
199
199
}
200
200
201
- #[ allow ( clippy:: module_name_repetitions) ]
201
+ #[ expect ( clippy:: module_name_repetitions) ]
202
202
#[ derive( Clone ) ]
203
203
pub struct DocMarkdown {
204
204
valid_idents : FxHashSet < String > ,
@@ -373,7 +373,7 @@ fn lint_for_missing_headers<'tcx>(
373
373
/// `rustc_ast::parse::lexer::comments::strip_doc_comment_decoration` because we
374
374
/// need to keep track of
375
375
/// the spans but this function is inspired from the later.
376
- #[ allow ( clippy:: cast_possible_truncation) ]
376
+ #[ expect ( clippy:: cast_possible_truncation) ]
377
377
#[ must_use]
378
378
pub fn strip_doc_comment_decoration ( doc : & str , comment_kind : CommentKind , span : Span ) -> ( String , Vec < ( usize , Span ) > ) {
379
379
// one-line comments lose their prefix
@@ -428,7 +428,7 @@ fn check_attrs<'a>(cx: &LateContext<'_>, valid_idents: &FxHashSet<String>, attrs
428
428
/// We don't want the parser to choke on intra doc links. Since we don't
429
429
/// actually care about rendering them, just pretend that all broken links are
430
430
/// 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
432
432
fn fake_broken_link_callback < ' a > ( _: BrokenLink < ' _ > ) -> Option < ( CowStr < ' a > , CowStr < ' a > ) > {
433
433
Some ( ( "fake" . into ( ) , "fake" . into ( ) ) )
434
434
}
0 commit comments