1
Fork 0
rust/compiler/rustc_mir_dataflow/src
Ding Xiang Fei 297b618944
reduce false positives of tail-expr-drop-order from consumed values
take 2

open up coroutines

tweak the wordings

the lint works up until 2021

We were missing one case, for ADTs, which was
causing `Result` to yield incorrect results.

only include field spans with significant types

deduplicate and eliminate field spans

switch to emit spans to impl Drops

Co-authored-by: Niko Matsakis <nikomat@amazon.com>

collect drops instead of taking liveness diff

apply some suggestions and add explantory notes

small fix on the cache

let the query recurse through coroutine

new suggestion format with extracted variable name

fine-tune the drop span and messages

bugfix on runtime borrows

tweak message wording

filter out ecosystem types earlier

apply suggestions

clippy

check lint level at session level

further restrict applicability of the lint

translate bid into nop for stable mir

detect cycle in type structure
2024-11-20 20:53:11 +08:00
..
framework Remove ResultsVisitable. 2024-11-05 10:18:03 +11:00
impls reduce false positives of tail-expr-drop-order from consumed values 2024-11-20 20:53:11 +08:00
move_paths reduce false positives of tail-expr-drop-order from consumed values 2024-11-20 20:53:11 +08:00
debuginfo.rs Preserve DebugInfo in DeadStoreElimination. 2023-10-06 15:46:11 +00:00
drop_flag_effects.rs compiler: Add rustc_abi dependence to the compiler 2024-10-27 21:10:58 -07:00
elaborate_drops.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
errors.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
lib.rs Remove ResultsVisitable. 2024-11-05 10:18:03 +11:00
points.rs Remove ResultsVisitable. 2024-11-05 10:18:03 +11:00
rustc_peek.rs Remove Analysis::into_engine. 2024-10-30 09:41:46 +11:00
storage.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
un_derefer.rs Avoid unnecessary exports. 2023-11-23 14:06:57 +11:00
value_analysis.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00