Skip to content

Commit

Permalink
Fix .gitattributes for test_data
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Jul 24, 2022
1 parent ee09dc5 commit 1bb63df
Show file tree
Hide file tree
Showing 4 changed files with 225 additions and 224 deletions.
3 changes: 2 additions & 1 deletion src/tools/rust-analyzer/.gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
* text=auto eol=lf

# git grep shouldn't match entries in this benchmark data
bench_data/** binary
crates/syntax/test_data/** -text eof=LF

# Older git versions try to fix line endings on images, this prevents it.
*.png binary
*.jpg binary
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
type Foo<'a> = &'a dyn Send + Sync;
type Foo = *const dyn Send + Sync;
type Foo = fn() -> dyn Send + 'static;
fn main() {
let b = (&a) as &dyn Add<Other, Output = Addable> + Other;
}
type Foo<'a> = &'a dyn Send + Sync;
type Foo = *const dyn Send + Sync;
type Foo = fn() -> dyn Send + 'static;
fn main() {
let b = (&a) as &dyn Add<Other, Output = Addable> + Other;
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const mut FOO: () = ();
const mut FOO: () = ();
Loading

0 comments on commit 1bb63df

Please sign in to comment.