mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-29 06:23:25 +00:00
Auto merge of #15270 - ChristianSchott:patch-1, r=HKalbasi
Make fields of mir::Terminator public When trying to use the RA crate, I am unable to access the fields in `hir_def::mir::Terminator`. I don't see any reason, why these should be private, especially as the fields of `hir_def::mir::Statement` are `pub`. I am not sure if the fields in `hir_def::mir::SwitchTargets` should be made `pub` too, but at least they are read-accessible via some public methods.. Sorry if I missed something, this is my first PR.
This commit is contained in:
commit
f6ae0c11ac
1 changed files with 2 additions and 2 deletions
|
@ -323,8 +323,8 @@ impl SwitchTargets {
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Eq, Clone)]
|
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||||
pub struct Terminator {
|
pub struct Terminator {
|
||||||
span: MirSpan,
|
pub span: MirSpan,
|
||||||
kind: TerminatorKind,
|
pub kind: TerminatorKind,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Eq, Clone)]
|
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||||
|
|
Loading…
Reference in a new issue