about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/collect/generics_of.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-07-15 21:25:03 +0200
committerRalf Jung <post@ralfj.de>2024-07-15 22:05:45 +0200
commit9d9b55cd2b14bce066cef83d9d85ba798a2ba95c (patch)
tree4c05ea046f4e648b05469d35071345f30d21a0f2 /compiler/rustc_hir_analysis/src/collect/generics_of.rs
parentb286722878e18db29a7fbe672be7c4d3b02e8e4d (diff)
downloadrust-9d9b55cd2b14bce066cef83d9d85ba798a2ba95c.tar.gz
rust-9d9b55cd2b14bce066cef83d9d85ba798a2ba95c.zip
make invalid_type_param_default lint show up in cargo future-compat reports
and remove the feature gate that silenced the lint
Diffstat (limited to 'compiler/rustc_hir_analysis/src/collect/generics_of.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/collect/generics_of.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_hir_analysis/src/collect/generics_of.rs b/compiler/rustc_hir_analysis/src/collect/generics_of.rs
index 22d465c8e62..398a496a373 100644
--- a/compiler/rustc_hir_analysis/src/collect/generics_of.rs
+++ b/compiler/rustc_hir_analysis/src/collect/generics_of.rs
@@ -323,8 +323,6 @@ pub(super) fn generics_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Generics {
             if default.is_some() {
                 match allow_defaults {
                     Defaults::Allowed => {}
-                    Defaults::FutureCompatDisallowed
-                        if tcx.features().default_type_parameter_fallback => {}
                     Defaults::FutureCompatDisallowed => {
                         tcx.node_span_lint(
                             lint::builtin::INVALID_TYPE_PARAM_DEFAULT,