@@ -828,7 +828,7 @@ pub mod consts {
828
828
/// - s390x
829
829
/// - sparc64
830
830
#[ stable( feature = "env" , since = "1.0.0" ) ]
831
- pub const ARCH : & ' static str = super :: arch:: ARCH ;
831
+ pub const ARCH : & str = super :: arch:: ARCH ;
832
832
833
833
/// The family of the operating system. Example value is `unix`.
834
834
///
@@ -837,7 +837,7 @@ pub mod consts {
837
837
/// - unix
838
838
/// - windows
839
839
#[ stable( feature = "env" , since = "1.0.0" ) ]
840
- pub const FAMILY : & ' static str = os:: FAMILY ;
840
+ pub const FAMILY : & str = os:: FAMILY ;
841
841
842
842
/// A string describing the specific operating system in use.
843
843
/// Example value is `linux`.
@@ -856,7 +856,7 @@ pub mod consts {
856
856
/// - android
857
857
/// - windows
858
858
#[ stable( feature = "env" , since = "1.0.0" ) ]
859
- pub const OS : & ' static str = os:: OS ;
859
+ pub const OS : & str = os:: OS ;
860
860
861
861
/// Specifies the filename prefix used for shared libraries on this
862
862
/// platform. Example value is `lib`.
@@ -866,7 +866,7 @@ pub mod consts {
866
866
/// - lib
867
867
/// - `""` (an empty string)
868
868
#[ stable( feature = "env" , since = "1.0.0" ) ]
869
- pub const DLL_PREFIX : & ' static str = os:: DLL_PREFIX ;
869
+ pub const DLL_PREFIX : & str = os:: DLL_PREFIX ;
870
870
871
871
/// Specifies the filename suffix used for shared libraries on this
872
872
/// platform. Example value is `.so`.
@@ -877,7 +877,7 @@ pub mod consts {
877
877
/// - .dylib
878
878
/// - .dll
879
879
#[ stable( feature = "env" , since = "1.0.0" ) ]
880
- pub const DLL_SUFFIX : & ' static str = os:: DLL_SUFFIX ;
880
+ pub const DLL_SUFFIX : & str = os:: DLL_SUFFIX ;
881
881
882
882
/// Specifies the file extension used for shared libraries on this
883
883
/// platform that goes after the dot. Example value is `so`.
@@ -888,7 +888,7 @@ pub mod consts {
888
888
/// - dylib
889
889
/// - dll
890
890
#[ stable( feature = "env" , since = "1.0.0" ) ]
891
- pub const DLL_EXTENSION : & ' static str = os:: DLL_EXTENSION ;
891
+ pub const DLL_EXTENSION : & str = os:: DLL_EXTENSION ;
892
892
893
893
/// Specifies the filename suffix used for executable binaries on this
894
894
/// platform. Example value is `.exe`.
@@ -900,7 +900,7 @@ pub mod consts {
900
900
/// - .pexe
901
901
/// - `""` (an empty string)
902
902
#[ stable( feature = "env" , since = "1.0.0" ) ]
903
- pub const EXE_SUFFIX : & ' static str = os:: EXE_SUFFIX ;
903
+ pub const EXE_SUFFIX : & str = os:: EXE_SUFFIX ;
904
904
905
905
/// Specifies the file extension, if any, used for executable binaries
906
906
/// on this platform. Example value is `exe`.
@@ -910,72 +910,72 @@ pub mod consts {
910
910
/// - exe
911
911
/// - `""` (an empty string)
912
912
#[ stable( feature = "env" , since = "1.0.0" ) ]
913
- pub const EXE_EXTENSION : & ' static str = os:: EXE_EXTENSION ;
913
+ pub const EXE_EXTENSION : & str = os:: EXE_EXTENSION ;
914
914
}
915
915
916
916
#[ cfg( target_arch = "x86" ) ]
917
917
mod arch {
918
- pub const ARCH : & ' static str = "x86" ;
918
+ pub const ARCH : & str = "x86" ;
919
919
}
920
920
921
921
#[ cfg( target_arch = "x86_64" ) ]
922
922
mod arch {
923
- pub const ARCH : & ' static str = "x86_64" ;
923
+ pub const ARCH : & str = "x86_64" ;
924
924
}
925
925
926
926
#[ cfg( target_arch = "arm" ) ]
927
927
mod arch {
928
- pub const ARCH : & ' static str = "arm" ;
928
+ pub const ARCH : & str = "arm" ;
929
929
}
930
930
931
931
#[ cfg( target_arch = "aarch64" ) ]
932
932
mod arch {
933
- pub const ARCH : & ' static str = "aarch64" ;
933
+ pub const ARCH : & str = "aarch64" ;
934
934
}
935
935
936
936
#[ cfg( target_arch = "mips" ) ]
937
937
mod arch {
938
- pub const ARCH : & ' static str = "mips" ;
938
+ pub const ARCH : & str = "mips" ;
939
939
}
940
940
941
941
#[ cfg( target_arch = "mips64" ) ]
942
942
mod arch {
943
- pub const ARCH : & ' static str = "mips64" ;
943
+ pub const ARCH : & str = "mips64" ;
944
944
}
945
945
946
946
#[ cfg( target_arch = "powerpc" ) ]
947
947
mod arch {
948
- pub const ARCH : & ' static str = "powerpc" ;
948
+ pub const ARCH : & str = "powerpc" ;
949
949
}
950
950
951
951
#[ cfg( target_arch = "powerpc64" ) ]
952
952
mod arch {
953
- pub const ARCH : & ' static str = "powerpc64" ;
953
+ pub const ARCH : & str = "powerpc64" ;
954
954
}
955
955
956
956
#[ cfg( target_arch = "s390x" ) ]
957
957
mod arch {
958
- pub const ARCH : & ' static str = "s390x" ;
958
+ pub const ARCH : & str = "s390x" ;
959
959
}
960
960
961
961
#[ cfg( target_arch = "sparc64" ) ]
962
962
mod arch {
963
- pub const ARCH : & ' static str = "sparc64" ;
963
+ pub const ARCH : & str = "sparc64" ;
964
964
}
965
965
966
966
#[ cfg( target_arch = "le32" ) ]
967
967
mod arch {
968
- pub const ARCH : & ' static str = "le32" ;
968
+ pub const ARCH : & str = "le32" ;
969
969
}
970
970
971
971
#[ cfg( target_arch = "asmjs" ) ]
972
972
mod arch {
973
- pub const ARCH : & ' static str = "asmjs" ;
973
+ pub const ARCH : & str = "asmjs" ;
974
974
}
975
975
976
976
#[ cfg( target_arch = "wasm32" ) ]
977
977
mod arch {
978
- pub const ARCH : & ' static str = "wasm32" ;
978
+ pub const ARCH : & str = "wasm32" ;
979
979
}
980
980
981
981
#[ cfg( test) ]
0 commit comments