]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #82274 - andersk:test-unwrap, r=Mark-Simulacrum
authorDylan DPC <dylan.dpc@gmail.com>
Fri, 19 Feb 2021 01:49:13 +0000 (02:49 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Feb 2021 01:49:13 +0000 (02:49 +0100)
commit36a348bdc085543c4f6d3cf27b9ddd156c950e2e
treef08a2fc9dd3079148301e2bcd0186e8730a59dc5
parentd9bc16cf368f1a8701295ed83f0337461acd6963
parent1605af015c493c4800be9b56d7eb8d759f9a7d3c
Rollup merge of #82274 - andersk:test-unwrap, r=Mark-Simulacrum

libtest: Fix unwrap panic on duplicate TestDesc

It is possible for different tests to collide to the same `TestDesc` when macros are involved. That is a bug, but it didn’t cause a panic until #81367. For now, change the code to ignore this problem.

Fixes #81852.

This will need to be applied to `beta` too.
library/test/src/lib.rs