Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 2dc5b60

Browse files
committed
Auto merge of rust-lang#71410 - JohnTitor:rollup-vh6dut5, r=JohnTitor
Rollup of 7 pull requests Successful merges: - rust-lang#70998 (Suggest `-> impl Trait` and `-> Box<dyn Trait>` on fn that doesn't return) - rust-lang#71236 (Remove unused rustc_serialize::hex module) - rust-lang#71366 (Use assoc int consts3) - rust-lang#71372 (Fix #! (shebang) stripping account space issue) - rust-lang#71384 (Fix stage0.txt version number comment) - rust-lang#71390 (Fix incorrect description of E0690) - rust-lang#71399 (Clean up E0554 explanation) Failed merges: r? @ghost
2 parents 70f4f32 + 66eaead commit 2dc5b60

File tree

46 files changed

+209
-324
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+209
-324
lines changed

Cargo.lock

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3577,7 +3577,6 @@ version = "0.0.0"
35773577
dependencies = [
35783578
"log",
35793579
"rustc_ast",
3580-
"rustc_data_structures",
35813580
"rustc_span",
35823581
]
35833582

@@ -3594,7 +3593,6 @@ dependencies = [
35943593
"rustc_session",
35953594
"rustc_span",
35963595
"serialize",
3597-
"smallvec 1.0.0",
35983596
]
35993597

36003598
[[package]]
@@ -3666,7 +3664,6 @@ dependencies = [
36663664
"rustc_hir",
36673665
"rustc_incremental",
36683666
"rustc_index",
3669-
"rustc_metadata",
36703667
"rustc_middle",
36713668
"rustc_session",
36723669
"rustc_span",
@@ -3809,7 +3806,6 @@ version = "0.0.0"
38093806
dependencies = [
38103807
"rustc_ast",
38113808
"rustc_ast_pretty",
3812-
"rustc_data_structures",
38133809
"rustc_hir",
38143810
"rustc_span",
38153811
"rustc_target",
@@ -3879,7 +3875,6 @@ dependencies = [
38793875
"rustc_expand",
38803876
"rustc_hir",
38813877
"rustc_incremental",
3882-
"rustc_infer",
38833878
"rustc_lint",
38843879
"rustc_metadata",
38853880
"rustc_middle",
@@ -3924,7 +3919,6 @@ dependencies = [
39243919
"rustc_feature",
39253920
"rustc_hir",
39263921
"rustc_index",
3927-
"rustc_infer",
39283922
"rustc_middle",
39293923
"rustc_session",
39303924
"rustc_span",
@@ -3986,10 +3980,8 @@ dependencies = [
39863980
"backtrace",
39873981
"bitflags",
39883982
"byteorder",
3989-
"jobserver",
39903983
"log",
39913984
"measureme",
3992-
"parking_lot 0.10.2",
39933985
"polonius-engine",
39943986
"rustc-rayon",
39953987
"rustc-rayon-core",
@@ -4023,7 +4015,6 @@ dependencies = [
40234015
"polonius-engine",
40244016
"rustc_apfloat",
40254017
"rustc_ast",
4026-
"rustc_ast_pretty",
40274018
"rustc_attr",
40284019
"rustc_data_structures",
40294020
"rustc_errors",
@@ -4079,7 +4070,6 @@ dependencies = [
40794070
"rustc_lexer",
40804071
"rustc_session",
40814072
"rustc_span",
4082-
"smallvec 1.0.0",
40834073
"unicode-normalization",
40844074
]
40854075

@@ -4092,10 +4082,8 @@ dependencies = [
40924082
"rustc_attr",
40934083
"rustc_data_structures",
40944084
"rustc_errors",
4095-
"rustc_feature",
40964085
"rustc_hir",
40974086
"rustc_index",
4098-
"rustc_infer",
40994087
"rustc_middle",
41004088
"rustc_session",
41014089
"rustc_span",
@@ -4143,7 +4131,6 @@ dependencies = [
41434131
"rustc_data_structures",
41444132
"rustc_errors",
41454133
"rustc_index",
4146-
"rustc_macros",
41474134
"rustc_span",
41484135
"serialize",
41494136
"smallvec 1.0.0",
@@ -4296,10 +4283,8 @@ dependencies = [
42964283
"rustc_data_structures",
42974284
"rustc_hir",
42984285
"rustc_infer",
4299-
"rustc_macros",
43004286
"rustc_middle",
43014287
"rustc_span",
4302-
"rustc_target",
43034288
"rustc_trait_selection",
43044289
"smallvec 1.0.0",
43054290
]

src/libcore/iter/adapters/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use crate::cmp;
22
use crate::fmt;
33
use crate::intrinsics;
44
use crate::ops::{Add, AddAssign, Try};
5-
use crate::usize;
65

76
use super::{from_fn, LoopState};
87
use super::{DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator, TrustedLen};

src/libcore/iter/range.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use crate::convert::TryFrom;
22
use crate::mem;
33
use crate::ops::{self, Add, Sub, Try};
4-
use crate::usize;
54

65
use super::{FusedIterator, TrustedLen};
76

src/libcore/iter/sources.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use crate::fmt;
22
use crate::marker;
3-
use crate::usize;
43

54
use super::{FusedIterator, TrustedLen};
65

src/libcore/num/f32.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ impl f32 {
265265
#[stable(feature = "rust1", since = "1.0.0")]
266266
#[inline]
267267
pub fn is_infinite(self) -> bool {
268-
self.abs_private() == INFINITY
268+
self.abs_private() == Self::INFINITY
269269
}
270270

271271
/// Returns `true` if this number is neither infinite nor `NaN`.
@@ -287,7 +287,7 @@ impl f32 {
287287
pub fn is_finite(self) -> bool {
288288
// There's no need to handle NaN separately: if self is NaN,
289289
// the comparison is not true, exactly as desired.
290-
self.abs_private() < INFINITY
290+
self.abs_private() < Self::INFINITY
291291
}
292292

293293
/// Returns `true` if the number is neither zero, infinite,

src/libcore/num/f64.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ impl f64 {
264264
#[stable(feature = "rust1", since = "1.0.0")]
265265
#[inline]
266266
pub fn is_infinite(self) -> bool {
267-
self.abs_private() == INFINITY
267+
self.abs_private() == Self::INFINITY
268268
}
269269

270270
/// Returns `true` if this number is neither infinite nor `NaN`.
@@ -286,7 +286,7 @@ impl f64 {
286286
pub fn is_finite(self) -> bool {
287287
// There's no need to handle NaN separately: if self is NaN,
288288
// the comparison is not true, exactly as desired.
289-
self.abs_private() < INFINITY
289+
self.abs_private() < Self::INFINITY
290290
}
291291

292292
/// Returns `true` if the number is neither zero, infinite,

src/libcore/num/flt2dec/decoder.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
use crate::num::dec2flt::rawfp::RawFloat;
44
use crate::num::FpCategory;
5-
use crate::{f32, f64};
65

76
/// Decoded unsigned finite value, such that:
87
///

src/libcore/num/flt2dec/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ functions.
123123
)]
124124

125125
pub use self::decoder::{decode, DecodableFloat, Decoded, FullDecoded};
126-
use crate::i16;
127126

128127
pub mod decoder;
129128
pub mod estimator;

src/libcore/num/int_macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ macro_rules! int_module {
1414
concat!("The smallest value that can be represented by this integer type.
1515
Use [`", stringify!($T), "::MIN", "`](../../std/primitive.", stringify!($T), ".html#associatedconstant.MIN) instead."),
1616
#[$attr]
17-
pub const MIN: $T = $T::min_value();
17+
pub const MIN: $T = $T::MIN;
1818
}
1919

2020
doc_comment! {
2121
concat!("The largest value that can be represented by this integer type.
2222
Use [`", stringify!($T), "::MAX", "`](../../std/primitive.", stringify!($T), ".html#associatedconstant.MAX) instead."),
2323
#[$attr]
24-
pub const MAX: $T = $T::max_value();
24+
pub const MAX: $T = $T::MAX;
2525
}
2626
)
2727
}

src/libcore/slice/memchr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn repeat_byte(b: u8) -> usize {
3434
#[cfg(not(target_pointer_width = "16"))]
3535
#[inline]
3636
fn repeat_byte(b: u8) -> usize {
37-
(b as usize) * (crate::usize::MAX / 255)
37+
(b as usize) * (usize::MAX / 255)
3838
}
3939

4040
/// Returns the first index matching the byte `x` in `text`.

0 commit comments

Comments
 (0)