// However, experimental features are subject to breaking changes
// in future releases, so we'll warn about them to help make sure
// folks aren't inadvertently using them in places where that'd be
// inappropriate, particularly if the experiment is active in a
// shared module they depend on.
diags=diags.Append(&hcl.Diagnostic{
Severity:hcl.DiagWarning,
Summary:fmt.Sprintf("Experimental feature %q is active",exp.Keyword()),
Detail:"Experimental features are subject to breaking changes in future minor or patch releases, based on feedback.\n\nIf you have feedback on the design of this feature, please open a GitHub issue to discuss it.",
Subject:expr.Range().Ptr(),
})
ifdisableExperimentWarnings==""{
// However, experimental features are subject to breaking changes
// in future releases, so we'll warn about them to help make sure
// folks aren't inadvertently using them in places where that'd be
// inappropriate, particularly if the experiment is active in a
// shared module they depend on.
diags=diags.Append(&hcl.Diagnostic{
Severity:hcl.DiagWarning,
Summary:fmt.Sprintf("Experimental feature %q is active",exp.Keyword()),
Detail:"Experimental features are subject to breaking changes in future minor or patch releases, based on feedback.\n\nIf you have feedback on the design of this feature, please open a GitHub issue to discuss it.",
Subject:expr.Range().Ptr(),
})
}
default:
// This should never happen, because GetCurrent is not documented