@@ -545,6 +545,7 @@ fn cfg_raw_idents() {
545
545
p. cargo ( "check" )
546
546
. with_stderr_data ( str![ [ r#"
547
547
[LOCKING] 1 package to latest compatible version
548
+ [CHECKING] b v0.0.1 ([ROOT]/foo/b)
548
549
[CHECKING] foo v0.1.0 ([ROOT]/foo)
549
550
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
550
551
@@ -638,21 +639,8 @@ fn cfg_keywords() {
638
639
639
640
p. cargo ( "check" )
640
641
. with_stderr_data ( str![ [ r#"
641
- [WARNING] [[ROOT]/foo/Cargo.toml] future-incompatibility: the meaning of `cfg(true)` will change in the future
642
- | Cargo is erroneously allowing `cfg(true)` and `cfg(false)`, but both forms are interpreted as false unless manually overridden with `--cfg`.
643
- | In the future these will be built-in defines that will have the corresponding true/false value.
644
- | It is recommended to avoid using these configs until they are properly supported.
645
- | See <https://github.com/rust-lang/rust/issues/131204> for more information.
646
- |
647
- | [HELP] use raw-idents instead: `cfg(r#true)`
648
- [WARNING] [.cargo/config.toml] future-incompatibility: the meaning of `cfg(false)` will change in the future
649
- | Cargo is erroneously allowing `cfg(true)` and `cfg(false)`, but both forms are interpreted as false unless manually overridden with `--cfg`.
650
- | In the future these will be built-in defines that will have the corresponding true/false value.
651
- | It is recommended to avoid using these configs until they are properly supported.
652
- | See <https://github.com/rust-lang/rust/issues/131204> for more information.
653
- |
654
- | [HELP] use raw-idents instead: `cfg(r#false)`
655
642
[LOCKING] 1 package to latest compatible version
643
+ [CHECKING] b v0.0.1 ([ROOT]/foo/b)
656
644
[CHECKING] foo v0.1.0 ([ROOT]/foo)
657
645
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
658
646
@@ -687,23 +675,10 @@ fn cfg_booleans() {
687
675
. build ( ) ;
688
676
689
677
p. cargo ( "check" )
690
- // FIXME: `b` should be compiled
678
+ . masquerade_as_nightly_cargo ( & [ "cfg-boolean-literals feature" ] )
691
679
. with_stderr_data ( str![ [ r#"
692
- [WARNING] [[ROOT]/foo/Cargo.toml] future-incompatibility: the meaning of `cfg(false)` will change in the future
693
- | Cargo is erroneously allowing `cfg(true)` and `cfg(false)`, but both forms are interpreted as false unless manually overridden with `--cfg`.
694
- | In the future these will be built-in defines that will have the corresponding true/false value.
695
- | It is recommended to avoid using these configs until they are properly supported.
696
- | See <https://github.com/rust-lang/rust/issues/131204> for more information.
697
- |
698
- | [HELP] use raw-idents instead: `cfg(r#false)`
699
- [WARNING] [[ROOT]/foo/Cargo.toml] future-incompatibility: the meaning of `cfg(true)` will change in the future
700
- | Cargo is erroneously allowing `cfg(true)` and `cfg(false)`, but both forms are interpreted as false unless manually overridden with `--cfg`.
701
- | In the future these will be built-in defines that will have the corresponding true/false value.
702
- | It is recommended to avoid using these configs until they are properly supported.
703
- | See <https://github.com/rust-lang/rust/issues/131204> for more information.
704
- |
705
- | [HELP] use raw-idents instead: `cfg(r#true)`
706
680
[LOCKING] 2 packages to latest compatible versions
681
+ [CHECKING] b v0.0.1 ([ROOT]/foo/b)
707
682
[CHECKING] a v0.0.1 ([ROOT]/foo)
708
683
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
709
684
@@ -735,13 +710,6 @@ fn cfg_booleans_config() {
735
710
736
711
p. cargo ( "check" )
737
712
. with_stderr_data ( str![ [ r#"
738
- [WARNING] [.cargo/config.toml] future-incompatibility: the meaning of `cfg(true)` will change in the future
739
- | Cargo is erroneously allowing `cfg(true)` and `cfg(false)`, but both forms are interpreted as false unless manually overridden with `--cfg`.
740
- | In the future these will be built-in defines that will have the corresponding true/false value.
741
- | It is recommended to avoid using these configs until they are properly supported.
742
- | See <https://github.com/rust-lang/rust/issues/131204> for more information.
743
- |
744
- | [HELP] use raw-idents instead: `cfg(r#true)`
745
713
[CHECKING] a v0.0.1 ([ROOT]/foo)
746
714
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
747
715
@@ -772,13 +740,6 @@ fn cfg_booleans_not() {
772
740
773
741
p. cargo ( "check" )
774
742
. with_stderr_data ( str![ [ r#"
775
- [WARNING] [[ROOT]/foo/Cargo.toml] future-incompatibility: the meaning of `cfg(false)` will change in the future
776
- | Cargo is erroneously allowing `cfg(true)` and `cfg(false)`, but both forms are interpreted as false unless manually overridden with `--cfg`.
777
- | In the future these will be built-in defines that will have the corresponding true/false value.
778
- | It is recommended to avoid using these configs until they are properly supported.
779
- | See <https://github.com/rust-lang/rust/issues/131204> for more information.
780
- |
781
- | [HELP] use raw-idents instead: `cfg(r#false)`
782
743
[LOCKING] 1 package to latest compatible version
783
744
[CHECKING] b v0.0.1 ([ROOT]/foo/b)
784
745
[CHECKING] a v0.0.1 ([ROOT]/foo)
@@ -810,30 +771,9 @@ fn cfg_booleans_combinators() {
810
771
. build ( ) ;
811
772
812
773
p. cargo ( "check" )
813
- // FIXME: `b` should be compiled
814
774
. with_stderr_data ( str![ [ r#"
815
- [WARNING] [[ROOT]/foo/Cargo.toml] future-incompatibility: the meaning of `cfg(true)` will change in the future
816
- | Cargo is erroneously allowing `cfg(true)` and `cfg(false)`, but both forms are interpreted as false unless manually overridden with `--cfg`.
817
- | In the future these will be built-in defines that will have the corresponding true/false value.
818
- | It is recommended to avoid using these configs until they are properly supported.
819
- | See <https://github.com/rust-lang/rust/issues/131204> for more information.
820
- |
821
- | [HELP] use raw-idents instead: `cfg(r#true)`
822
- [WARNING] [[ROOT]/foo/Cargo.toml] future-incompatibility: the meaning of `cfg(false)` will change in the future
823
- | Cargo is erroneously allowing `cfg(true)` and `cfg(false)`, but both forms are interpreted as false unless manually overridden with `--cfg`.
824
- | In the future these will be built-in defines that will have the corresponding true/false value.
825
- | It is recommended to avoid using these configs until they are properly supported.
826
- | See <https://github.com/rust-lang/rust/issues/131204> for more information.
827
- |
828
- | [HELP] use raw-idents instead: `cfg(r#false)`
829
- [WARNING] [[ROOT]/foo/Cargo.toml] future-incompatibility: the meaning of `cfg(true)` will change in the future
830
- | Cargo is erroneously allowing `cfg(true)` and `cfg(false)`, but both forms are interpreted as false unless manually overridden with `--cfg`.
831
- | In the future these will be built-in defines that will have the corresponding true/false value.
832
- | It is recommended to avoid using these configs until they are properly supported.
833
- | See <https://github.com/rust-lang/rust/issues/131204> for more information.
834
- |
835
- | [HELP] use raw-idents instead: `cfg(r#true)`
836
775
[LOCKING] 1 package to latest compatible version
776
+ [CHECKING] b v0.0.1 ([ROOT]/foo/b)
837
777
[CHECKING] a v0.0.1 ([ROOT]/foo)
838
778
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
839
779
@@ -868,29 +808,13 @@ fn cfg_booleans_rustflags_no_effect() {
868
808
. build ( ) ;
869
809
870
810
p. cargo ( "check" )
871
- // FIXME: only `b` should be compiled, the rustflags don't take effect
872
811
. with_stderr_data ( str![ [ r#"
873
- [WARNING] [[ROOT]/foo/Cargo.toml] future-incompatibility: the meaning of `cfg(false)` will change in the future
874
- | Cargo is erroneously allowing `cfg(true)` and `cfg(false)`, but both forms are interpreted as false unless manually overridden with `--cfg`.
875
- | In the future these will be built-in defines that will have the corresponding true/false value.
876
- | It is recommended to avoid using these configs until they are properly supported.
877
- | See <https://github.com/rust-lang/rust/issues/131204> for more information.
878
- |
879
- | [HELP] use raw-idents instead: `cfg(r#false)`
880
- [WARNING] [[ROOT]/foo/Cargo.toml] future-incompatibility: the meaning of `cfg(true)` will change in the future
881
- | Cargo is erroneously allowing `cfg(true)` and `cfg(false)`, but both forms are interpreted as false unless manually overridden with `--cfg`.
882
- | In the future these will be built-in defines that will have the corresponding true/false value.
883
- | It is recommended to avoid using these configs until they are properly supported.
884
- | See <https://github.com/rust-lang/rust/issues/131204> for more information.
885
- |
886
- | [HELP] use raw-idents instead: `cfg(r#true)`
887
812
[LOCKING] 2 packages to latest compatible versions
888
813
[CHECKING] b v0.0.1 ([ROOT]/foo/b)
889
- [CHECKING] c v0.0.1 ([ROOT]/foo/c)
890
814
[CHECKING] a v0.0.1 ([ROOT]/foo)
891
815
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
892
816
893
817
"# ] ] )
894
- . env ( "RUSTFLAGS" , "--cfg true --cfg false" )
818
+ . env ( "RUSTFLAGS" , "--cfg false" )
895
819
. run ( ) ;
896
820
}
0 commit comments