about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJane Lusby <jlusby@yaah.dev>2021-07-16 09:18:14 -0700
committerJane Lusby <jlusby@yaah.dev>2021-07-16 09:18:14 -0700
commit93b7aee2dad93b46ae81e1abb51edde7e6bb957c (patch)
tree4f5291aa387fccf79a8f6bff369c803521c0b981
parent59d92bd0173fb0436b93aa56ff2cb288d4717701 (diff)
downloadrust-93b7aee2dad93b46ae81e1abb51edde7e6bb957c.tar.gz
rust-93b7aee2dad93b46ae81e1abb51edde7e6bb957c.zip
rename assert_matches module
-rw-r--r--compiler/rustc_middle/src/ich/impls_syntax.rs2
-rw-r--r--compiler/rustc_mir/src/interpret/memory.rs2
-rw-r--r--library/core/src/lib.rs2
-rw-r--r--library/std/src/lib.rs6
4 files changed, 6 insertions, 6 deletions
diff --git a/compiler/rustc_middle/src/ich/impls_syntax.rs b/compiler/rustc_middle/src/ich/impls_syntax.rs
index 1c66f831b5f..acf2990b643 100644
--- a/compiler/rustc_middle/src/ich/impls_syntax.rs
+++ b/compiler/rustc_middle/src/ich/impls_syntax.rs
@@ -6,7 +6,7 @@ use crate::ich::StableHashingContext;
 use rustc_ast as ast;
 use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
 use rustc_span::{BytePos, NormalizedPos, SourceFile};
-use std::assert::assert_matches;
+use std::assert_matches::assert_matches;
 
 use smallvec::SmallVec;
 
diff --git a/compiler/rustc_mir/src/interpret/memory.rs b/compiler/rustc_mir/src/interpret/memory.rs
index 194c478cc99..0528a788284 100644
--- a/compiler/rustc_mir/src/interpret/memory.rs
+++ b/compiler/rustc_mir/src/interpret/memory.rs
@@ -6,7 +6,7 @@
 //! integer. It is crucial that these operations call `check_align` *before*
 //! short-circuiting the empty case!
 
-use std::assert::assert_matches;
+use std::assert_matches::assert_matches;
 use std::borrow::Cow;
 use std::collections::VecDeque;
 use std::convert::{TryFrom, TryInto};
diff --git a/library/core/src/lib.rs b/library/core/src/lib.rs
index 01d33409a42..8bbce7e552c 100644
--- a/library/core/src/lib.rs
+++ b/library/core/src/lib.rs
@@ -184,7 +184,7 @@ mod macros;
 #[cfg(not(test))]
 #[unstable(feature = "assert_matches", issue = "82775")]
 /// Unstable module containing the unstable `assert_matches` macro.
-pub mod assert {
+pub mod assert_matches {
     #[unstable(feature = "assert_matches", issue = "82775")]
     pub use crate::macros::{assert_matches, debug_assert_matches};
 }
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs
index 472bca3460f..a157a222c43 100644
--- a/library/std/src/lib.rs
+++ b/library/std/src/lib.rs
@@ -556,9 +556,9 @@ pub use core::{
 #[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
 #[allow(deprecated)]
 pub use core::{
-    asm, assert, cfg, column, compile_error, concat, concat_idents, env, file, format_args,
-    format_args_nl, global_asm, include, include_bytes, include_str, line, llvm_asm, log_syntax,
-    module_path, option_env, stringify, trace_macros,
+    asm, assert, assert_matches, cfg, column, compile_error, concat, concat_idents, env, file,
+    format_args, format_args_nl, global_asm, include, include_bytes, include_str, line, llvm_asm,
+    log_syntax, module_path, option_env, stringify, trace_macros,
 };
 
 #[stable(feature = "core_primitive", since = "1.43.0")]