about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-01-03 14:22:37 +0000
committerGitHub <noreply@github.com>2022-01-03 14:22:37 +0000
commit1ba9a924d7b161c52e605e157ee16d582e4a8684 (patch)
tree21e6e262faed3177bb013596c4ffc3d04cd0c29b /src/test/codegen/src-hash-algorithm
parent120d76e0a3bd72dc70186830e0a1ca51cee5ac8b (diff)
parentb688d84a4b4e15575030b56940eb6b492214751b (diff)
downloadrust-1ba9a924d7b161c52e605e157ee16d582e4a8684.tar.gz
rust-1ba9a924d7b161c52e605e157ee16d582e4a8684.zip
Merge #11180
11180: minor: add missing test r=matklad a=matklad

This test kills the following mutant:

diff --git a/crates/mbe/src/tt_iter.rs b/crates/mbe/src/tt_iter.rs
index 9d2b1da9a..055d9a733 100644
--- a/crates/mbe/src/tt_iter.rs
+++ b/crates/mbe/src/tt_iter.rs
`@@` -134,7 +134,7 `@@` impl<'a> TtIter<'a> {
         self.inner = self.inner.as_slice()[res.len()..].iter();
         let res = match res.len() {
             1 => Some(res[0].cloned()),
-            0 => None,
+            // 0 => None,
             _ => Some(tt::TokenTree::Subtree(tt::Subtree {
                 delimiter: None,
                 token_trees: res.into_iter().map(|it| it.cloned()).collect(),

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions