mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-13 13:57:25 +00:00
fix: Allow flyimport to import primitive shadowing modules
This commit is contained in:
parent
062822ce91
commit
0851d21d1e
4 changed files with 28 additions and 2 deletions
|
@ -55,6 +55,7 @@
|
|||
//! size_of: sized
|
||||
//! sized:
|
||||
//! slice:
|
||||
//! str:
|
||||
//! sync: sized
|
||||
//! transmute:
|
||||
//! try: infallible
|
||||
|
@ -1368,6 +1369,14 @@ pub mod iter {
|
|||
}
|
||||
// endregion:iterator
|
||||
|
||||
// region:str
|
||||
pub mod str {
|
||||
pub const unsafe fn from_utf8_unchecked(v: &[u8]) -> &str {
|
||||
""
|
||||
}
|
||||
}
|
||||
// endregion:str
|
||||
|
||||
// region:panic
|
||||
mod panic {
|
||||
pub macro panic_2021 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue