Libsyntax has been updated
This commit is contained in:
@@ -28,7 +28,6 @@ use fold::Folder;
|
||||
|
||||
use std::collections::HashMap;
|
||||
use std::rc::Rc;
|
||||
use std::ops::Deref;
|
||||
|
||||
pub trait ItemDecorator {
|
||||
fn expand(&self,
|
||||
@@ -791,7 +790,7 @@ pub fn get_single_str_from_tts(cx: &mut ExtCtxt,
|
||||
cx.span_err(sp, &format!("{} takes 1 argument", name)[]);
|
||||
}
|
||||
expr_to_string(cx, ret, "argument must be a string literal").map(|(s, _)| {
|
||||
s.deref().to_string()
|
||||
s.to_string()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user