]> git.lizzy.rs Git - rust.git/commitdiff
normalize use of backticks in compiler messages for libcore/ptr
authorSamy Kacimi <samy.kacimi@protonmail.ch>
Thu, 18 Jul 2019 20:32:24 +0000 (22:32 +0200)
committerSamy Kacimi <samy.kacimi@protonmail.ch>
Thu, 18 Jul 2019 21:33:16 +0000 (23:33 +0200)
https://github.com/rust-lang/rust/issues/60532

src/libcore/ptr/unique.rs
src/test/ui/feature-gate/issue-49983-see-issue-0.stderr

index 5911518919e6da4ade3b029651849abcf3a00b62..d2517e51fc5a62801fa8c77018cb79196d532be7 100644 (file)
@@ -26,8 +26,8 @@
 /// Unlike `*mut T`, `Unique<T>` is covariant over `T`. This should always be correct
 /// for any type which upholds Unique's aliasing requirements.
 #[unstable(feature = "ptr_internals", issue = "0",
-           reason = "use NonNull instead and consider PhantomData<T> \
-                     (if you also use #[may_dangle]), Send, and/or Sync")]
+           reason = "use `NonNull` instead and consider `PhantomData<T>` \
+                     (if you also use `#[may_dangle]`), `Send`, and/or `Sync`")]
 #[doc(hidden)]
 #[repr(transparent)]
 #[rustc_layout_scalar_valid_range_start(1)]
index adbbebd40c57f4b0c3dc5129b039bd6f711ee702..314238a34df8695321784b16859753fa9b8cb0e0 100644 (file)
@@ -1,4 +1,4 @@
-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
+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`
   --> $DIR/issue-49983-see-issue-0.rs:4:30
    |
 LL | #[allow(unused_imports)] use core::ptr::Unique;