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

Commit 925741c

Browse files
committed
Do not use tab characters
1 parent c7837a1 commit 925741c

File tree

6 files changed

+30
-29
lines changed

6 files changed

+30
-29
lines changed

.github/workflows/main.yml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v2
1111

12+
- name: tab character check
13+
run: if grep -P '\t' -r ices/* fixed/*; then exit 1; fi
14+
1215
- name: Build
1316
uses: ./.github/actions/build
1417

LICENSE-APACHE

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.
193193
You may obtain a copy of the License at
194194

195-
http://www.apache.org/licenses/LICENSE-2.0
195+
http://www.apache.org/licenses/LICENSE-2.0
196196

197197
Unless required by applicable law or agreed to in writing, software
198198
distributed under the License is distributed on an "AS IS" BASIS,

fixed/94629.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
impl A for B {
2-
fn a(){{{{({{{ExprKind::Use {});(]),}}
3-
fn b() {c!(<> []))}
2+
fn a(){{{{({{{ExprKind::Use {});(]),}}
3+
fn b() {c!(<> []))}
44

55
#[rustc_legacy_const_generics(2)]
66
pub unsafe fn c<>() -> () {}

ices/93022.rs

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![recursion_limit="256000"]
1+
#![recursion_limit = "256000"]
22

33
struct Z;
44
struct S<T>(T);
@@ -36,7 +36,7 @@ type x16 = SumOf<x8, x8>;
3636
type x32 = SumOf<x16, x16>;
3737
type x64 = SumOf<x32, x32>;
3838
type x128 = SumOf<x64, x64>;
39-
//
39+
//
4040

4141
trait NumericValue {
4242
const VALUE: usize;
@@ -48,13 +48,11 @@ impl NumericValue for Z {
4848

4949
impl<N> NumericValue for S<N>
5050
where
51-
N: NumericValue,
51+
N: NumericValue,
5252
{
5353
const VALUE: usize = N::VALUE + 1;
54-
}
54+
}
5555

5656
const value: usize = <x16 as NumericValue>::VALUE;
5757

58-
fn main() {
59-
60-
}
58+
fn main() {}

ices/93946.sh

+10-10
Original file line numberDiff line numberDiff line change
@@ -26,35 +26,35 @@ cat > subcrate/src/lib.rs <<'EOF'
2626
#[derive(PartialEq, Eq)]
2727
pub struct Const {}
2828
impl Const {
29-
pub const fn func(self) -> usize { 1 }
29+
pub const fn func(self) -> usize { 1 }
3030
}
3131
3232
pub struct Foo<const C: Const>
3333
where
34-
[(); C.func()]: Sized
34+
[(); C.func()]: Sized
3535
{}
3636
3737
pub trait Bar {
38-
type Associated;
39-
fn associated() -> Self::Associated;
38+
type Associated;
39+
fn associated() -> Self::Associated;
4040
}
4141
4242
impl<const C: Const> Bar for Foo<C>
4343
where
44-
[(); C.func()]: Sized
44+
[(); C.func()]: Sized
4545
{
46-
type Associated = [(); C.func()];
47-
fn associated() -> Self::Associated {
48-
[(); C.func()]
49-
}
46+
type Associated = [(); C.func()];
47+
fn associated() -> Self::Associated {
48+
[(); C.func()]
49+
}
5050
}
5151
EOF
5252

5353
cat > src/main.rs <<'EOF'
5454
use subcrate::*;
5555
5656
fn main() {
57-
<Foo::<{Const{}}> as Bar>::associated();
57+
<Foo::<{Const{}}> as Bar>::associated();
5858
}
5959
EOF
6060

ices/96818.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
macro_rules! values {
2-
($($token:ident($value:literal) $(as $inner:ty)? => $attr:meta,)*) => {
3-
#[derive(Debug)]
4-
pub enum TokenKind {
5-
$(
6-
#[$attr]
7-
$token $($inner)? = $value,
8-
)*
9-
}
10-
};
2+
($($token:ident($value:literal) $(as $inner:ty)? => $attr:meta,)*) => {
3+
#[derive(Debug)]
4+
pub enum TokenKind {
5+
$(
6+
#[$attr]
7+
$token $($inner)? = $value,
8+
)*
9+
}
10+
};
1111
}
1212

1313
values!(STRING(1) as (String) => cfg(test),);

0 commit comments

Comments
 (0)