Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4fd600d

Browse files
folkertdevtraviscross
andauthored
Apply suggestions from code review
Co-authored-by: Travis Cross <tc@traviscross.com>
1 parent 428ef41 commit 4fd600d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

‎compiler/rustc_codegen_gcc/src/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl<'gcc, 'tcx> StaticCodegenMethods for CodegenCx<'gcc, 'tcx> {
8282
global.to_rvalue().set_type(val_llty);
8383
}
8484

85-
// NOTE: alignment from attributes has already been applied to the allocation.
85+
// NOTE: Alignment from attributes has already been applied to the allocation.
8686
set_global_alignment(self, global, alloc.align);
8787

8888
global.global_set_initializer_rvalue(value);

‎compiler/rustc_codegen_llvm/src/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ impl<'ll> CodegenCx<'ll, '_> {
453453
new_g
454454
};
455455

456-
// NOTE: alignment from attributes has already been applied to the allocation.
456+
// NOTE: Alignment from attributes has already been applied to the allocation.
457457
set_global_alignment(self, g, alloc.align);
458458
llvm::set_initializer(g, v);
459459

‎compiler/rustc_const_eval/src/interpret/memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
953953

954954
// # Global allocations
955955
if let Some(global_alloc) = self.tcx.try_get_global_alloc(id) {
956-
// NOTE: static alignment from attributes has already been applied to the allocation.
956+
// NOTE: `static` alignment from attributes has already been applied to the allocation.
957957
let (size, align) = global_alloc.size_and_align(*self.tcx, self.typing_env);
958958
let mutbl = global_alloc.mutability(*self.tcx, self.typing_env);
959959
let kind = match global_alloc {

‎compiler/rustc_feature/src/unstable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ declare_features! (
632632
(unstable, simd_ffi, "1.0.0", Some(27731)),
633633
/// Allows specialization of implementations (RFC 1210).
634634
(incomplete, specialization, "1.7.0", Some(31844)),
635-
/// Allows using `#[rustc_align_static(...)]` on static items
635+
/// Allows using `#[rustc_align_static(...)]` on static items.
636636
(unstable, static_align, "CURRENT_RUSTC_VERSION", Some(146177)),
637637
/// Allows attributes on expressions and non-item statements.
638638
(unstable, stmt_expr_attributes, "1.6.0", Some(15701)),

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /