Skip to content

Commit 60cde93

Browse files
committed
Remove unused str_style field
1 parent 4ed08b5 commit 60cde93

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

src/librustc/hir/lowering.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,6 @@ impl<'a> LoweringContext<'a> {
645645
fn lower_global_asm(&mut self, ga: &GlobalAsm) -> P<hir::GlobalAsm> {
646646
P(hir::GlobalAsm {
647647
asm: ga.asm,
648-
asm_str_style: ga.asm_str_style,
649648
expn_id: ga.expn_id,
650649
})
651650
}

src/librustc/hir/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,6 @@ pub struct ForeignMod {
14931493
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
14941494
pub struct GlobalAsm {
14951495
pub asm: Symbol,
1496-
pub asm_str_style: StrStyle,
14971496
pub expn_id: ExpnId
14981497
}
14991498

src/libsyntax/ast.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,6 @@ pub struct ForeignMod {
16301630
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]
16311631
pub struct GlobalAsm {
16321632
pub asm: Symbol,
1633-
pub asm_str_style: StrStyle,
16341633
pub expn_id: ExpnId,
16351634
}
16361635

src/libsyntax_ext/global_asm.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub fn expand_global_asm<'cx>(cx: &'cx mut ExtCtxt,
4545
}
4646

4747
let mut p = cx.new_parser_from_tts(tts);
48-
let (asm, asm_str_style) = match expr_to_string(cx,
48+
let (asm, _) = match expr_to_string(cx,
4949
panictry!(p.parse_expr()),
5050
"inline assembly must be a string literal") {
5151
Some((s, st)) => (s, st),
@@ -67,7 +67,6 @@ pub fn expand_global_asm<'cx>(cx: &'cx mut ExtCtxt,
6767
id: ast::DUMMY_NODE_ID,
6868
node: ast::ItemKind::GlobalAsm(P(ast::GlobalAsm {
6969
asm: asm,
70-
asm_str_style: asm_str_style,
7170
expn_id: expn_id,
7271
})),
7372
vis: ast::Visibility::Inherited,

0 commit comments

Comments
 (0)