File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -2966,6 +2966,8 @@ macro_rules! to_string_str {
2966
2966
2967
2967
#[ cfg( not( no_global_oom_handling) ) ]
2968
2968
to_string_str ! {
2969
+ Cow <' _, str >,
2970
+ String ,
2969
2971
// Generic/generated code can sometimes have multiple, nested references
2970
2972
// for strings, including `&&&str`s that would never be written
2971
2973
// by hand.
@@ -2984,22 +2986,6 @@ to_string_str! {
2984
2986
str ,
2985
2987
}
2986
2988
2987
- #[ cfg( not( no_global_oom_handling) ) ]
2988
- impl SpecToString for Cow < ' _ , str > {
2989
- #[ inline]
2990
- fn spec_to_string ( & self ) -> String {
2991
- self [ ..] . to_owned ( )
2992
- }
2993
- }
2994
-
2995
- #[ cfg( not( no_global_oom_handling) ) ]
2996
- impl SpecToString for String {
2997
- #[ inline]
2998
- fn spec_to_string ( & self ) -> String {
2999
- self . to_owned ( )
3000
- }
3001
- }
3002
-
3003
2989
#[ cfg( not( no_global_oom_handling) ) ]
3004
2990
impl SpecToString for fmt:: Arguments < ' _ > {
3005
2991
#[ inline]
You can’t perform that action at this time.
0 commit comments