Skip to content

Commit 59a2ea3

Browse files
committed
Remove changes from tools
1 parent 858b821 commit 59a2ea3

File tree

4 files changed

+0
-9
lines changed

4 files changed

+0
-9
lines changed

src/tools/clippy/clippy_lints/src/attrs/mixed_attributes_style.rs

-5
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ enum SimpleAttrKind {
1515
}
1616

1717
impl From<&AttrKind> for SimpleAttrKind {
18-
/// Convert an `AttrKind` to a `SimpleAttrKind`,
19-
/// if it's a `DocComment` then `Doc` is returned with no conversion.
20-
///
21-
/// ## Cost
22-
/// If `AttrKind` is `DocComment` it's free, however if it's `Normal` there is heap allocation
2318
fn from(value: &AttrKind) -> Self {
2419
match value {
2520
AttrKind::Normal(attr) => {

src/tools/miri/src/concurrency/thread.rs

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ impl Idx for ThreadId {
8080
}
8181

8282
impl From<ThreadId> for u64 {
83-
/// Return inner `u32` converted to `u64`.
8483
fn from(t: ThreadId) -> Self {
8584
t.0.into()
8685
}

src/tools/miri/src/concurrency/vector_clock.rs

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ impl Idx for VectorIdx {
3434
}
3535

3636
impl From<u32> for VectorIdx {
37-
/// Create new `VectorIdx` with the inner id of `u32`.
3837
#[inline]
3938
fn from(id: u32) -> Self {
4039
Self(id)

src/tools/miri/src/shims/io_error.rs

-2
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@ impl From<io::Error> for IoError {
2020
}
2121

2222
impl From<io::ErrorKind> for IoError {
23-
/// Convert a `io::ErrorKind` to a `io::Error` then wrap in `HostError`.
2423
fn from(value: io::ErrorKind) -> Self {
2524
IoError::HostError(value.into())
2625
}
2726
}
2827

2928
impl From<Scalar> for IoError {
30-
/// Create a `Raw` `IoError` with a `Scalar`.
3129
fn from(value: Scalar) -> Self {
3230
IoError::Raw(value)
3331
}

0 commit comments

Comments
 (0)