diff options
| author | bors <bors@rust-lang.org> | 2014-03-14 18:26:30 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-03-14 18:26:30 -0700 |
| commit | 58fb492f9c827ee824de8f3767ff102cafb1ca88 (patch) | |
| tree | df00c4ee0fd3d5b0c6982c47f79f475cb26ca128 /src/libsyntax | |
| parent | 76e0e26603d723038dae1ad06161cade47e53a55 (diff) | |
| parent | 8e5ca4b793e928b5a7545f6d1010b7663a9d30ae (diff) | |
| download | rust-58fb492f9c827ee824de8f3767ff102cafb1ca88.tar.gz rust-58fb492f9c827ee824de8f3767ff102cafb1ca88.zip | |
auto merge of #12893 : alexcrichton/rust/cfg-not, r=luqmana
The two commits have the details of the two fixes
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/attr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs index ed56ef15a1c..7ff9a73f29d 100644 --- a/src/libsyntax/attr.rs +++ b/src/libsyntax/attr.rs @@ -317,9 +317,9 @@ pub fn test_cfg<AM: AttrMetaMethods, It: Iterator<AM>> debug!("not!"); // inside #[cfg(not(...))], so these need to all // not match. - not_cfgs.iter().all(|mi| { + !not_cfgs.iter().all(|mi| { debug!("cfg(not({}[...]))", mi.name()); - !contains(cfg, *mi) + contains(cfg, *mi) }) } _ => contains(cfg, *cfg_mi) |
