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.
1 parent d299baf commit 37b8837Copy full SHA for 37b8837
src/librustc/middle/ty.rs
@@ -4603,7 +4603,7 @@ pub fn lookup_struct_fields(cx: &ctxt, did: ast::DefId) -> Vec<field_ty> {
4603
if did.krate == ast::LOCAL_CRATE {
4604
// We store the fields which are syntactically in each struct in cx. So
4605
// we have to walk the inheritance chain of the struct to get all the
4606
- // structs (explicit and inherited) for a struct. If this is expensive
+ // fields (explicit and inherited) for a struct. If this is expensive
4607
// we could cache the whole list of fields here.
4608
let struct_fields = cx.struct_fields.borrow();
4609
let mut results: SmallVector<&[field_ty]> = SmallVector::zero();
0 commit comments