File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1240,7 +1240,7 @@ impl Literal {
12401240 // representation. This is not public API other than for quote.
12411241 #[ doc( hidden) ]
12421242 pub unsafe fn from_str_unchecked ( repr : & str ) -> Self {
1243- Literal :: _new ( imp:: Literal :: from_str_unchecked ( repr) )
1243+ Literal :: _new ( unsafe { imp:: Literal :: from_str_unchecked ( repr) } )
12441244 }
12451245}
12461246
Original file line number Diff line number Diff line change @@ -762,7 +762,7 @@ impl Literal {
762762 if inside_proc_macro ( ) {
763763 Literal :: Compiler ( proc_macro:: Literal :: from_str ( repr) . expect ( "invalid literal" ) )
764764 } else {
765- Literal :: Fallback ( fallback:: Literal :: from_str_unchecked ( repr) )
765+ Literal :: Fallback ( unsafe { fallback:: Literal :: from_str_unchecked ( repr) } )
766766 }
767767 }
768768
You can’t perform that action at this time.
0 commit comments