Skip to content

crypto.codecs.asn1.der.{Encoder,Decoder} compile errors #25408

@benburkert

Description

@benburkert

Zig Version

0.16.0-dev.463+f624191f9

Steps to Reproduce and Observed Behavior

This test does not compile on master: https://zigbin.io/95cc28

/Users/benburkert/.local/share/mise/installs/zig/master/lib/std/crypto/codecs/asn1/der/Encoder.zig:120:47: error: root source file struct 'crypto.codecs.asn1.der.ArrayListReverse' has no member named 'Writer'
pub fn writer(self: *Encoder) ArrayListReverse.Writer {
                              ~~~~~~~~~~~~~~~~^~~~~~~
/Users/benburkert/.local/share/mise/installs/zig/master/lib/std/crypto/codecs/asn1/der/ArrayListReverse.zig:1:1: note: struct declared here
//! An ArrayList that grows backwards. Counts nested prefix length fields
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
    length: /Users/benburkert/.local/share/mise/installs/zig/master/lib/std/crypto/codecs/asn1/der/Encoder.zig:97:25
    tagBytes: /Users/benburkert/.local/share/mise/installs/zig/master/lib/std/crypto/codecs/asn1/der/Encoder.zig:115:20
    6 reference(s) hidden; use '-freference-trace=8' to see all references

It does compile and pass on 0.15.1.

Expected Behavior

The test should pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.standard libraryThis issue involves writing Zig code for the standard library.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions