Skip to content

Commit 4399ae8

Browse files
authored
Remove name from public (#2595)
1 parent 9beec81 commit 4399ae8

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

ast/src/analyzed/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,6 @@ impl Children<Expression> for NamedType {
848848
pub struct PublicDeclaration {
849849
pub id: u64,
850850
pub source: SourceRef,
851-
pub name: String,
852851
/// The declaration value, in two possible forms: polynomial[array_index](row) OR polynomial(row)
853852
/// where "row" is the evaluation point of the polynomial.
854853
pub value: Expression,

backend/src/estark/json_exporter/mod.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::{cmp, path::PathBuf};
77
use powdr_ast::analyzed::{
88
AlgebraicBinaryOperation, AlgebraicBinaryOperator, AlgebraicExpression as Expression,
99
AlgebraicUnaryOperation, AlgebraicUnaryOperator, Analyzed, FunctionValueDefinition, Identity,
10-
PolyID, PolynomialType, PublicDeclaration, StatementIdentifier, SymbolKind,
10+
PolyID, PolynomialType, StatementIdentifier, SymbolKind,
1111
};
1212
use powdr_parser_util::SourceRef;
1313
use starky::types::{
@@ -63,12 +63,8 @@ pub fn export<T: FieldElement>(analyzed: &Analyzed<T>) -> PIL {
6363
exporter.intermediate_poly_expression_ids[&id.id] as usize
6464
);
6565
}
66-
} else if let Some((
67-
poly,
68-
Some(FunctionValueDefinition::PublicDeclaration(
69-
pubd @ PublicDeclaration { name, .. },
70-
)),
71-
)) = analyzed.definitions.get(name)
66+
} else if let Some((poly, Some(FunctionValueDefinition::PublicDeclaration(pubd)))) =
67+
analyzed.definitions.get(name)
7268
{
7369
assert_eq!(poly.kind, SymbolKind::Public());
7470
let symbol = &analyzed.definitions[&pubd.referenced_poly().name].0;

pil-analyzer/src/statement_processor.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -520,12 +520,7 @@ where
520520
array_index: Option<parsed::Expression>,
521521
row: parsed::Expression,
522522
) -> Result<Vec<PILItem>, Error> {
523-
let Symbol {
524-
id,
525-
source,
526-
absolute_name,
527-
..
528-
} = symbol.clone();
523+
let Symbol { id, source, .. } = symbol.clone();
529524

530525
let row: u32 = untyped_evaluator::evaluate_expression_to_int(
531526
self.driver,
@@ -594,7 +589,6 @@ where
594589
PublicDeclaration {
595590
id,
596591
source: source.clone(),
597-
name: absolute_name,
598592
value,
599593
},
600594
)),

0 commit comments

Comments
 (0)