Skip to content

Commit 8565383

Browse files
committed
typos
1 parent 8a778ca commit 8565383

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

compiler/rustc_lint/messages.ftl

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ lint_builtin_incomplete_features = the feature `{$name}` is incomplete and may n
445445
.help = consider using `min_{$name}` instead, which is more stable and complete
446446
447447
lint_builtin_unpermitted_type_init_zeroed = the type `{$ty}` does not permit zero-initialization
448-
lint_builtin_unpermitted_type_init_unint = the type `{$ty}` does not permit being left uninitialized
448+
lint_builtin_unpermitted_type_init_uninit = the type `{$ty}` does not permit being left uninitialized
449449
450450
lint_builtin_unpermitted_type_init_label = this code causes undefined behavior when executed
451451
lint_builtin_unpermitted_type_init_label_suggestion = help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done

compiler/rustc_lint/src/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2628,7 +2628,7 @@ impl<'tcx> LateLintPass<'tcx> for InvalidValue {
26282628
if let Some(err) = with_no_trimmed_paths!(ty_find_init_error(cx, conjured_ty, init)) {
26292629
let msg = match init {
26302630
InitKind::Zeroed => fluent::lint_builtin_unpermitted_type_init_zeroed,
2631-
InitKind::Uninit => fluent::lint_builtin_unpermitted_type_init_unint,
2631+
InitKind::Uninit => fluent::lint_builtin_unpermitted_type_init_uninit,
26322632
};
26332633
let sub = BuiltinUnpermittedTypeInitSub { err };
26342634
cx.emit_spanned_lint(

library/core/src/ptr/const_ptr.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ impl<T: ?Sized> *const T {
132132
/// ```
133133
#[unstable(feature = "ptr_to_from_bits", issue = "91126")]
134134
#[deprecated(
135-
since = "1.67",
136-
note = "replaced by the `exposed_addr` method, or update your code \
135+
since = "1.67.0",
136+
note = "replaced by the `expose_addr` method, or update your code \
137137
to follow the strict provenance rules using its APIs"
138138
)]
139139
#[inline(always)]
@@ -161,7 +161,7 @@ impl<T: ?Sized> *const T {
161161
/// ```
162162
#[unstable(feature = "ptr_to_from_bits", issue = "91126")]
163163
#[deprecated(
164-
since = "1.67",
164+
since = "1.67.0",
165165
note = "replaced by the `ptr::from_exposed_addr` function, or update \
166166
your code to follow the strict provenance rules using its APIs"
167167
)]

library/core/src/ptr/mut_ptr.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ impl<T: ?Sized> *mut T {
138138
/// ```
139139
#[unstable(feature = "ptr_to_from_bits", issue = "91126")]
140140
#[deprecated(
141-
since = "1.67",
142-
note = "replaced by the `exposed_addr` method, or update your code \
141+
since = "1.67.0",
142+
note = "replaced by the `expose_addr` method, or update your code \
143143
to follow the strict provenance rules using its APIs"
144144
)]
145145
#[inline(always)]
@@ -167,7 +167,7 @@ impl<T: ?Sized> *mut T {
167167
/// ```
168168
#[unstable(feature = "ptr_to_from_bits", issue = "91126")]
169169
#[deprecated(
170-
since = "1.67",
170+
since = "1.67.0",
171171
note = "replaced by the `ptr::from_exposed_addr_mut` function, or \
172172
update your code to follow the strict provenance rules using its APIs"
173173
)]

tests/codegen/optimize-attr-1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// CHECK-LABEL: define{{.*}}i32 @nothing
1010
// CHECK-SAME: [[NOTHING_ATTRS:#[0-9]+]]
1111
// SIZE-OPT: ret i32 4
12-
// SPEEC-OPT: ret i32 4
12+
// SPEED-OPT: ret i32 4
1313
#[no_mangle]
1414
pub fn nothing() -> i32 {
1515
2 + 2

tests/ui/borrowck/borrowck-block-unint.stderr renamed to tests/ui/borrowck/borrowck-block-uninit.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0381]: used binding `x` isn't initialized
2-
--> $DIR/borrowck-block-unint.rs:4:11
2+
--> $DIR/borrowck-block-uninit.rs:4:11
33
|
44
LL | let x: isize;
55
| - binding declared here but left uninitialized

0 commit comments

Comments
 (0)