-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Sync from rust-lang/rust
#12871
Merged
Merged
Sync from rust-lang/rust
#12871
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
5f3f428
Don't run slow tests in Rust CI, only RA CI
fasterthanlime 0bffdf2
Disable all source-gen tests at compile time
fasterthanlime b351e11
Move cfg attrs up to the mod definitions to disable sourcegen
fasterthanlime 20eb2dd
Small fixups
jyn514 74998e4
Fix .gitattributes for test_data
fasterthanlime ff31785
hir-def tests: sort results before comparing, since FxHashSet iterati…
fasterthanlime d8c0d88
Sort in DefMap::dump, since HashMap iteration order isn't defined
fasterthanlime 56c369d
Sort when iterating through CrateGraph
fasterthanlime dfe8449
Make macros test order-resistant
fasterthanlime 0d04e63
Merge remote-tracking branch 'origin/master' into sync-from-rust-2
fasterthanlime dc94050
revert nightly rustfmt formatting that accidentally slipped in
fasterthanlime File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a fun story! The short answer it: it caused bors to fail to merge the
rust-lang/rust
subtree PR.The longer story is: that change was introduced in #2166 - but it never did what was intended.
eof
is not a gitattribute setting.eol
is, but even that line usedeol
, it still wouldn't do anything, because of-text
. So by mistake, 3 files were treated as binary, and checked out with CRLF line endings (those were the ones bors choked on).After removing this line from
.gitattribute
, I re-added the folder to git, removed it from disk and usedgit restore
to write it with the proper line endings. The relevant commit is here: rust-lang/rust@1bb63dfThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just did a fresh clone of that branch from Windows and ran
cargo test
with the latest stable, no issues whatsoever.I'm still convinced #2166 wasn't needed, as explained here: #2166 (comment)