Skip to content

Commit 8d91abc

Browse files
authored
Rollup merge of rust-lang#62788 - fakenine:normalize_use_of_backticks_compiler_messages_p9, r=Centril
normalize use of backticks in compiler messages for libcore/ptr rust-lang#60532
2 parents c8c401a + 886fb21 commit 8d91abc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/libcore/ptr/unique.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ use crate::ptr::NonNull;
2626
/// Unlike `*mut T`, `Unique<T>` is covariant over `T`. This should always be correct
2727
/// for any type which upholds Unique's aliasing requirements.
2828
#[unstable(feature = "ptr_internals", issue = "0",
29-
reason = "use NonNull instead and consider PhantomData<T> \
30-
(if you also use #[may_dangle]), Send, and/or Sync")]
29+
reason = "use `NonNull` instead and consider `PhantomData<T>` \
30+
(if you also use `#[may_dangle]`), `Send`, and/or `Sync`")]
3131
#[doc(hidden)]
3232
#[repr(transparent)]
3333
#[rustc_layout_scalar_valid_range_start(1)]

src/test/ui/feature-gate/issue-49983-see-issue-0.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync
1+
error[E0658]: use of unstable library feature 'ptr_internals': use `NonNull` instead and consider `PhantomData<T>` (if you also use `#[may_dangle]`), `Send`, and/or `Sync`
22
--> $DIR/issue-49983-see-issue-0.rs:4:30
33
|
44
LL | #[allow(unused_imports)] use core::ptr::Unique;

0 commit comments

Comments
 (0)