Skip to content

Commit c784a57

Browse files
committed
Fix typos and outdated comments
1 parent b1960a4 commit c784a57

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

compiler/rustc_attr_parsing/src/attributes/codegen_attrs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ impl<S: Stage> SingleAttributeParser<S> for RustcObjcClassParser {
169169
return None;
170170
};
171171
let Some(classname) = nv.value_as_str() else {
172-
// `#[rustc_objc_class = ...]` is expected to be used as an implementatioin detail
172+
// `#[rustc_objc_class = ...]` is expected to be used as an implementation detail
173173
// inside a standard library macro, but `cx.expected_string_literal` exposes too much.
174174
// Use a custom error message instead.
175175
cx.emit_err(ObjcClassExpectedStringLiteral { span: nv.value_span });
@@ -201,7 +201,7 @@ impl<S: Stage> SingleAttributeParser<S> for RustcObjcSelectorParser {
201201
return None;
202202
};
203203
let Some(methname) = nv.value_as_str() else {
204-
// `#[rustc_objc_selector = ...]` is expected to be used as an implementatioin detail
204+
// `#[rustc_objc_selector = ...]` is expected to be used as an implementation detail
205205
// inside a standard library macro, but `cx.expected_string_literal` exposes too much.
206206
// Use a custom error message instead.
207207
cx.emit_err(ObjcSelectorExpectedStringLiteral { span: nv.value_span });
@@ -283,7 +283,7 @@ impl<S: Stage> AttributeParser<S> for NakedParser {
283283
sym::instruction_set,
284284
sym::repr,
285285
sym::rustc_std_internal_symbol,
286-
// FIXME(#82232, #143834): temporarily renamed to mitigate `#[align]` nameres ambiguity
286+
// FIXME(#82232, #143834): temporarily renamed to mitigate `#[align]` name ambiguity
287287
sym::rustc_align,
288288
sym::rustc_align_static,
289289
// obviously compatible with self

compiler/rustc_hir/src/target.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
//! This module implements some validity checks for attributes.
2-
//! In particular it verifies that `#[inline]` and `#[repr]` attributes are
3-
//! attached to items that actually support them and if there are
4-
//! conflicts between multiple such attributes attached to the same
5-
//! item.
1+
//! This module lists attribute targets, with conversions from other types.
62
73
use std::fmt::{self, Display};
84

0 commit comments

Comments
 (0)