File tree 3 files changed +5
-15
lines changed
librustc_codegen_ssa/back
3 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ impl Command {
53
53
}
54
54
55
55
pub fn sym_arg ( & mut self , arg : Symbol ) -> & mut Command {
56
- self . arg ( & arg. as_str ( ) ) ;
56
+ self . arg ( & * arg. as_str ( ) ) ;
57
57
self
58
58
}
59
59
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ impl<'a> Parser<'a> {
210
210
// `/` to `\`.
211
211
#[ cfg( windows) ]
212
212
let s = s. replace ( "/" , "\\ " ) ;
213
- Some ( dir_path. join ( s) )
213
+ Some ( dir_path. join ( & * s) )
214
214
} else {
215
215
None
216
216
}
@@ -314,7 +314,7 @@ impl<'a> Parser<'a> {
314
314
315
315
fn push_directory ( & mut self , id : Ident , attrs : & [ Attribute ] ) {
316
316
if let Some ( path) = attr:: first_attr_value_str_by_name ( attrs, sym:: path) {
317
- self . directory . path . to_mut ( ) . push ( & path. as_str ( ) ) ;
317
+ self . directory . path . to_mut ( ) . push ( & * path. as_str ( ) ) ;
318
318
self . directory . ownership = DirectoryOwnership :: Owned { relative : None } ;
319
319
} else {
320
320
// We have to push on the current module name in the case of relative
@@ -325,10 +325,10 @@ impl<'a> Parser<'a> {
325
325
// directory path to `/x/y/z`, not `/x/z` with a relative offset of `y`.
326
326
if let DirectoryOwnership :: Owned { relative } = & mut self . directory . ownership {
327
327
if let Some ( ident) = relative. take ( ) { // remove the relative offset
328
- self . directory . path . to_mut ( ) . push ( ident. as_str ( ) ) ;
328
+ self . directory . path . to_mut ( ) . push ( & * ident. as_str ( ) ) ;
329
329
}
330
330
}
331
- self . directory . path . to_mut ( ) . push ( & id. as_str ( ) ) ;
331
+ self . directory . path . to_mut ( ) . push ( & * id. as_str ( ) ) ;
332
332
}
333
333
}
334
334
}
Original file line number Diff line number Diff line change @@ -1099,16 +1099,6 @@ pub struct SymbolStr {
1099
1099
string : & ' static str ,
1100
1100
}
1101
1101
1102
- impl < U : ?Sized > std:: convert:: AsRef < U > for SymbolStr
1103
- where
1104
- str : std:: convert:: AsRef < U >
1105
- {
1106
- #[ inline]
1107
- fn as_ref ( & self ) -> & U {
1108
- self . string . as_ref ( )
1109
- }
1110
- }
1111
-
1112
1102
// This impl allows a `SymbolStr` to be directly equated with a `String` or
1113
1103
// `&str`.
1114
1104
impl < T : std:: ops:: Deref < Target = str > > std:: cmp:: PartialEq < T > for SymbolStr {
You can’t perform that action at this time.
0 commit comments