Skip to content

Commit 9f0461c

Browse files
committed
Reordered attribute and comments
1 parent 8aaf7a5 commit 9f0461c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

compiler/rustc_middle/src/ty/instance.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ impl<'tcx> fmt::Display for Instance<'tcx> {
341341
}
342342

343343
impl<'tcx> Instance<'tcx> {
344-
/// Creates a new instance of type `InstanceDef::Item`, with appropiate `def_id` and `args` set.
344+
/// Creates a new instance of type `InstanceDef::Item`, with appropiate `def_id` and `args` set.
345345
pub fn new(def_id: DefId, args: GenericArgsRef<'tcx>) -> Instance<'tcx> {
346346
assert!(
347347
!args.has_escaping_bound_vars(),
@@ -365,8 +365,8 @@ impl<'tcx> Instance<'tcx> {
365365
Instance::new(def_id, args)
366366
}
367367

368-
#[inline]
369368
/// Returns the `def_id` of this instance.
369+
#[inline]
370370
pub fn def_id(&self) -> DefId {
371371
self.def.def_id()
372372
}
@@ -847,7 +847,7 @@ impl UnusedGenericParams {
847847
bitset.set_range(0..amount);
848848
Self(bitset)
849849
}
850-
/// Creates a new [`UnusedGenericParams`] where all generic pameters are set as used.
850+
/// Creates a new [`UnusedGenericParams`] where all generic pameters are set as used.
851851
pub fn new_all_used() -> Self {
852852
Self(FiniteBitSet::new_empty())
853853
}

compiler/rustc_middle/src/ty/sty.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ impl<'tcx> PolyFnSig<'tcx> {
13991399
pub fn abi(&self) -> abi::Abi {
14001400
self.skip_binder().abi
14011401
}
1402-
1402+
14031403
pub fn is_fn_trait_compatible(&self) -> bool {
14041404
matches!(
14051405
self.skip_binder(),
@@ -2331,7 +2331,7 @@ impl<'tcx> Ty<'tcx> {
23312331
pub fn is_slice(self) -> bool {
23322332
matches!(self.kind(), Slice(_))
23332333
}
2334-
/// Checks if this type is a slice or a reference/pointer to a slice.
2334+
/// Checks if this type is a slice or a reference/pointer to a slice.
23352335
#[inline]
23362336
pub fn is_array_slice(self) -> bool {
23372337
match self.kind() {
@@ -2345,7 +2345,7 @@ impl<'tcx> Ty<'tcx> {
23452345
pub fn is_array(self) -> bool {
23462346
matches!(self.kind(), Array(..))
23472347
}
2348-
2348+
23492349
#[inline]
23502350
pub fn is_simd(self) -> bool {
23512351
match self.kind() {
@@ -2512,7 +2512,7 @@ impl<'tcx> Ty<'tcx> {
25122512
pub fn is_numeric(self) -> bool {
25132513
self.is_integral() || self.is_floating_point()
25142514
}
2515-
/// Checks if this type is a signed intiger.
2515+
/// Checks if this type is a signed intiger.
25162516
#[inline]
25172517
pub fn is_signed(self) -> bool {
25182518
matches!(self.kind(), Int(_))

compiler/rustc_target/src/abi/call/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ impl RiscvInterruptKind {
729729

730730
/// Metadata describing how the arguments to a native function
731731
/// should be passed in order to respect the native ABI.
732-
///
732+
///
733733
/// Signature contained within this function does not have to match the one present in MIR.
734734
/// Certain attributtes, like `#[track_caller]` can introduce addtional arguments, which are present in [`FnAbi`], but not in [`rustc_middle::ty::FnSig`].
735735
/// This difference is not relevant in most cases, but should still be kept in mind.

0 commit comments

Comments
 (0)