Forbid @_borrowed in @abi

It has indirect effects on the accessors, so it shouldn’t matter, but we can defensively redirect the query to the API counterpart anyway.

This was the last `InferredInABIAttr` attribute, so we can now remove all of the infrastructure involved in supporting attribute inference.
This commit is contained in:
Becca Royal-Gordon
2025-03-20 19:22:31 -07:00
parent aac6f64051
commit 8f75878455
11 changed files with 15 additions and 50 deletions

View File

@@ -1422,8 +1422,6 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
Opts.EnableSkipExplicitInterfaceModuleBuildRemarks = Args.hasArg(OPT_remark_skip_explicit_interface_build);
Opts.EnableABIInferenceRemarks = Args.hasArg(OPT_remark_abi_inference);
if (Args.hasArg(OPT_experimental_skip_non_exportable_decls)) {
// Only allow -experimental-skip-non-exportable-decls if either library
// evolution is enabled (in which case the module's ABI is independent of