Remove an unnecessary field from a NonConstOp
This commit is contained in:
@@ -72,7 +72,7 @@ impl NonConstOp for FnCallIndirect {
|
||||
|
||||
/// A function call where the callee is not marked as `const`.
|
||||
#[derive(Debug)]
|
||||
pub struct FnCallNonConst(pub DefId);
|
||||
pub struct FnCallNonConst;
|
||||
impl NonConstOp for FnCallNonConst {
|
||||
fn build_error(&self, ccx: &ConstCx<'_, 'tcx>, span: Span) -> DiagnosticBuilder<'tcx> {
|
||||
struct_span_err!(
|
||||
|
||||
Reference in New Issue
Block a user