about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/errors.rs
diff options
context:
space:
mode:
authorDavid Wood <david.wood@huawei.com>2023-07-26 16:51:40 +0100
committerDavid Wood <david.wood@huawei.com>2023-07-28 14:28:02 +0100
commite051a323110d438c337f3f893d171fade7d2d1a6 (patch)
treed133b71609fdccc3ac5cfbe350234d976b79e601 /compiler/rustc_codegen_gcc/src/errors.rs
parentaafd75a9c510b0e91746b891eb4ebade43899af5 (diff)
downloadrust-e051a323110d438c337f3f893d171fade7d2d1a6.tar.gz
rust-e051a323110d438c337f3f893d171fade7d2d1a6.zip
privacy: no nominal visibility for assoc fns
When `staged_api` is enabled, effective visibilities are computed earlier
and this can trigger an ICE in some cases.

In particular, if a impl of a trait method has a visibility then an error
will be reported for that, but when privacy invariants are being checked,
the effective visibility will still be greater than the nominal visbility
and that will trigger a `span_bug!`.

However, this invariant - that effective visibilites are limited to
nominal visibility - doesn't make sense for associated functions.

Signed-off-by: David Wood <david@davidtw.co>
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/errors.rs')
0 files changed, 0 insertions, 0 deletions