Rename many DiagCtxt
arguments.
This commit is contained in:
parent
4dc7fab56f
commit
f422dca3ae
44 changed files with 317 additions and 353 deletions
|
@ -17,9 +17,9 @@ impl<'a> IntoDiagnostic<'a> for FeatureGateError {
|
|||
#[track_caller]
|
||||
fn into_diagnostic(
|
||||
self,
|
||||
handler: &'a rustc_errors::DiagCtxt,
|
||||
dcx: &'a rustc_errors::DiagCtxt,
|
||||
) -> rustc_errors::DiagnosticBuilder<'a, ErrorGuaranteed> {
|
||||
let mut diag = handler.struct_err(self.explain);
|
||||
let mut diag = dcx.struct_err(self.explain);
|
||||
diag.set_span(self.span);
|
||||
diag.code(error_code!(E0658));
|
||||
diag
|
||||
|
|
|
@ -230,9 +230,9 @@ impl ParseSess {
|
|||
ParseSess::with_dcx(handler, sm)
|
||||
}
|
||||
|
||||
pub fn with_dcx(handler: DiagCtxt, source_map: Lrc<SourceMap>) -> Self {
|
||||
pub fn with_dcx(dcx: DiagCtxt, source_map: Lrc<SourceMap>) -> Self {
|
||||
Self {
|
||||
dcx: handler,
|
||||
dcx,
|
||||
unstable_features: UnstableFeatures::from_environment(None),
|
||||
config: Cfg::default(),
|
||||
check_config: CheckCfg::default(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue