Add runtime check to avoid overwrite arg easily in diag and store and restore snapshot when set subdiag arg
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
This commit is contained in:
@@ -45,7 +45,8 @@ pub struct CrateDepMultiple {
|
||||
#[derive(Subdiagnostic)]
|
||||
#[note(metadata_crate_dep_not_static)]
|
||||
pub struct NonStaticCrateDep {
|
||||
pub crate_name: Symbol,
|
||||
/// It's different from `crate_name` in main Diagnostic.
|
||||
pub crate_name_: Symbol,
|
||||
}
|
||||
|
||||
#[derive(Subdiagnostic)]
|
||||
|
||||
Reference in New Issue
Block a user