]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_monomorphize/src/polymorphize.rs
Rollup merge of #101573 - lcnr:param-kind-ord, r=BoxyUwU
[rust.git] / compiler / rustc_monomorphize / src / polymorphize.rs
index 88f8e24fbd529fa119d873cddbf636a3fb1dea02..98156a94ec4b4c1f11dc6c146a8d439f4dbb55a2 100644 (file)
@@ -33,7 +33,6 @@ pub fn provide(providers: &mut Providers) {
 ///
 /// Returns a bitset where bits representing unused parameters are set (`is_empty` indicates all
 /// parameters are used).
-#[instrument(level = "debug", skip(tcx))]
 fn unused_generic_params<'tcx>(
     tcx: TyCtxt<'tcx>,
     instance: ty::InstanceDef<'tcx>,
@@ -171,6 +170,7 @@ fn mark_used_by_default_parameters<'tcx>(
         | DefKind::AnonConst
         | DefKind::InlineConst
         | DefKind::OpaqueTy
+        | DefKind::ImplTraitPlaceholder
         | DefKind::Field
         | DefKind::LifetimeParam
         | DefKind::GlobalAsm
@@ -216,11 +216,6 @@ fn emit_unused_generic_params_error<'tcx>(
             if unused_parameters.contains(param.index).unwrap_or(false) {
                 debug!(?param);
                 let def_span = tcx.def_span(param.def_id);
-                // ðŸ¤” The docs say
-                //
-                //     Any attribute applied to a Vec<T> will be repeated for each element of the vector.
-                //
-                // But they don't say what template variable to use to substitute each value into the message!?
                 param_spans.push(def_span);
                 param_names.push(param.name.to_string());
             }