Update parser with for
syntax
This commit is contained in:
parent
c18a1327e3
commit
244231720d
28 changed files with 543 additions and 404 deletions
|
@ -1690,8 +1690,8 @@ impl LintPass for Stability {
|
|||
for t in supertraits.iter() {
|
||||
match *t {
|
||||
ast::TraitTyParamBound(ref t) => {
|
||||
let id = ty::trait_ref_to_def_id(cx.tcx, t);
|
||||
self.lint(cx, id, t.path.span);
|
||||
let id = ty::trait_ref_to_def_id(cx.tcx, &t.trait_ref);
|
||||
self.lint(cx, id, t.trait_ref.path.span);
|
||||
}
|
||||
_ => (/* pass */)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue