]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #73597 - ayazhafiz:i/const-span, r=ecstatic-morse
authorManish Goregaokar <manishsmail@gmail.com>
Fri, 26 Jun 2020 07:39:08 +0000 (00:39 -0700)
committerGitHub <noreply@github.com>
Fri, 26 Jun 2020 07:39:08 +0000 (00:39 -0700)
Record span of `const` kw in GenericParamKind

Context: this is needed for a fix of https://github.com/rust-lang/rustfmt/issues/4263,
which currently records the span of a const generic param incorrectly
because the location of the `const` kw is not known.

I am not sure how to add tests for this; any guidance in how to do so
would be appreciated :slightly_smiling_face:

1  2 
src/librustc_ast/ast.rs
src/librustc_ast/mut_visit.rs
src/librustc_ast_lowering/lib.rs
src/librustc_ast_pretty/pprust.rs
src/librustc_resolve/late.rs

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge