-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Make TyS::is_suggestable
check for non-suggestable types structually
#91898
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Make TyS::is_suggestable
check for non-suggestable types structually
#91898
Conversation
r? @cjgillot (rust-highfive has picked a reviewer for you, use r? to override) |
cc: @estebank, who might care about changes in diagnostic type annotations. |
fn generic_arg_is_suggestible(arg: GenericArg<'_>) -> bool { | ||
match arg.unpack() { | ||
GenericArgKind::Type(ty) => ty.is_suggestable(), | ||
_ => true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c457ee2
to
2215186
Compare
2215186
to
f29fb47
Compare
@bors r+ rollup |
📌 Commit f29fb47 has been approved by |
…askrgr Rollup of 7 pull requests Successful merges: - rust-lang#91880 (fix clippy::single_char_pattern perf findings) - rust-lang#91885 (Remove `in_band_lifetimes` from `rustc_codegen_ssa`) - rust-lang#91898 (Make `TyS::is_suggestable` check for non-suggestable types structually) - rust-lang#91915 (Add another regression test for unnormalized fn args with Self) - rust-lang#91916 (Fix a bunch of typos) - rust-lang#91918 (Constify `bool::then{,_some}`) - rust-lang#91920 (Use `tcx.def_path_hash` in `ExistentialPredicate.stable_cmp`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
I was sad to see some of the suggestions go away, so I created #91981 that builds on top of this one. |
Recover suggestions and useful information lost in previous PR Follow up to rust-lang#91898.
Not sure if I went overboard checking substs in dyn types, etc. Let me know if I should simplify this function.
Fixes #91832