Skip to content
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

Drop the [/] test output macro #5851

Merged
merged 2 commits into from
Aug 2, 2018
Merged

Drop the [/] test output macro #5851

merged 2 commits into from
Aug 2, 2018

Conversation

dwijnand
Copy link
Member

@dwijnand dwijnand commented Aug 2, 2018

Refs #5742

@rust-highfive
Copy link

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

Copy link
Member Author

@dwijnand dwijnand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surfacing the key changes

@@ -1290,7 +1290,6 @@ fn substitute_macros(input: &str) -> String {
("[SUMMARY]", " Summary"),
("[FIXING]", " Fixing"),
("[EXE]", if cfg!(windows) { ".exe" } else { "" }),
("[/]", if cfg!(windows) { "\\" } else { "/" }),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dropping the macro

@@ -831,6 +831,8 @@ impl Execs {
// Let's not deal with \r\n vs \n on windows...
let actual = actual.replace("\r", "");
let actual = actual.replace("\t", "<tab>");
// or / vs \
let actual = actual.replace("\\", "/");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the replacement

// Let's not deal with / vs \ (windows...)
let expected = expected.replace("\\", "/");
let mut actual: &str = &actual.replace("\\", "/");
let expected = substitute_macros(&expected);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change moved to here

@alexcrichton
Copy link
Member

@bors: r+

So much better!

@bors
Copy link
Collaborator

bors commented Aug 2, 2018

📌 Commit 5071b38 has been approved by alexcrichton

bors added a commit that referenced this pull request Aug 2, 2018
@bors
Copy link
Collaborator

bors commented Aug 2, 2018

⌛ Testing commit 5071b38 with merge 748cbea...

@bors
Copy link
Collaborator

bors commented Aug 2, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 748cbea to master...

@bors bors merged commit 5071b38 into rust-lang:master Aug 2, 2018
@dwijnand dwijnand deleted the slash-macro branch August 2, 2018 14:28
bors added a commit that referenced this pull request Aug 19, 2018
Remove backslash management in 2 tool_paths tests

With #5851 this is no longer necessary
@ehuss ehuss added this to the 1.29.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants