-
Notifications
You must be signed in to change notification settings - Fork 901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
discard trailing blank comments #2925
Conversation
Block comments like below were not properly supported: /* something here but it doesn't start with a star */ because of the line that didn't start with a star.
The It seems related to #2917 Diff in /home/yfful/documents/code/rustfmt/packed_simd/src/api/from/from_vector.rs at line 18:
}
// FIXME: `Into::into` is not inline, but due to
- // the blanket impl in `std`, which is not
- // marked `default`, we cannot override it here with
- // specialization.
- /*
- impl Into<$id> for $source {
- #[inline]
- fn into(self) -> $id {
- unsafe { simd_cast(self) }
- }
- }
- */
+ // the blanket impl in `std`, which is not
+ // marked `default`, we cannot override it here with
+ // specialization.
+ /*
+ impl Into<$id> for $source {
+ #[inline]
+ fn into(self) -> $id {
+ unsafe { simd_cast(self) }
+ }
+ }
+ */
test_if!{
$test_tt:
Diff in /home/yfful/documents/code/rustfmt/packed_simd/src/api/reductions/min_max.rs at line 41:
target_arch = "arm",
all(target_arch = "x86", not(target_feature = "sse2")),
target_arch = "powerpc64",
- ),))]
+ )))]
{
use llvm::simd_reduce_min;
let v: $ielem_ty = unsafe { simd_reduce_min(self.0) }; |
Is this a new issue? It doesn't look like it should be caused by your patch, but if it is, it would be good not to and to add this as a test. |
And the code looks great, thanks! |
With the latest packed_simd master, I don't see anymore differences in It is interesting to note that the indentation of that commented code increased already in a previous commit rust-lang/packed_simd@0cab9e9#diff-a70485da056880cc8fbf5e1bd3cb33fa Although that indentation shift is not due it seems to a change in this PR, should I open an issue for it though ? The indentation should not increase and stay at the The problem with Diff in /home/yfful/documents/code/rustfmt/rand/src/rngs/entropy.rs at line 290:
all(target_arch = "wasm32", feature = "stdweb"),
all(target_arch = "wasm32", feature = "wasm-bindgen"),
),
-)))]
+),))]
type Os = NoSource;
type Custom = NoSource; |
Yes please! |
close #539