Make it clearer that edition functions are >=, not ==
This commit is contained in:
parent
77e24f90f5
commit
846cc63e38
16 changed files with 46 additions and 42 deletions
|
@ -86,7 +86,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
|
|||
));
|
||||
}
|
||||
|
||||
if self_ty.span.edition().rust_2021() {
|
||||
if self_ty.span.edition().at_least_rust_2021() {
|
||||
let msg = "trait objects must include the `dyn` keyword";
|
||||
let label = "add `dyn` keyword before this trait";
|
||||
let mut diag =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue