rust/compiler/rustc_ty_utils/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
..
layout use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
abi.rs move fn is_item_raw to TypingEnv 2024-11-19 18:06:20 +01:00
assoc.rs ty::KContainer -> ty::AssocItemContainer::K 2024-11-04 04:45:52 +00:00
common_traits.rs move fn is_item_raw to TypingEnv 2024-11-19 18:06:20 +01:00
consts.rs compiler: Directly use rustc_abi in ty_utils 2024-11-03 13:38:47 -08:00
errors.rs Add warn(unreachable_pub) to rustc_ty_utils. 2024-09-03 08:50:33 +10:00
implied_bounds.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
instance.rs resolve_instance: stop relying on Reveal 2024-11-19 21:36:23 +01:00
layout.rs move fn is_item_raw to TypingEnv 2024-11-19 18:06:20 +01:00
lib.rs compiler: pre-move code for fixing enum layout ICEs 2024-10-20 02:09:22 -07:00
needs_drop.rs reduce false positives of tail-expr-drop-order from consumed values 2024-11-20 20:53:11 +08:00
opaque_types.rs Encode cross-crate opaque type origin 2024-10-31 01:35:13 +00:00
representability.rs Remove extern crate rustc_middle from rustc_ty_utils. 2024-05-13 08:20:18 +10:00
sig_types.rs Stop using a special inner body for the coroutine by-move body for async closures 2024-08-26 18:44:19 -04:00
structural_match.rs TypingMode 🤔 2024-10-29 17:01:24 +01:00
ty.rs ty::KContainer -> ty::AssocItemContainer::K 2024-11-04 04:45:52 +00:00