1
Fork 0
rust/compiler/rustc_lint/src
Nicholas Nethercote 358a603f11 Use token::Lit in ast::ExprKind::Lit.
Instead of `ast::Lit`.

Literal lowering now happens at two different times. Expression literals
are lowered when HIR is crated. Attribute literals are lowered during
parsing.

This commit changes the language very slightly. Some programs that used
to not compile now will compile. This is because some invalid literals
that are removed by `cfg` or attribute macros will no longer trigger
errors. See this comment for more details:
https://github.com/rust-lang/rust/pull/102944#issuecomment-1277476773
2022-11-16 09:41:28 +11:00
..
nonstandard_style mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
array_into_iter.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
builtin.rs Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
context.rs fix: lint against lint functions 2022-11-07 19:23:29 -05:00
early.rs Remove -Ztime option. 2022-10-06 15:49:44 +11:00
enum_intrinsics_non_enums.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
errors.rs Convert all #[suggestion_*] attributes to #[suggestion(style = "...")] 2022-10-26 15:04:09 +02:00
expect.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
for_loops_over_fallibles.rs Use TraitEngine less 2022-11-02 04:11:05 +00:00
hidden_unicode_codepoints.rs Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
internal.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
late.rs privacy: Rename "accessibility levels" to "effective visibilities" 2022-10-26 16:34:53 +04:00
let_underscore.rs Specify language of code comment to generate document 2022-11-14 22:55:50 +09:00
levels.rs Tweak signatures in rustc_middle::hir::map. 2022-11-11 10:10:16 +00:00
lib.rs fix: lint against lint functions 2022-11-07 19:23:29 -05:00
methods.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
non_ascii_idents.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
non_fmt_panic.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
nonstandard_style.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
noop_method_call.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
opaque_hidden_inferred_bound.rs Rollup merge of #103575 - Xiretza:suggestions-style-attr, r=davidtwco 2022-11-01 20:00:38 -04:00
pass_by_value.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
passes.rs Remove unused argument from check_mac_def. 2022-09-12 14:05:54 +10:00
redundant_semicolon.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
tests.rs Update to last upstream version 2021-07-08 17:14:28 +02:00
traits.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
types.rs Rollup merge of #104296 - compiler-errors:opaque-ty-ffi-normalization-cycle, r=lcnr 2022-11-15 10:44:10 +01:00
unused.rs Auto merge of #104293 - Manishearth:rollup-xj92d0k, r=Manishearth 2022-11-11 20:11:07 +00:00