mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Remove unnecessary CfgFlag definition in project-model
This commit is contained in:
parent
ee10731c31
commit
d2fe906a62
8 changed files with 367 additions and 376 deletions
|
@ -108,6 +108,14 @@ impl<'a> IntoIterator for &'a CfgOptions {
|
|||
}
|
||||
}
|
||||
|
||||
impl FromIterator<CfgAtom> for CfgOptions {
|
||||
fn from_iter<T: IntoIterator<Item = CfgAtom>>(iter: T) -> Self {
|
||||
let mut options = CfgOptions::default();
|
||||
options.extend(iter);
|
||||
options
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Default, Clone, Debug, PartialEq, Eq)]
|
||||
pub struct CfgDiff {
|
||||
// Invariants: No duplicates, no atom that's both in `enable` and `disable`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue