cfg_eval
exits prematurely if it encounters an experimental_...
argument
#6985
Labels
bug
Something isn't working
compiler: frontend
Everything to do with type checking, control flow analysis, and everything between parsing and IRgen
compiler
General compiler. Should eventually become more specific as the issue is triaged
team:compiler
Compiler Team
cfg_eval
must return false if any of thecfg
attributes return false. Currentlycfg_eval
exists immediately if it encounters anexperimental_...
argument and returns the value of that particular evaluation.E.g., in this example, the
fun
function exists and can be called inmain
, although theprogram_type
is not alibrary
.If the order of the two
cfg
attributes changes or the#[cfg(experimental_new_encoding = true)]
gets removed, thecfg_eval
will properly evaluate tofalse
and thefun
will not be available inmain
.The text was updated successfully, but these errors were encountered: