Skip to content

Commit 53686b9

Browse files
committed
Satisfy tidy
1 parent 9e88b48 commit 53686b9

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/liballoc/raw_vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl<T> RawVec<T, Global> {
6060
/// `#[rustc_force_min_const_fn]` attribute which requires conformance
6161
/// with `min_const_fn` but does not necessarily allow calling it in
6262
/// `stable(...) const fn` / user code not enabling `foo` when
63-
/// `#[rustc_const_unstable(feature = "foo", ..)]` is present.
63+
/// `#[rustc_const_unstable(feature = "foo", issue = "01234")]` is present.
6464
pub const NEW: Self = Self::new();
6565

6666
/// Creates the biggest possible `RawVec` (on the system heap)

src/libcore/intrinsics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! In order to make an intrinsic usable at compile-time, one needs to copy the implementation
1212
//! from https://github.com/rust-lang/miri/blob/master/src/shims/intrinsics.rs to
1313
//! `librustc_mir/interpret/intrinsics.rs` and add a
14-
//! `#[rustc_const_unstable(feature = "foo2", issue = "01234")]` to the intrinsic.
14+
//! `#[rustc_const_unstable(feature = "foo", issue = "01234")]` to the intrinsic.
1515
//!
1616
//! If an intrinsic is supposed to be used from a `const fn` with a `rustc_const_stable` attribute,
1717
//! the intrinsic's attribute must be `rustc_const_stable`, too. Such a change should not be done

src/librustc_mir/transform/check_consts/ops.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,10 @@ impl NonConstOp for Panic {
285285
pub struct RawPtrComparison;
286286
impl NonConstOp for RawPtrComparison {
287287
fn emit_error(&self, ccx: &ConstCx<'_, '_>, span: Span) {
288-
let mut err = ccx.tcx.sess.struct_span_err(
289-
span,
290-
"pointers cannot be reliably compared during const eval.",
291-
);
288+
let mut err = ccx
289+
.tcx
290+
.sess
291+
.struct_span_err(span, "pointers cannot be reliably compared during const eval.");
292292
err.note(
293293
"see issue #53020 <https://github.com/rust-lang/rust/issues/53020> \
294294
for more information",
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
fn main() {}
22

33
// unconst and bad, will thus error in miri
4-
const X: bool = unsafe { &1 as *const i32 == &2 as *const i32 }; //~ ERROR cannot be reliably compared
4+
const X: bool = unsafe { &1 as *const i32 == &2 as *const i32 }; //~ ERROR cannot be reliably
55
// unconst and bad, will thus error in miri
6-
const X2: bool = unsafe { 42 as *const i32 == 43 as *const i32 }; //~ ERROR cannot be reliably compared
6+
const X2: bool = unsafe { 42 as *const i32 == 43 as *const i32 }; //~ ERROR cannot be reliably

0 commit comments

Comments
 (0)