mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 05:51:58 +00:00
remove repetitive words
Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
parent
4d6e4260b2
commit
88c7b16e03
@ -709,7 +709,7 @@ impl<B: WriteBackendMethods> WorkItem<B> {
|
||||
fn desc(short: &str, _long: &str, name: &str) -> String {
|
||||
// The short label is three bytes, and is followed by a space. That
|
||||
// leaves 11 bytes for the CGU name. How we obtain those 11 bytes
|
||||
// depends on the the CGU name form.
|
||||
// depends on the CGU name form.
|
||||
//
|
||||
// - Non-incremental, e.g. `regex.f10ba03eb5ec7975-cgu.0`: the part
|
||||
// before the `-cgu.0` is the same for every CGU, so use the
|
||||
|
@ -116,7 +116,7 @@ pub struct WorkerLocal<T> {
|
||||
|
||||
// This is safe because the `deref` call will return a reference to a `T` unique to each thread
|
||||
// or it will panic for threads without an associated local. So there isn't a need for `T` to do
|
||||
// it's own synchronization. The `verify` method on `RegistryId` has an issue where the the id
|
||||
// it's own synchronization. The `verify` method on `RegistryId` has an issue where the id
|
||||
// can be reused, but `WorkerLocal` has a reference to `Registry` which will prevent any reuse.
|
||||
#[cfg(parallel_compiler)]
|
||||
unsafe impl<T: Send> Sync for WorkerLocal<T> {}
|
||||
|
@ -130,7 +130,7 @@ pub fn dot_prod_simd_4(a: &[f32], b: &[f32]) -> f32 {
|
||||
}
|
||||
|
||||
// This version allocates a single `XMM` register for accumulation, and the folds don't allocate on top of that.
|
||||
// Notice the the use of `mul_add`, which can do a multiply and an add operation ber iteration.
|
||||
// Notice the use of `mul_add`, which can do a multiply and an add operation ber iteration.
|
||||
pub fn dot_prod_simd_5(a: &[f32], b: &[f32]) -> f32 {
|
||||
a.array_chunks::<4>()
|
||||
.map(|&a| f32x4::from_array(a))
|
||||
|
@ -224,7 +224,7 @@ impl TestDesc {
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns None for ignored test or that that are just run, otherwise give a description of the type of test.
|
||||
/// Returns None for ignored test or tests that are just run, otherwise returns a description of the type of test.
|
||||
/// Descriptions include "should panic", "compile fail" and "compile".
|
||||
pub fn test_mode(&self) -> Option<&'static str> {
|
||||
if self.ignore {
|
||||
|
@ -2,7 +2,7 @@
|
||||
//! otherwise mutated. We also box items in the map. This means we can safely provide
|
||||
//! shared references into existing items in the `FxHashMap`, because they will not be dropped
|
||||
//! (from being removed) or moved (because they are boxed).
|
||||
//! The API is is completely tailored to what `memory.rs` needs. It is still in
|
||||
//! The API is completely tailored to what `memory.rs` needs. It is still in
|
||||
//! a separate file to minimize the amount of code that has to care about the unsafety.
|
||||
|
||||
use std::borrow::Borrow;
|
||||
|
Loading…
Reference in New Issue
Block a user