Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Fixes for rust tests #2503

Merged
merged 1 commit into from
Jul 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.facebook.buck.features.rust;

import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.either;
import static org.junit.Assert.assertThat;

import com.facebook.buck.testutil.ProcessResult;
Expand Down Expand Up @@ -96,7 +97,8 @@ public void rustLibraryCheckWarning() throws IOException {
"rust.rustc_check_flags=-Dwarnings --cfg \"feature=\\\"warning\\\"\"",
"//messenger:messenger#check")
.getStderr(),
containsString("error: method is never used: `unused`"));
either(containsString("error: method is never used: `unused`"))
.or(containsString("error: associated function is never used: `unused`")));
}

@Test
Expand Down