rust/compiler/rustc_lint/src
Matthias Krüger b5b460ddf1
Rollup merge of #136760 - chenyukang:fix-overflowing-int-lint-crash, r=oli-obk
Fix unwrap error in overflowing int literal

Fixes #136675

it's maybe `negative` only from [check_lit](526e3288fe/compiler/rustc_lint/src/types.rs (L546)), in this scenario the fields in `TypeLimits` is none.

r? ``@oli-obk``
2025-02-09 19:44:53 +01:00
..
early Convert two rustc_middle::lint functions to Span methods. 2025-02-02 13:57:34 +11:00
nonstandard_style mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
types Rollup merge of #136760 - chenyukang:fix-overflowing-int-lint-crash, r=oli-obk 2025-02-09 19:44:53 +01:00
async_closures.rs Stabilize async closures 2024-12-13 00:04:56 +00: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 Rustfmt 2025-02-08 22:12:13 +00:00
context.rs Rustfmt 2025-02-08 22:12:13 +00:00
dangling.rs Use identifiers in diagnostics more often 2025-01-27 01:23:34 +00:00
default_could_be_derived.rs Provide structured suggestion for impl Default of type where all fields have defaults 2024-12-31 18:06:01 +00:00
deref_into_dyn_supertrait.rs Rustfmt 2025-02-08 22:12:13 +00:00
drop_forget_useless.rs Rustfmt 2025-02-08 22:12:13 +00:00
early.rs fix empty after lint on impl/trait items 2025-02-07 16:47:26 +01:00
enum_intrinsics_non_enums.rs Rustfmt 2025-02-08 22:12:13 +00:00
errors.rs Add warn(unreachable_pub) to rustc_lint. 2024-08-27 15:24:11 +10:00
expect.rs Run clippy --fix for unnecessary_map_or lint 2025-01-19 19:15:00 +00:00
for_loops_over_fallibles.rs Rustfmt 2025-02-08 22:12:13 +00:00
foreign_modules.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
hidden_unicode_codepoints.rs Rustfmt 2025-02-08 22:12:13 +00:00
if_let_rescope.rs Rustfmt 2025-02-08 22:12:13 +00:00
impl_trait_overcaptures.rs Rustfmt 2025-02-08 22:12:13 +00:00
internal.rs Rustfmt 2025-02-08 22:12:13 +00:00
invalid_from_utf8.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
late.rs Uniformly handle HIR literals in visitors and lints 2025-02-05 11:28:24 +00:00
let_underscore.rs Rustfmt 2025-02-08 22:12:13 +00:00
levels.rs Rollup merge of #134481 - estebank:unstable-lint-span, r=compiler-errors 2024-12-18 21:38:11 -05:00
lib.rs Rustfmt 2025-02-08 22:12:13 +00:00
lints.rs Rollup merge of #136114 - compiler-errors:more-idents, r=jieyouxu 2025-01-27 15:38:30 +01:00
macro_expr_fragment_specifier_2024_migration.rs Rename RefTokenTreeCursor. 2024-12-18 10:39:07 +11:00
map_unit_fn.rs Rustfmt 2025-02-08 22:12:13 +00:00
multiple_supertrait_upcastable.rs Compiler: Finalize dyn compatibility renaming 2025-01-26 21:20:31 +01:00
non_ascii_idents.rs Rustfmt 2025-02-08 22:12:13 +00:00
non_fmt_panic.rs Rustfmt 2025-02-08 22:12:13 +00:00
non_local_def.rs Rustfmt 2025-02-08 22:12:13 +00:00
nonstandard_style.rs Rustfmt 2025-02-08 22:12:13 +00:00
noop_method_call.rs Rustfmt 2025-02-08 22:12:13 +00:00
opaque_hidden_inferred_bound.rs Rustfmt 2025-02-08 22:12:13 +00:00
pass_by_value.rs Rustfmt 2025-02-08 22:12:13 +00:00
passes.rs fix empty after lint on impl/trait items 2025-02-07 16:47:26 +01: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 Rustfmt 2025-02-08 22:12:13 +00:00
reference_casting.rs move fn is_item_raw to TypingEnv 2024-11-19 18:06:20 +01:00
shadowed_into_iter.rs Rustfmt 2025-02-08 22:12:13 +00:00
static_mut_refs.rs Rustfmt 2025-02-08 22:12:13 +00:00
tests.rs update cfg(bootstrap) 2025-01-08 21:26:39 +01:00
traits.rs Rustfmt 2025-02-08 22:12:13 +00:00
types.rs Rollup merge of #136760 - chenyukang:fix-overflowing-int-lint-crash, r=oli-obk 2025-02-09 19:44:53 +01:00
unit_bindings.rs Rustfmt 2025-02-08 22:12:13 +00:00
unqualified_local_imports.rs Update unstable lint docs to include required feature attributes 2025-01-12 19:31:05 +05:30
unused.rs Rustfmt 2025-02-08 22:12:13 +00:00