diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-08-06 21:29:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-06 21:29:32 +0200 |
| commit | 12d1b173fb4a125eb89637a25b193981be1b639e (patch) | |
| tree | 6fde41d15ede0327c67f3e268cee689c08216577 /tests/coverage/branch/lazy-boolean.cov-map | |
| parent | 094b893f777db2a152ba478fb9b8d54f6d91bb4f (diff) | |
| parent | 02ea38cfff9b07be2366fb76bcd2f24ddb589df2 (diff) | |
| download | rust-12d1b173fb4a125eb89637a25b193981be1b639e.tar.gz rust-12d1b173fb4a125eb89637a25b193981be1b639e.zip | |
Rollup merge of #144977 - fmease:fortify-param-default-checks, r=compiler-errors
Fortify generic param default checks * Hard-reject instead of lint-reject type param defaults in generic assoc consts (GACs) (feature: `generic_const_items`). * In https://github.com/rust-lang/rust/pull/113522, I explicitly handled the free const item case and forgot about the assoc const one. * This led rustc to assume the default of emitting the deny-by-default lint `invalid_type_param_default`. * GCIs are unstable, thus we're not bound by backward compat * Hard-reject instead of lint-reject type param defaults in foreign items. * We already hard-reject generic params on foreign items, so this isn't a breaking change. * There's no reason why we need to lint-reject. * Refactor the way we determine where generic param defaults are allowed: * Don't default to emitting lint `invalid_type_param_defaults` for nodes that aren't explicitly handled but instead panic. * This would've caught my GAC oversight from above much earlier via fuzzing * Prevents us from accidentally stabilizing more invalid type param defaults in the future * Streamline the phrasing of the diagnostic
Diffstat (limited to 'tests/coverage/branch/lazy-boolean.cov-map')
0 files changed, 0 insertions, 0 deletions
