rust/compiler/rustc_passes/src
Matthias Krüger 46f390f047
Rollup merge of #128919 - Nadrieril:lint-query-leaks, r=cjgillot
Add an internal lint that warns when accessing untracked data

Some methods access data that is not tracked by the query system and should be used with caution. As suggested in https://github.com/rust-lang/rust/pull/128815#issuecomment-2275488683, in this PR I propose a lint (modeled on the `potential_query_instability` lint) that warns when using some specially-annotatted functions.

I can't tell myself if this lint would be that useful, compared to renaming `Steal::is_stolen` to `is_stolen_untracked`. This would depend on whether there are other functions we'd want to lint like this. So far it seems they're called `*_untracked`, which may be clear enough.

r? ``@oli-obk``
2024-09-05 19:43:46 +02:00
..
liveness Reformat use declarations. 2024-07-29 08:26:52 +10:00
abi_test.rs Shrink TyKind::FnPtr. 2024-08-09 14:33:25 +10:00
check_attr.rs Add an internal lint that warns when accessing untracked data 2024-09-03 19:14:19 +02:00
check_const.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
dead.rs chore: Fix typos in 'compiler' (batch 2) 2024-09-02 07:50:22 +02:00
debugger_visualizer.rs Add warn(unreachable_pub) to rustc_passes. 2024-08-29 20:18:40 +10:00
diagnostic_items.rs Add warn(unreachable_pub) to rustc_passes. 2024-08-29 20:18:40 +10:00
entry.rs rustc_passes: remove a redundant #[allow(rustc::untranslatable_diagnostic)] 2024-08-10 14:32:56 +03:00
errors.rs Revert "Auto merge of #127537 - veluca93:struct_tf, r=BoxyUwU" 2024-09-01 16:35:53 +02:00
hir_id_validator.rs Actually create ranged int types in the type system. 2024-04-08 12:02:19 +00:00
hir_stats.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
lang_items.rs Add warn(unreachable_pub) to rustc_passes. 2024-08-29 20:18:40 +10:00
layout_test.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
lib_features.rs Add warn(unreachable_pub) to rustc_passes. 2024-08-29 20:18:40 +10:00
lib.rs Add warn(unreachable_pub) to rustc_passes. 2024-08-29 20:18:40 +10:00
liveness.rs Add warn(unreachable_pub) to rustc_passes. 2024-08-29 20:18:40 +10:00
loops.rs Don't Suggest Labeling const and unsafe Blocks 2024-08-06 14:50:09 -04:00
naked_functions.rs Rollup merge of #127853 - folkertdev:naked-function-error-messages, r=bjorn3 2024-07-28 08:57:16 +02:00
reachable.rs Add warn(unreachable_pub) to rustc_passes. 2024-08-29 20:18:40 +10:00
stability.rs don't take reachability into account when warning about missing-const-stability 2024-08-31 15:11:48 +02:00
upvars.rs Add warn(unreachable_pub) to rustc_passes. 2024-08-29 20:18:40 +10:00
weak_lang_items.rs Add warn(unreachable_pub) to rustc_passes. 2024-08-29 20:18:40 +10:00