We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21078c1 commit 47fe696Copy full SHA for 47fe696
compiler/rustc_middle/src/ty/diagnostics.rs
@@ -54,7 +54,7 @@ impl<'tcx> TyS<'tcx> {
54
/// ADTs with no type arguments.
55
pub fn is_simple_text(&self) -> bool {
56
match self.kind() {
57
- Adt(_, substs) => substs.types().next().is_none() && substs.consts().next().is_none(),
+ Adt(_, substs) => substs.non_erasable_generics().next().is_none(),
58
Ref(_, ty, _) => ty.is_simple_text(),
59
_ => self.is_simple_ty(),
60
}
0 commit comments