mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 21:51:03 +03:00
Remove reference to _d_arrayassign
in errors (#20808)
This commit is contained in:
parent
0ecefd78ef
commit
d29e3eca45
2 changed files with 13 additions and 19 deletions
|
@ -2371,8 +2371,14 @@ private bool checkNogc(FuncDeclaration f, ref Loc loc, Scope* sc)
|
|||
}
|
||||
|
||||
/********************************************
|
||||
* Check that the postblit is callable if t is an array of structs.
|
||||
* Returns true if error happens.
|
||||
* Check that the postblit of `t` isn't @disabled and has the right
|
||||
* function attributes for this scope.
|
||||
*
|
||||
* Params:
|
||||
* t = struct type, or static array of struct type to check
|
||||
* loc = error message location
|
||||
* sc = scope in which attributes are checked
|
||||
* Returns: true if there's an error
|
||||
*/
|
||||
private bool checkPostblit(Type t, ref Loc loc, Scope* sc)
|
||||
{
|
||||
|
@ -2395,12 +2401,12 @@ private bool checkPostblit(Type t, ref Loc loc, Scope* sc)
|
|||
return true;
|
||||
|
||||
//checkDeprecated(sc, sd.postblit); // necessary?
|
||||
sd.postblit.checkPurity(loc, sc);
|
||||
sd.postblit.checkSafety(loc, sc);
|
||||
sd.postblit.checkNogc(loc, sc);
|
||||
//checkAccess(sd, loc, sc, sd.postblit); // necessary?
|
||||
return false;
|
||||
|
||||
bool result = false;
|
||||
result |= sd.postblit.checkPurity(loc, sc);
|
||||
result |= sd.postblit.checkSafety(loc, sc);
|
||||
result |= sd.postblit.checkNogc(loc, sc);
|
||||
return result;
|
||||
}
|
||||
|
||||
/***************************************
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue