]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #93400 - ChayimFriedman2:dont-suggest-using-const-with-bounds-unused...
authorMatthias Krüger <matthias.krueger@famsik.de>
Sat, 26 Feb 2022 06:52:41 +0000 (07:52 +0100)
committerGitHub <noreply@github.com>
Sat, 26 Feb 2022 06:52:41 +0000 (07:52 +0100)
Do not suggest using a const parameter when there are bounds on an unused type parameter

The user wrote the bound, so it's obvious they want a type.

1  2 
compiler/rustc_typeck/src/lib.rs

index 40904c1dfd63965ffbde0d85ac24dfe7c2528274,bbfe5295fe107f6ec9e1ad223120a7402968ec2b..f0289fd505a47c78997be0512d0a8344dd512c40
@@@ -68,8 -68,9 +68,9 @@@ This API is completely unstable and sub
  #![feature(slice_partition_dedup)]
  #![feature(control_flow_enum)]
  #![feature(hash_drain_filter)]
+ #![feature(once_cell)]
  #![recursion_limit = "256"]
 -#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
 +#![allow(rustc::potential_query_instability)]
  
  #[macro_use]
  extern crate tracing;