rust/compiler/rustc_lint/src
Gurinder Singh a2486dba3b Fix missing leading space in suggestion
For a local pattern with no space between `let` and `(` e.g.:

  let(_a) = 3;

we were previously suggesting this illegal code:

  let_a =3;

After this change the suggestion will instead be:

  let _a =3;

(Note the space after `let`)
2023-10-30 19:04:55 +05:30
..
nonstandard_style mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
array_into_iter.rs make the reason: field mandatory for @future_incompatible lints 2023-09-22 08:59:32 +02:00
async_fn_in_trait.rs Don't ICE when encountering unresolved regions in fully_resolve 2023-10-18 20:39:29 +00:00
builtin.rs Adjust imports 2023-10-20 15:52:57 +00:00
context.rs Make ty::print::Printer take &mut self instead of self 2023-10-21 11:33:05 +02:00
deref_into_dyn_supertrait.rs Make sure that non-pretty-printing usages are using the correct elaborator 2023-10-18 03:05:38 +00:00
drop_forget_useless.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
early.rs diagnostics: avoid wrong unused_parens on x as (T) < y 2023-08-31 20:14:49 -07:00
enum_intrinsics_non_enums.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
errors.rs feat(rustc_lint): make CheckLintName respect lint level 2023-08-30 19:24:44 +01:00
expect.rs Rename ACTIVE_FEATURES as UNSTABLE_FEATURES. 2023-10-16 08:17:23 +11:00
for_loops_over_fallibles.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
foreign_modules.rs s/Generator/Coroutine/ 2023-10-20 21:10:38 +00:00
hidden_unicode_codepoints.rs migrate: hidden_unicode_codepoints.rs 2023-01-09 17:07:25 -05:00
internal.rs tweak pass description and fix lint fail post-rebase 2023-10-16 19:50:31 -07:00
invalid_from_utf8.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
late.rs Auto merge of #115825 - cjgillot:expr-field-lint, r=compiler-errors 2023-09-14 06:29:23 +00:00
let_underscore.rs Fix typos in compiler 2023-04-10 22:02:52 +02:00
levels.rs Rename ACTIVE_FEATURES as UNSTABLE_FEATURES. 2023-10-16 08:17:23 +11:00
lib.rs basic lint v2 implemented 2023-10-16 19:47:33 -07:00
lints.rs s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
map_unit_fn.rs Fix #109152, fix the scenario that we may can not get span of func 2023-03-15 14:07:39 +08:00
methods.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
multiple_supertrait_upcastable.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
non_ascii_idents.rs Reword confusable idents lint 2023-08-04 16:46:08 +00:00
non_fmt_panic.rs Use Option::is_some_and and Result::is_ok_and in the compiler 2023-05-24 14:20:41 +00:00
nonstandard_style.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
noop_method_call.rs Fix noop_method_call detection for new diagnostic items 2023-09-28 08:22:59 -04:00
opaque_hidden_inferred_bound.rs non_lifetime_binders: fix ICE in lint opaque-hidden-inferred-bound 2023-10-03 13:59:59 +02:00
pass_by_value.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
passes.rs Remove rustc_lint_defs::lint_array 2023-09-28 23:01:25 +02:00
ptr_nulls.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
redundant_semicolon.rs refactor: cleanup 2023-01-09 18:57:02 -05:00
reference_casting.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
tests.rs refactor(rustc_lint): inline check_lint_name_cmdline 2023-08-30 17:35:07 +01:00
traits.rs make comments less cryptic 2023-09-06 12:09:29 +03:00
types.rs s/Generator/Coroutine/ 2023-10-20 21:10:38 +00:00
unused.rs Fix missing leading space in suggestion 2023-10-30 19:04:55 +05:30