We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7eb9337 + 37b8837 commit b7aa03aCopy full SHA for b7aa03a
src/librustc/middle/ty.rs
@@ -4571,7 +4571,7 @@ pub fn lookup_struct_fields(cx: &ctxt, did: ast::DefId) -> Vec<field_ty> {
4571
if did.krate == ast::LOCAL_CRATE {
4572
// We store the fields which are syntactically in each struct in cx. So
4573
// we have to walk the inheritance chain of the struct to get all the
4574
- // structs (explicit and inherited) for a struct. If this is expensive
+ // fields (explicit and inherited) for a struct. If this is expensive
4575
// we could cache the whole list of fields here.
4576
let struct_fields = cx.struct_fields.borrow();
4577
let mut results: SmallVector<&[field_ty]> = SmallVector::zero();
0 commit comments