diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-10-19 05:40:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-19 05:40:51 +0200 |
| commit | 0d990a3dbd7733a05c5ccdb99c123fac8938dcc6 (patch) | |
| tree | 619a2d3d57669a78fc72b72d073df8391526b123 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 54aa5477ac081e5675fdd29565ae0d27ffd13cab (diff) | |
| parent | db5b64a484dbea09f1f39e0640662b50c6e934cd (diff) | |
| download | rust-0d990a3dbd7733a05c5ccdb99c123fac8938dcc6.tar.gz rust-0d990a3dbd7733a05c5ccdb99c123fac8938dcc6.zip | |
Rollup merge of #89867 - Urgau:fix-double-definition, r=GuillaumeGomez
Fix macro_rules! duplication when reexported in the same module
This can append if within the same module a `#[macro_export] macro_rules!`
is declared but also a reexport of itself producing two export of the same
macro in the same module. In that case we only want to document it once.
Before:
```
Module {
is_crate: true,
items: [
Id("0:4"), // pub use crate::repro as repro2;
Id("0:3"), // macro_rules! repro
Id("0:3"), // duplicate, same as above
],
}
```
After:
```
Module {
is_crate: true,
items: [
Id("0:4"), // pub use crate::repro as repro2;
Id("0:3"), // macro_rules! repro
],
}
```
Fixes https://github.com/rust-lang/rust/issues/89852
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
