1#![allow(internal_features)]
24#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
25#![doc(rust_logo)]
26#![feature(array_windows)]
27#![feature(assert_matches)]
28#![feature(box_patterns)]
29#![feature(if_let_guard)]
30#![feature(iter_order_by)]
31#![feature(rustc_attrs)]
32#![feature(rustdoc_internals)]
33#![feature(try_blocks)]
34mod async_closures;
37mod async_fn_in_trait;
38mod autorefs;
39pub mod builtin;
40mod context;
41mod dangling;
42mod default_could_be_derived;
43mod deref_into_dyn_supertrait;
44mod drop_forget_useless;
45mod early;
46mod enum_intrinsics_non_enums;
47mod errors;
48mod expect;
49mod for_loops_over_fallibles;
50mod foreign_modules;
51mod if_let_rescope;
52mod impl_trait_overcaptures;
53mod internal;
54mod invalid_from_utf8;
55mod late;
56mod let_underscore;
57mod levels;
58mod lints;
59mod macro_expr_fragment_specifier_2024_migration;
60mod map_unit_fn;
61mod multiple_supertrait_upcastable;
62mod non_ascii_idents;
63mod non_fmt_panic;
64mod non_local_def;
65mod nonstandard_style;
66mod noop_method_call;
67mod opaque_hidden_inferred_bound;
68mod pass_by_value;
69mod passes;
70mod precedence;
71mod ptr_nulls;
72mod redundant_semicolon;
73mod reference_casting;
74mod shadowed_into_iter;
75mod static_mut_refs;
76mod traits;
77mod transmute;
78mod types;
79mod unit_bindings;
80mod unqualified_local_imports;
81mod unused;
82mod utils;
83
84use async_closures::AsyncClosureUsage;
85use async_fn_in_trait::AsyncFnInTrait;
86use autorefs::*;
87use builtin::*;
88use dangling::*;
89use default_could_be_derived::DefaultCouldBeDerived;
90use deref_into_dyn_supertrait::*;
91use drop_forget_useless::*;
92use enum_intrinsics_non_enums::EnumIntrinsicsNonEnums;
93use for_loops_over_fallibles::*;
94use if_let_rescope::IfLetRescope;
95use impl_trait_overcaptures::ImplTraitOvercaptures;
96use internal::*;
97use invalid_from_utf8::*;
98use let_underscore::*;
99use macro_expr_fragment_specifier_2024_migration::*;
100use map_unit_fn::*;
101use multiple_supertrait_upcastable::*;
102use non_ascii_idents::*;
103use non_fmt_panic::NonPanicFmt;
104use non_local_def::*;
105use nonstandard_style::*;
106use noop_method_call::*;
107use opaque_hidden_inferred_bound::*;
108use pass_by_value::*;
109use precedence::*;
110use ptr_nulls::*;
111use redundant_semicolon::*;
112use reference_casting::*;
113use rustc_hir::def_id::LocalModDefId;
114use rustc_middle::query::Providers;
115use rustc_middle::ty::TyCtxt;
116use shadowed_into_iter::ShadowedIntoIter;
117pub use shadowed_into_iter::{ARRAY_INTO_ITER, BOXED_SLICE_INTO_ITER};
118use static_mut_refs::*;
119use traits::*;
120use transmute::CheckTransmutes;
121use types::*;
122use unit_bindings::*;
123use unqualified_local_imports::*;
124use unused::*;
125
126#[rustfmt::skip]
127pub use builtin::{MissingDoc, SoftLints};
128pub use context::{CheckLintNameResult, EarlyContext, LateContext, LintContext, LintStore};
129pub use early::diagnostics::decorate_builtin_lint;
130pub use early::{EarlyCheckNode, check_ast_node};
131pub use late::{check_crate, late_lint_mod, unerased_lint_store};
132pub use levels::LintLevelsBuilder;
133pub use passes::{EarlyLintPass, LateLintPass};
134pub use rustc_session::lint::Level::{self, *};
135pub use rustc_session::lint::{
136 BufferedEarlyLint, FutureIncompatibleInfo, Lint, LintId, LintPass, LintVec,
137};
138
139rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
140
141pub fn provide(providers: &mut Providers) {
142 levels::provide(providers);
143 expect::provide(providers);
144 foreign_modules::provide(providers);
145 *providers = Providers { lint_mod, ..*providers };
146}
147
148fn lint_mod(tcx: TyCtxt<'_>, module_def_id: LocalModDefId) {
149 late_lint_mod(tcx, module_def_id, BuiltinCombinedModuleLateLintPass::new());
150}
151
152early_lint_methods!(
153 declare_combined_early_lint_pass,
154 [
155 pub BuiltinCombinedPreExpansionLintPass,
156 [
157 KeywordIdents: KeywordIdents,
158 ]
159 ]
160);
161
162early_lint_methods!(
163 declare_combined_early_lint_pass,
164 [
165 pub BuiltinCombinedEarlyLintPass,
166 [
167 UnusedParens: UnusedParens::default(),
168 UnusedBraces: UnusedBraces,
169 UnusedImportBraces: UnusedImportBraces,
170 UnsafeCode: UnsafeCode,
171 SpecialModuleName: SpecialModuleName,
172 AnonymousParameters: AnonymousParameters,
173 EllipsisInclusiveRangePatterns: EllipsisInclusiveRangePatterns::default(),
174 NonCamelCaseTypes: NonCamelCaseTypes,
175 DeprecatedAttr: DeprecatedAttr::default(),
176 WhileTrue: WhileTrue,
177 NonAsciiIdents: NonAsciiIdents,
178 IncompleteInternalFeatures: IncompleteInternalFeatures,
179 RedundantSemicolons: RedundantSemicolons,
180 UnusedDocComment: UnusedDocComment,
181 Expr2024: Expr2024,
182 Precedence: Precedence,
183 DoubleNegations: DoubleNegations,
184 ]
185 ]
186);
187
188late_lint_methods!(
189 declare_combined_late_lint_pass,
190 [
191 BuiltinCombinedModuleLateLintPass,
192 [
193 ForLoopsOverFallibles: ForLoopsOverFallibles,
194 DefaultCouldBeDerived: DefaultCouldBeDerived::default(),
195 DerefIntoDynSupertrait: DerefIntoDynSupertrait,
196 DropForgetUseless: DropForgetUseless,
197 ImproperCTypesDeclarations: ImproperCTypesDeclarations,
198 ImproperCTypesDefinitions: ImproperCTypesDefinitions,
199 InvalidFromUtf8: InvalidFromUtf8,
200 VariantSizeDifferences: VariantSizeDifferences,
201 PathStatements: PathStatements,
202 LetUnderscore: LetUnderscore,
203 InvalidReferenceCasting: InvalidReferenceCasting,
204 ImplicitAutorefs: ImplicitAutorefs,
205 UnusedResults: UnusedResults,
207 UnitBindings: UnitBindings,
208 NonUpperCaseGlobals: NonUpperCaseGlobals,
209 NonShorthandFieldPatterns: NonShorthandFieldPatterns,
210 UnusedAllocation: UnusedAllocation,
211 MissingCopyImplementations: MissingCopyImplementations,
213 PtrNullChecks: PtrNullChecks,
215 MutableTransmutes: MutableTransmutes,
216 TypeAliasBounds: TypeAliasBounds,
217 TrivialConstraints: TrivialConstraints,
218 TypeLimits: TypeLimits::new(),
219 NonSnakeCase: NonSnakeCase,
220 InvalidNoMangleItems: InvalidNoMangleItems,
221 UnreachablePub: UnreachablePub,
223 ExplicitOutlivesRequirements: ExplicitOutlivesRequirements,
224 InvalidValue: InvalidValue,
225 DerefNullPtr: DerefNullPtr,
226 UnstableFeatures: UnstableFeatures,
227 UngatedAsyncFnTrackCaller: UngatedAsyncFnTrackCaller,
228 ShadowedIntoIter: ShadowedIntoIter,
229 DropTraitConstraints: DropTraitConstraints,
230 DanglingPointers: DanglingPointers,
231 NonPanicFmt: NonPanicFmt,
232 NoopMethodCall: NoopMethodCall,
233 EnumIntrinsicsNonEnums: EnumIntrinsicsNonEnums,
234 InvalidAtomicOrdering: InvalidAtomicOrdering,
235 AsmLabels: AsmLabels,
236 OpaqueHiddenInferredBound: OpaqueHiddenInferredBound,
237 MultipleSupertraitUpcastable: MultipleSupertraitUpcastable,
238 MapUnitFn: MapUnitFn,
239 MissingDebugImplementations: MissingDebugImplementations,
240 MissingDoc: MissingDoc,
241 AsyncClosureUsage: AsyncClosureUsage,
242 AsyncFnInTrait: AsyncFnInTrait,
243 NonLocalDefinitions: NonLocalDefinitions::default(),
244 ImplTraitOvercaptures: ImplTraitOvercaptures,
245 IfLetRescope: IfLetRescope::default(),
246 StaticMutRefs: StaticMutRefs,
247 UnqualifiedLocalImports: UnqualifiedLocalImports,
248 CheckTransmutes: CheckTransmutes,
249 ]
250 ]
251);
252
253pub fn new_lint_store(internal_lints: bool) -> LintStore {
254 let mut lint_store = LintStore::new();
255
256 register_builtins(&mut lint_store);
257 if internal_lints {
258 register_internals(&mut lint_store);
259 }
260
261 lint_store
262}
263
264fn register_builtins(store: &mut LintStore) {
268 macro_rules! add_lint_group {
269 ($name:expr, $($lint:ident),*) => (
270 store.register_group(false, $name, None, vec![$(LintId::of($lint)),*]);
271 )
272 }
273
274 store.register_lints(&BuiltinCombinedPreExpansionLintPass::get_lints());
275 store.register_lints(&BuiltinCombinedEarlyLintPass::get_lints());
276 store.register_lints(&BuiltinCombinedModuleLateLintPass::get_lints());
277 store.register_lints(&foreign_modules::get_lints());
278 store.register_lints(&HardwiredLints::lint_vec());
279
280 add_lint_group!(
281 "nonstandard_style",
282 NON_CAMEL_CASE_TYPES,
283 NON_SNAKE_CASE,
284 NON_UPPER_CASE_GLOBALS
285 );
286
287 add_lint_group!(
288 "unused",
289 UNUSED_IMPORTS,
290 UNUSED_VARIABLES,
291 UNUSED_ASSIGNMENTS,
292 DEAD_CODE,
293 UNUSED_MUT,
294 UNREACHABLE_CODE,
295 UNREACHABLE_PATTERNS,
296 UNUSED_MUST_USE,
297 UNUSED_UNSAFE,
298 PATH_STATEMENTS,
299 UNUSED_ATTRIBUTES,
300 UNUSED_MACROS,
301 UNUSED_MACRO_RULES,
302 UNUSED_ALLOCATION,
303 UNUSED_DOC_COMMENTS,
304 UNUSED_EXTERN_CRATES,
305 UNUSED_FEATURES,
306 UNUSED_LABELS,
307 UNUSED_PARENS,
308 UNUSED_BRACES,
309 REDUNDANT_SEMICOLONS,
310 MAP_UNIT_FN
311 );
312
313 add_lint_group!("let_underscore", LET_UNDERSCORE_DROP, LET_UNDERSCORE_LOCK);
314
315 add_lint_group!(
316 "rust_2018_idioms",
317 BARE_TRAIT_OBJECTS,
318 UNUSED_EXTERN_CRATES,
319 ELLIPSIS_INCLUSIVE_RANGE_PATTERNS,
320 ELIDED_LIFETIMES_IN_PATHS,
321 EXPLICIT_OUTLIVES_REQUIREMENTS );
329
330 add_lint_group!("keyword_idents", KEYWORD_IDENTS_2018, KEYWORD_IDENTS_2024);
331
332 add_lint_group!(
333 "refining_impl_trait",
334 REFINING_IMPL_TRAIT_REACHABLE,
335 REFINING_IMPL_TRAIT_INTERNAL
336 );
337
338 add_lint_group!("deprecated_safe", DEPRECATED_SAFE_2024);
339
340 store.register_renamed("single_use_lifetime", "single_use_lifetimes");
342 store.register_renamed("elided_lifetime_in_path", "elided_lifetimes_in_paths");
343 store.register_renamed("bare_trait_object", "bare_trait_objects");
344 store.register_renamed("unstable_name_collision", "unstable_name_collisions");
345 store.register_renamed("unused_doc_comment", "unused_doc_comments");
346 store.register_renamed("async_idents", "keyword_idents_2018");
347 store.register_renamed("exceeding_bitshifts", "arithmetic_overflow");
348 store.register_renamed("redundant_semicolon", "redundant_semicolons");
349 store.register_renamed("overlapping_patterns", "overlapping_range_endpoints");
350 store.register_renamed("disjoint_capture_migration", "rust_2021_incompatible_closure_captures");
351 store.register_renamed("or_patterns_back_compat", "rust_2021_incompatible_or_patterns");
352 store.register_renamed("non_fmt_panic", "non_fmt_panics");
353 store.register_renamed("unused_tuple_struct_fields", "dead_code");
354 store.register_renamed("static_mut_ref", "static_mut_refs");
355 store.register_renamed("temporary_cstring_as_ptr", "dangling_pointers_from_temporaries");
356
357 const RUSTDOC_LINTS: &[&str] = &[
361 "broken_intra_doc_links",
362 "private_intra_doc_links",
363 "missing_crate_level_docs",
364 "missing_doc_code_examples",
365 "private_doc_tests",
366 "invalid_codeblock_attributes",
367 "invalid_html_tags",
368 "non_autolinks",
369 ];
370 for rustdoc_lint in RUSTDOC_LINTS {
371 store.register_ignored(rustdoc_lint);
372 }
373 store.register_removed(
374 "intra_doc_link_resolution_failure",
375 "use `rustdoc::broken_intra_doc_links` instead",
376 );
377 store.register_removed("rustdoc", "use `rustdoc::all` instead");
378
379 store.register_removed("unknown_features", "replaced by an error");
380 store.register_removed("unsigned_negation", "replaced by negate_unsigned feature gate");
381 store.register_removed("negate_unsigned", "cast a signed value instead");
382 store.register_removed("raw_pointer_derive", "using derive with raw pointers is ok");
383 store.register_group_alias("nonstandard_style", "bad_style");
385 store.register_removed("raw_pointer_deriving", "using derive with raw pointers is ok");
388 store.register_removed("drop_with_repr_extern", "drop flags have been removed");
389 store.register_removed("fat_ptr_transmutes", "was accidentally removed back in 2014");
390 store.register_removed("deprecated_attr", "use `deprecated` instead");
391 store.register_removed(
392 "transmute_from_fn_item_types",
393 "always cast functions before transmuting them",
394 );
395 store.register_removed(
396 "hr_lifetime_in_assoc_type",
397 "converted into hard error, see issue #33685 \
398 <https://github.com/rust-lang/rust/issues/33685> for more information",
399 );
400 store.register_removed(
401 "inaccessible_extern_crate",
402 "converted into hard error, see issue #36886 \
403 <https://github.com/rust-lang/rust/issues/36886> for more information",
404 );
405 store.register_removed(
406 "super_or_self_in_global_path",
407 "converted into hard error, see issue #36888 \
408 <https://github.com/rust-lang/rust/issues/36888> for more information",
409 );
410 store.register_removed(
411 "overlapping_inherent_impls",
412 "converted into hard error, see issue #36889 \
413 <https://github.com/rust-lang/rust/issues/36889> for more information",
414 );
415 store.register_removed(
416 "illegal_floating_point_constant_pattern",
417 "converted into hard error, see issue #36890 \
418 <https://github.com/rust-lang/rust/issues/36890> for more information",
419 );
420 store.register_removed(
421 "illegal_struct_or_enum_constant_pattern",
422 "converted into hard error, see issue #36891 \
423 <https://github.com/rust-lang/rust/issues/36891> for more information",
424 );
425 store.register_removed(
426 "lifetime_underscore",
427 "converted into hard error, see issue #36892 \
428 <https://github.com/rust-lang/rust/issues/36892> for more information",
429 );
430 store.register_removed(
431 "extra_requirement_in_impl",
432 "converted into hard error, see issue #37166 \
433 <https://github.com/rust-lang/rust/issues/37166> for more information",
434 );
435 store.register_removed(
436 "legacy_imports",
437 "converted into hard error, see issue #38260 \
438 <https://github.com/rust-lang/rust/issues/38260> for more information",
439 );
440 store.register_removed(
441 "coerce_never",
442 "converted into hard error, see issue #48950 \
443 <https://github.com/rust-lang/rust/issues/48950> for more information",
444 );
445 store.register_removed(
446 "resolve_trait_on_defaulted_unit",
447 "converted into hard error, see issue #48950 \
448 <https://github.com/rust-lang/rust/issues/48950> for more information",
449 );
450 store.register_removed(
451 "private_no_mangle_fns",
452 "no longer a warning, `#[no_mangle]` functions always exported",
453 );
454 store.register_removed(
455 "private_no_mangle_statics",
456 "no longer a warning, `#[no_mangle]` statics always exported",
457 );
458 store.register_removed("bad_repr", "replaced with a generic attribute input check");
459 store.register_removed(
460 "duplicate_matcher_binding_name",
461 "converted into hard error, see issue #57742 \
462 <https://github.com/rust-lang/rust/issues/57742> for more information",
463 );
464 store.register_removed(
465 "incoherent_fundamental_impls",
466 "converted into hard error, see issue #46205 \
467 <https://github.com/rust-lang/rust/issues/46205> for more information",
468 );
469 store.register_removed(
470 "legacy_constructor_visibility",
471 "converted into hard error, see issue #39207 \
472 <https://github.com/rust-lang/rust/issues/39207> for more information",
473 );
474 store.register_removed(
475 "legacy_directory_ownership",
476 "converted into hard error, see issue #37872 \
477 <https://github.com/rust-lang/rust/issues/37872> for more information",
478 );
479 store.register_removed(
480 "safe_extern_statics",
481 "converted into hard error, see issue #36247 \
482 <https://github.com/rust-lang/rust/issues/36247> for more information",
483 );
484 store.register_removed(
485 "parenthesized_params_in_types_and_modules",
486 "converted into hard error, see issue #42238 \
487 <https://github.com/rust-lang/rust/issues/42238> for more information",
488 );
489 store.register_removed(
490 "duplicate_macro_exports",
491 "converted into hard error, see issue #35896 \
492 <https://github.com/rust-lang/rust/issues/35896> for more information",
493 );
494 store.register_removed(
495 "nested_impl_trait",
496 "converted into hard error, see issue #59014 \
497 <https://github.com/rust-lang/rust/issues/59014> for more information",
498 );
499 store.register_removed("plugin_as_library", "plugins have been deprecated and retired");
500 store.register_removed(
501 "unsupported_naked_functions",
502 "converted into hard error, see RFC 2972 \
503 <https://github.com/rust-lang/rfcs/blob/master/text/2972-constrained-naked.md> for more information",
504 );
505 store.register_removed(
506 "mutable_borrow_reservation_conflict",
507 "now allowed, see issue #59159 \
508 <https://github.com/rust-lang/rust/issues/59159> for more information",
509 );
510 store.register_removed(
511 "const_err",
512 "converted into hard error, see issue #71800 \
513 <https://github.com/rust-lang/rust/issues/71800> for more information",
514 );
515 store.register_removed(
516 "safe_packed_borrows",
517 "converted into hard error, see issue #82523 \
518 <https://github.com/rust-lang/rust/issues/82523> for more information",
519 );
520 store.register_removed(
521 "unaligned_references",
522 "converted into hard error, see issue #82523 \
523 <https://github.com/rust-lang/rust/issues/82523> for more information",
524 );
525 store.register_removed(
526 "private_in_public",
527 "replaced with another group of lints, see RFC \
528 <https://rust-lang.github.io/rfcs/2145-type-privacy.html> for more information",
529 );
530 store.register_removed(
531 "invalid_alignment",
532 "converted into hard error, see PR #104616 \
533 <https://github.com/rust-lang/rust/pull/104616> for more information",
534 );
535 store.register_removed(
536 "implied_bounds_entailment",
537 "converted into hard error, see PR #117984 \
538 <https://github.com/rust-lang/rust/pull/117984> for more information",
539 );
540 store.register_removed(
541 "coinductive_overlap_in_coherence",
542 "converted into hard error, see PR #118649 \
543 <https://github.com/rust-lang/rust/pull/118649> for more information",
544 );
545 store.register_removed(
546 "illegal_floating_point_literal_pattern",
547 "no longer a warning, float patterns behave the same as `==`",
548 );
549 store.register_removed(
550 "nontrivial_structural_match",
551 "no longer needed, see RFC #3535 \
552 <https://rust-lang.github.io/rfcs/3535-constants-in-patterns.html> for more information",
553 );
554 store.register_removed(
555 "suspicious_auto_trait_impls",
556 "no longer needed, see issue #93367 \
557 <https://github.com/rust-lang/rust/issues/93367> for more information",
558 );
559 store.register_removed(
560 "const_patterns_without_partial_eq",
561 "converted into hard error, see RFC #3535 \
562 <https://rust-lang.github.io/rfcs/3535-constants-in-patterns.html> for more information",
563 );
564 store.register_removed(
565 "indirect_structural_match",
566 "converted into hard error, see RFC #3535 \
567 <https://rust-lang.github.io/rfcs/3535-constants-in-patterns.html> for more information",
568 );
569 store.register_removed(
570 "deprecated_cfg_attr_crate_type_name",
571 "converted into hard error, see issue #91632 \
572 <https://github.com/rust-lang/rust/issues/91632> for more information",
573 );
574 store.register_removed(
575 "pointer_structural_match",
576 "converted into hard error, see RFC #3535 \
577 <https://rust-lang.github.io/rfcs/3535-constants-in-patterns.html> for more information",
578 );
579 store.register_removed(
580 "box_pointers",
581 "it does not detect other kinds of allocations, and existed only for historical reasons",
582 );
583 store.register_removed(
584 "byte_slice_in_packed_struct_with_derive",
585 "converted into hard error, see issue #107457 \
586 <https://github.com/rust-lang/rust/issues/107457> for more information",
587 );
588 store.register_removed("writes_through_immutable_pointer", "converted into hard error");
589 store.register_removed(
590 "const_eval_mutable_ptr_in_final_value",
591 "partially allowed now, otherwise turned into a hard error",
592 );
593 store.register_removed(
594 "where_clauses_object_safety",
595 "converted into hard error, see PR #125380 \
596 <https://github.com/rust-lang/rust/pull/125380> for more information",
597 );
598 store.register_removed("unsupported_calling_conventions", "converted into hard error");
599 store.register_removed(
600 "cenum_impl_drop_cast",
601 "converted into hard error, \
602 see <https://github.com/rust-lang/rust/issues/73333> for more information",
603 );
604 store.register_removed(
605 "ptr_cast_add_auto_to_object",
606 "converted into hard error, see issue #127323 \
607 <https://github.com/rust-lang/rust/issues/127323> for more information",
608 );
609 store.register_removed(
610 "undefined_naked_function_abi",
611 "converted into hard error, see PR #139001 \
612 <https://github.com/rust-lang/rust/issues/139001> for more information",
613 );
614 store.register_removed(
615 "abi_unsupported_vector_types",
616 "converted into hard error, \
617 see <https://github.com/rust-lang/rust/issues/116558> for more information",
618 );
619}
620
621fn register_internals(store: &mut LintStore) {
622 store.register_lints(&LintPassImpl::lint_vec());
623 store.register_early_pass(|| Box::new(LintPassImpl));
624 store.register_lints(&DefaultHashTypes::lint_vec());
625 store.register_late_mod_pass(|_| Box::new(DefaultHashTypes));
626 store.register_lints(&QueryStability::lint_vec());
627 store.register_late_mod_pass(|_| Box::new(QueryStability));
628 store.register_lints(&TyTyKind::lint_vec());
629 store.register_late_mod_pass(|_| Box::new(TyTyKind));
630 store.register_lints(&TypeIr::lint_vec());
631 store.register_late_mod_pass(|_| Box::new(TypeIr));
632 store.register_lints(&Diagnostics::lint_vec());
633 store.register_late_mod_pass(|_| Box::new(Diagnostics));
634 store.register_lints(&BadOptAccess::lint_vec());
635 store.register_late_mod_pass(|_| Box::new(BadOptAccess));
636 store.register_lints(&PassByValue::lint_vec());
637 store.register_late_mod_pass(|_| Box::new(PassByValue));
638 store.register_lints(&SpanUseEqCtxt::lint_vec());
639 store.register_late_mod_pass(|_| Box::new(SpanUseEqCtxt));
640 store.register_lints(&SymbolInternStringLiteral::lint_vec());
641 store.register_late_mod_pass(|_| Box::new(SymbolInternStringLiteral));
642 store.register_group(
647 false,
648 "rustc::internal",
649 None,
650 vec![
651 LintId::of(DEFAULT_HASH_TYPES),
652 LintId::of(POTENTIAL_QUERY_INSTABILITY),
653 LintId::of(UNTRACKED_QUERY_INFORMATION),
654 LintId::of(USAGE_OF_TY_TYKIND),
655 LintId::of(PASS_BY_VALUE),
656 LintId::of(LINT_PASS_IMPL_WITHOUT_MACRO),
657 LintId::of(USAGE_OF_QUALIFIED_TY),
658 LintId::of(NON_GLOB_IMPORT_OF_TYPE_IR_INHERENT),
659 LintId::of(USAGE_OF_TYPE_IR_INHERENT),
660 LintId::of(USAGE_OF_TYPE_IR_TRAITS),
661 LintId::of(BAD_OPT_ACCESS),
662 LintId::of(SPAN_USE_EQ_CTXT),
663 ],
664 );
665}
666
667#[cfg(test)]
668mod tests;