Skip to content

Commit 93b7aee

Browse files
committed
rename assert_matches module
1 parent 59d92bd commit 93b7aee

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

compiler/rustc_middle/src/ich/impls_syntax.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::ich::StableHashingContext;
66
use rustc_ast as ast;
77
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
88
use rustc_span::{BytePos, NormalizedPos, SourceFile};
9-
use std::assert::assert_matches;
9+
use std::assert_matches::assert_matches;
1010

1111
use smallvec::SmallVec;
1212

compiler/rustc_mir/src/interpret/memory.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//! integer. It is crucial that these operations call `check_align` *before*
77
//! short-circuiting the empty case!
88
9-
use std::assert::assert_matches;
9+
use std::assert_matches::assert_matches;
1010
use std::borrow::Cow;
1111
use std::collections::VecDeque;
1212
use std::convert::{TryFrom, TryInto};

library/core/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ mod macros;
184184
#[cfg(not(test))]
185185
#[unstable(feature = "assert_matches", issue = "82775")]
186186
/// Unstable module containing the unstable `assert_matches` macro.
187-
pub mod assert {
187+
pub mod assert_matches {
188188
#[unstable(feature = "assert_matches", issue = "82775")]
189189
pub use crate::macros::{assert_matches, debug_assert_matches};
190190
}

library/std/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,9 @@ pub use core::{
556556
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
557557
#[allow(deprecated)]
558558
pub use core::{
559-
asm, assert, cfg, column, compile_error, concat, concat_idents, env, file, format_args,
560-
format_args_nl, global_asm, include, include_bytes, include_str, line, llvm_asm, log_syntax,
561-
module_path, option_env, stringify, trace_macros,
559+
asm, assert, assert_matches, cfg, column, compile_error, concat, concat_idents, env, file,
560+
format_args, format_args_nl, global_asm, include, include_bytes, include_str, line, llvm_asm,
561+
log_syntax, module_path, option_env, stringify, trace_macros,
562562
};
563563

564564
#[stable(feature = "core_primitive", since = "1.43.0")]

0 commit comments

Comments
 (0)