Auto merge of #87195 - yaahc:move-assert_matches-again, r=oli-obk
rename assert_matches module Fixes nightly breakage introduced in https://github.com/rust-lang/rust/pull/86947
This commit is contained in:
commit
0cd12d649e
7 changed files with 11 additions and 11 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#![feature(assert_matches)]
|
||||
|
||||
use std::assert::assert_matches;
|
||||
use std::assert_matches::assert_matches;
|
||||
|
||||
fn main() {
|
||||
assert_matches!(1 + 1, 3, "1 + 1 definitely should be 3");
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#![feature(assert_matches)]
|
||||
|
||||
use std::assert::assert_matches;
|
||||
use std::assert_matches::assert_matches;
|
||||
|
||||
fn main() {
|
||||
assert!(matches!((), ()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue