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 74b6d29 commit b618cdbCopy full SHA for b618cdb
compiler/rustc_middle/src/ty/mod.rs
@@ -2188,9 +2188,9 @@ impl<'tcx> TyCtxt<'tcx> {
2188
2189
/// Gets the attributes of a definition.
2190
///
2191
- /// Note that attributes which are be relevant while
2192
- /// the current local crate are not stored in the crate metadata
2193
- /// and therefore cannot be accessed outside of that crate.
+ /// Note that attributes which are only relevant for the current
+ /// crate are not stored in the crate metadata and therefore cannot
+ /// be accessed outside of that crate.
2194
pub fn get_attrs(self, did: DefId) -> Attributes<'tcx> {
2195
if let Some(did) = did.as_local() {
2196
self.hir().attrs(self.hir().local_def_id_to_hir_id(did))
0 commit comments