Skip to content

Commit 6355814

Browse files
committed
Merge pull request #979 from kamalmarhubi/update-syntex-syntax
deps: Update syntex_syntax to 0.32.0
2 parents 47631e2 + 8309d1a commit 6355814

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ regex = "0.1"
2121
term = "0.4"
2222
strings = "0.0.1"
2323
diff = "0.1"
24-
syntex_syntax = "0.31"
24+
syntex_syntax = "0.32"
2525
log = "0.3"
2626
env_logger = "0.3"
2727
getopts = "0.2"

src/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ impl Rewrite for ast::Expr {
145145
};
146146
wrap_str(format!("break{}", id_str), context.config.max_width, width, offset)
147147
}
148-
ast::ExprKind::Closure(capture, ref fn_decl, ref body) => {
148+
ast::ExprKind::Closure(capture, ref fn_decl, ref body, _) => {
149149
rewrite_closure(capture, fn_decl, body, self.span, context, width, offset)
150150
}
151151
ast::ExprKind::Field(..) |

src/items.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ pub fn rewrite_associated_type(ident: ast::Ident,
10611061
let prefix = format!("type {}", ident);
10621062

10631063
let type_bounds_str = if let Some(ty_param_bounds) = ty_param_bounds_opt {
1064-
let bounds: &[_] = &ty_param_bounds.as_slice();
1064+
let bounds: &[_] = &ty_param_bounds;
10651065
let bound_str = bounds.iter()
10661066
.filter_map(|ty_bound| ty_bound.rewrite(context, context.config.max_width, indent))
10671067
.collect::<Vec<String>>()
@@ -1188,7 +1188,7 @@ pub fn span_hi_for_arg(arg: &ast::Arg) -> BytePos {
11881188

11891189
pub fn is_named_arg(arg: &ast::Arg) -> bool {
11901190
if let ast::PatKind::Ident(_, ident, _) = arg.pat.node {
1191-
ident.node != token::special_idents::invalid
1191+
ident.node != token::keywords::Invalid.ident()
11921192
} else {
11931193
true
11941194
}
@@ -1704,7 +1704,7 @@ fn rewrite_trait_bounds(context: &RewriteContext,
17041704
indent: Indent,
17051705
width: usize)
17061706
-> Option<String> {
1707-
let bounds: &[_] = &type_param_bounds.as_slice();
1707+
let bounds: &[_] = &type_param_bounds;
17081708

17091709
if bounds.is_empty() {
17101710
return Some(String::new());

src/utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub fn format_visibility(vis: &Visibility) -> Option<&'static str> {
7272
Visibility::Public => Some("pub "),
7373
Visibility::Inherited => Some(""),
7474
// FIXME(#970): Handle new visibility types.
75-
Visibility::Crate => None,
75+
Visibility::Crate(_) => None,
7676
Visibility::Restricted { .. } => None,
7777
}
7878
}

0 commit comments

Comments
 (0)