Skip to content

Commit

Permalink
Add helper function to suggest multiple constraints
Browse files Browse the repository at this point in the history
Add `rustc_middle::ty::suggest_constraining_type_params` that suggests
adding multiple constraints.

`suggest_constraining_type_param` now just forwards params to this new
function.
  • Loading branch information
WaffleLapkin committed Mar 1, 2022
1 parent 97cde9f commit 4c7fb9e
Show file tree
Hide file tree
Showing 2 changed files with 236 additions and 163 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_middle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
#![feature(nonzero_ops)]
#![feature(unwrap_infallible)]
#![feature(decl_macro)]
#![feature(drain_filter)]
#![recursion_limit = "512"]
#![allow(rustc::potential_query_instability)]

Expand Down
Loading

0 comments on commit 4c7fb9e

Please sign in to comment.