rust/compiler/rustc_lint/src
bors eb1a5c9bb3 Auto merge of #125077 - spastorino:add-new-fnsafety-enum2, r=jackh726
Rename Unsafe to Safety

Alternative to #124455, which is to just have one Safety enum to use everywhere, this opens the posibility of adding `ast::Safety::Safe` that's useful for unsafe extern blocks.

This leaves us today with:

```rust
enum ast::Safety {
    Unsafe(Span),
    Default,
    // Safe (going to be added for unsafe extern blocks)
}

enum hir::Safety {
    Unsafe,
    Safe,
}
```

We would convert from `ast::Safety::Default` into the right Safety level according the context.
2024-05-18 19:35:24 +00:00
..
context Add `on_unimplemented" typo suggestions 2024-05-15 00:49:33 +02:00
nonstandard_style
array_into_iter.rs Remove extern crate rustc_middle from numerous crates. 2024-04-29 14:50:45 +10:00
async_fn_in_trait.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
builtin.rs Auto merge of #125077 - spastorino:add-new-fnsafety-enum2, r=jackh726 2024-05-18 19:35:24 +00:00
context.rs Lift TraitRef into rustc_type_ir 2024-05-10 15:44:03 -04:00
deref_into_dyn_supertrait.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
drop_forget_useless.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
early.rs ast: Generalize item kind visiting 2024-04-25 22:49:58 +03:00
enum_intrinsics_non_enums.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
errors.rs Pass translation closure to add_to_diag_with() as reference 2024-04-21 07:45:03 +00:00
expect.rs Rename TyCtxt::emit_spanned_lint as TyCtxt::emit_node_span_lint. 2024-01-23 08:09:05 +11:00
for_loops_over_fallibles.rs Rename some ObligationCauseCode variants 2024-05-10 10:42:57 -04:00
foreign_modules.rs Rename Unsafe to Safety 2024-05-17 18:33:37 -03:00
hidden_unicode_codepoints.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
impl_trait_overcaptures.rs And finally add tests 2024-05-13 23:57:56 -04:00
internal.rs Allow multiple impl Into<{D,Subd}iagMessage> parameters in a function. 2024-03-11 16:42:10 +11:00
invalid_from_utf8.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
late.rs Avoid lots of hir::HirId{,Map,Set} qualifiers. 2024-04-16 16:29:15 +10:00
let_underscore.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
levels.rs Remove extern crate rustc_middle from numerous crates. 2024-04-29 14:50:45 +10:00
lib.rs Implement initial IMPL_TRAIT_OVERCAPTURES lint 2024-05-13 23:47:35 -04:00
lints.rs Adjust #[macro_export]/doctest help suggestion for non_local_defs lint 2024-05-01 16:57:20 +02:00
map_unit_fn.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
methods.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
multiple_supertrait_upcastable.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
non_ascii_idents.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
non_fmt_panic.rs Remove extern crate rustc_middle from numerous crates. 2024-04-29 14:50:45 +10:00
non_local_def.rs Use fewer origins when creating type variables. 2024-05-10 09:47:46 +10:00
nonstandard_style.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
noop_method_call.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
opaque_hidden_inferred_bound.rs split out AliasTy -> AliasTerm 2024-05-13 11:59:42 -04:00
pass_by_value.rs Auto merge of #124401 - oli-obk:some_hir_cleanups, r=cjgillot 2024-05-04 00:32:27 +00:00
passes.rs Rename {enter,exit}_lint_attrs to check_attributes{,_post} 2024-03-24 14:57:57 +00:00
ptr_nulls.rs Rename LintContext::emit_spanned_lint as LintContext::emit_span_lint. 2024-01-23 08:08:25 +11:00
redundant_semicolon.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
reference_casting.rs Handle Deref expressions in invalid_reference_casting 2024-05-10 12:33:07 -04:00
tests.rs refactor(rustc_lint): inline check_lint_name_cmdline 2023-08-30 17:35:07 +01:00
traits.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
types.rs Auto merge of #124747 - MasterAwesome:master, r=davidtwco 2024-05-06 00:55:49 +00:00
unit_bindings.rs Inline & delete Ty::new_unit, since it's just a field access 2024-05-02 17:49:23 +02:00
unused.rs Document the situation with unused_parens lint and braced macro calls 2024-05-11 15:49:03 -07:00