1
Fork 0

First batch of review feedback changes from #102110

This commit is contained in:
Nathan Stocks 2022-10-03 17:34:59 -06:00
parent be4059dd3e
commit 965dbf6c28
9 changed files with 43 additions and 22 deletions

View file

@ -830,14 +830,6 @@ pub struct UnrecognizedField {
pub name: Symbol,
}
#[derive(Diagnostic)]
#[diag(passes::layout)]
pub struct Layout {
#[primary_span]
pub span: Span,
pub layout_error: String,
}
#[derive(Diagnostic)]
#[diag(passes::feature_stable_twice, code = "E0711")]
pub struct FeatureStableTwice {
@ -1259,7 +1251,7 @@ pub struct IncorrectTarget<'a> {
pub span: Span,
#[label]
pub generics_span: Span,
pub name: &'a str,
pub name: &'a str, // cannot be symbol because it renders e.g. `r#fn` instead of `fn`
pub kind: &'static str,
pub num: usize,
pub actual_num: usize,