mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Give real discriminant_type to chalk
This commit is contained in:
parent
5208bf8f55
commit
50559118fb
6 changed files with 135 additions and 24 deletions
|
@ -364,6 +364,11 @@ pub mod mem {
|
|||
pub fn size_of<T>() -> usize;
|
||||
}
|
||||
// endregion:size_of
|
||||
|
||||
// region:discriminant
|
||||
use crate::marker::DiscriminantKind;
|
||||
pub struct Discriminant<T>(<T as DiscriminantKind>::Discriminant);
|
||||
// endregion:discriminant
|
||||
}
|
||||
|
||||
pub mod ptr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue