Skip to content

Commit

Permalink
Use constant for machine metadata
Browse files Browse the repository at this point in the history
Reviewed By: janettec

Differential Revision: D67692246

fbshipit-source-id: 7f8cc5e318150e5c8ba8474b17121f91d6798c75
  • Loading branch information
Steven Chaitoff authored and facebook-github-bot committed Dec 31, 2024
1 parent fe5b82c commit a24ebb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/crates/graphql-ir/src/signatures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ use crate::build::build_variable_definitions;
use crate::build::ValidationLevel;
use crate::build_directive;
use crate::constants::ARGUMENT_DEFINITION;
use crate::errors::MachineMetadataKey;
use crate::errors::ValidationMessage;
use crate::errors::ValidationMessageWithData;
use crate::ir::ConstantValue;
Expand Down Expand Up @@ -151,7 +152,7 @@ fn build_fragment_signature(
.location
.with_span(fragment.type_condition.type_.span),
)
.metadata_for_machine("unknown_type", type_name.lookup())
.metadata_for_machine(MachineMetadataKey::UnknownType, type_name.lookup())
.into()),
};
let argument_definition_directives = fragment
Expand Down

0 comments on commit a24ebb0

Please sign in to comment.