@@ -545,6 +545,7 @@ fn cfg_raw_idents() {
545545 p. cargo ( "check" )
546546 . with_stderr_data ( str![ [ r#"
547547[LOCKING] 1 package to latest compatible version
548+ [CHECKING] b v0.0.1 ([ROOT]/foo/b)
548549[CHECKING] foo v0.1.0 ([ROOT]/foo)
549550[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
550551
@@ -638,21 +639,8 @@ fn cfg_keywords() {
638639
639640 p. cargo ( "check" )
640641 . 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)`
655642[LOCKING] 1 package to latest compatible version
643+ [CHECKING] b v0.0.1 ([ROOT]/foo/b)
656644[CHECKING] foo v0.1.0 ([ROOT]/foo)
657645[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
658646
@@ -687,23 +675,10 @@ fn cfg_booleans() {
687675 . build ( ) ;
688676
689677 p. cargo ( "check" )
690- // FIXME: `b` should be compiled
678+ . masquerade_as_nightly_cargo ( & [ "cfg-boolean-literals feature" ] )
691679 . 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)`
706680[LOCKING] 2 packages to latest compatible versions
681+ [CHECKING] b v0.0.1 ([ROOT]/foo/b)
707682[CHECKING] a v0.0.1 ([ROOT]/foo)
708683[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
709684
@@ -735,13 +710,6 @@ fn cfg_booleans_config() {
735710
736711 p. cargo ( "check" )
737712 . 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)`
745713[CHECKING] a v0.0.1 ([ROOT]/foo)
746714[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
747715
@@ -772,13 +740,6 @@ fn cfg_booleans_not() {
772740
773741 p. cargo ( "check" )
774742 . 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)`
782743[LOCKING] 1 package to latest compatible version
783744[CHECKING] b v0.0.1 ([ROOT]/foo/b)
784745[CHECKING] a v0.0.1 ([ROOT]/foo)
@@ -810,30 +771,9 @@ fn cfg_booleans_combinators() {
810771 . build ( ) ;
811772
812773 p. cargo ( "check" )
813- // FIXME: `b` should be compiled
814774 . 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)`
836775[LOCKING] 1 package to latest compatible version
776+ [CHECKING] b v0.0.1 ([ROOT]/foo/b)
837777[CHECKING] a v0.0.1 ([ROOT]/foo)
838778[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
839779
@@ -868,29 +808,13 @@ fn cfg_booleans_rustflags_no_effect() {
868808 . build ( ) ;
869809
870810 p. cargo ( "check" )
871- // FIXME: only `b` should be compiled, the rustflags don't take effect
872811 . 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)`
887812[LOCKING] 2 packages to latest compatible versions
888813[CHECKING] b v0.0.1 ([ROOT]/foo/b)
889- [CHECKING] c v0.0.1 ([ROOT]/foo/c)
890814[CHECKING] a v0.0.1 ([ROOT]/foo)
891815[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
892816
893817"# ] ] )
894- . env ( "RUSTFLAGS" , "--cfg true --cfg false" )
818+ . env ( "RUSTFLAGS" , "--cfg false" )
895819 . run ( ) ;
896820}
0 commit comments