1
Fork 0
rust/compiler/rustc_lint/src
Jacob Pratt 25dc4d0394
Rollup merge of #132732 - gavincrawford:as_ptr_attribute, r=Urgau
Use attributes for `dangling_pointers_from_temporaries` lint

Checking for dangling pointers by function name isn't ideal, and leaves out certain pointer-returning methods that don't follow the `as_ptr` naming convention. Using an attribute for this lint cleans things up and allows more thorough coverage of other methods, such as `UnsafeCell::get()`.
2024-11-20 01:54:24 -05:00
..
context Reserve guarded string literals (RFC 3593) 2024-10-08 18:21:16 -06:00
nonstandard_style
types compiler: Depend on rustc_abi in rustc_lint 2024-10-27 23:59:31 -07:00
async_closures.rs docs: Enable required feature for 'closure_returning_async_block' lint 2024-09-14 10:43:26 +02:00
async_fn_in_trait.rs nightly feature tracking: get rid of the per-feature bool fields 2024-10-23 09:14:41 +01:00
builtin.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
context.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
dangling.rs Correct comments concerning updated dangling pointer lint 2024-11-19 10:05:24 -07:00
deref_into_dyn_supertrait.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
drop_forget_useless.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
early.rs Change rustc_lint 2024-11-12 13:50:03 -03:00
enum_intrinsics_non_enums.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
errors.rs Add warn(unreachable_pub) to rustc_lint. 2024-08-27 15:24:11 +10:00
expect.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
for_loops_over_fallibles.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
foreign_modules.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
hidden_unicode_codepoints.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
if_let_rescope.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
impl_trait_overcaptures.rs Recurse into APITs in impl_trait_overcaptures 2024-11-11 20:53:08 +00:00
internal.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
invalid_from_utf8.rs
late.rs Do not filter empty passes & Make CTFE Clippy into lintless pass 2024-11-05 15:27:09 +01:00
let_underscore.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
levels.rs Auto merge of #125116 - blyxyas:ignore-allowed-lints-final, r=cjgillot 2024-10-26 16:37:43 +00:00
lib.rs Auto merge of #128985 - GrigorenkoPV:instantly-dangling-pointer, r=Urgau 2024-10-29 00:24:07 +00:00
lints.rs Prefer pub(super) in unreachable_pub lint suggestion 2024-11-04 19:09:40 +01:00
macro_expr_fragment_specifier_2024_migration.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
map_unit_fn.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
multiple_supertrait_upcastable.rs Compiler: Rename "object safe" to "dyn compatible" 2024-09-25 13:26:48 +02:00
non_ascii_idents.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
non_fmt_panic.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
non_local_def.rs Also treat impl definition parent as transparent regarding modules 2024-11-01 16:07:02 +01:00
nonstandard_style.rs ty::KContainer -> ty::AssocItemContainer::K 2024-11-04 04:45:52 +00:00
noop_method_call.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
opaque_hidden_inferred_bound.rs Remap impl-trait lifetimes on HIR instead of AST lowering. 2024-10-30 16:18:50 +00:00
pass_by_value.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
passes.rs Auto merge of #125116 - blyxyas:ignore-allowed-lints-final, r=cjgillot 2024-10-26 16:37:43 +00:00
precedence.rs Temporarily switch ambiguous_negative_literals lint to allow 2024-07-31 19:36:47 +02:00
ptr_nulls.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
redundant_semicolon.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
reference_casting.rs Use bool in favor of Option<()> for diagnostics 2024-08-21 01:31:11 -04:00
shadowed_into_iter.rs Move COGNITIVE_COMPLEXITY to use macro again 2024-10-21 19:27:34 +02:00
static_mut_refs.rs Fix #131977 parens mangled in shared mut static lint suggestion 2024-10-24 03:34:37 +00:00
tail_expr_drop_order.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
tests.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
traits.rs Represent TraitBoundModifiers as distinct parts in HIR 2024-10-22 19:48:44 +00:00
types.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
unit_bindings.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
unqualified_local_imports.rs add unqualified_local_imports lint 2024-09-23 11:57:28 +02:00
unused.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00