You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// The `lint_pass_impl_without_macro` detects manual implementations of a lint
273
+
/// pass, without using [`declare_lint_pass`] or [`impl_lint_pass`].
257
274
pub rustc::LINT_PASS_IMPL_WITHOUT_MACRO,
258
275
Allow,
259
276
"`impl LintPass` without the `declare_lint_pass!` or `impl_lint_pass!` macros"
@@ -285,6 +302,8 @@ impl EarlyLintPass for LintPassImpl {
285
302
}
286
303
287
304
declare_tool_lint!{
305
+
/// The `existing_doc_keyword` lint detects use `#[doc()]` keywords
306
+
/// that don't exist, e.g. `#[doc(keyword = "..")]`.
288
307
pub rustc::EXISTING_DOC_KEYWORD,
289
308
Allow,
290
309
"Check that documented keywords in std and core actually exist",
@@ -325,13 +344,22 @@ impl<'tcx> LateLintPass<'tcx> for ExistingDocKeyword {
325
344
}
326
345
327
346
declare_tool_lint!{
347
+
/// The `untranslatable_diagnostic` lint detects diagnostics created
348
+
/// without using translatable Fluent strings.
349
+
///
350
+
/// More details on translatable diagnostics can be found [here](https://rustc-dev-guide.rust-lang.org/diagnostics/translation.html).
328
351
pub rustc::UNTRANSLATABLE_DIAGNOSTIC,
329
352
Allow,
330
353
"prevent creation of diagnostics which cannot be translated",
331
354
report_in_external_macro:true
332
355
}
333
356
334
357
declare_tool_lint!{
358
+
/// The `diagnostic_outside_of_impl` lint detects diagnostics created manually,
359
+
/// and inside an `IntoDiagnostic`/`AddToDiagnostic` implementation,
360
+
/// or a `#[derive(Diagnostic)]`/`#[derive(Subdiagnostic)]` expansion.
361
+
///
362
+
/// More details on diagnostics implementations can be found [here](https://rustc-dev-guide.rust-lang.org/diagnostics/diagnostic-structs.html).
335
363
pub rustc::DIAGNOSTIC_OUTSIDE_OF_IMPL,
336
364
Allow,
337
365
"prevent creation of diagnostics outside of `IntoDiagnostic`/`AddToDiagnostic` impls",
@@ -396,6 +424,8 @@ impl LateLintPass<'_> for Diagnostics {
396
424
}
397
425
398
426
declare_tool_lint!{
427
+
/// The `bad_opt_access` lint detects accessing options by field instad of
428
+
/// the wrapper function.
399
429
pub rustc::BAD_OPT_ACCESS,
400
430
Deny,
401
431
"prevent using options by field access when there is a wrapper function",
0 commit comments