-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #7470 - DevinR528:fix-ice7447, r=flip1995
Add check if ty has_escaping_bound_vars in zero_sized_map_values lint Fixes: #7447 changelog: fix ICE in [`zero_sized_map_values`]
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use std::{borrow::Cow, collections::BTreeMap, marker::PhantomData, sync::Arc}; | ||
|
||
fn byte_view<'a>(s: &'a ByteView<'_>) -> BTreeMap<&'a str, ByteView<'a>> { | ||
panic!() | ||
} | ||
|
||
fn group_entries(s: &()) -> BTreeMap<Cow<'_, str>, Vec<Cow<'_, str>>> { | ||
todo!() | ||
} | ||
|
||
struct Mmap; | ||
|
||
enum ByteViewBacking<'a> { | ||
Buf(Cow<'a, [u8]>), | ||
Mmap(Mmap), | ||
} | ||
|
||
pub struct ByteView<'a> { | ||
backing: Arc<ByteViewBacking<'a>>, | ||
} | ||
|
||
fn main() { | ||
byte_view(panic!()); | ||
group_entries(panic!()); | ||
} |