about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-03-18 18:03:38 +0100
committerGitHub <noreply@github.com>2020-03-18 18:03:38 +0100
commit23b79d83f2472bb310b4bb53f0bccbbaaab00044 (patch)
tree1aad9e4566ff054c84f47e46f78c45fd5fb4c044 /src/test/rustdoc-ui/coverage/json.rs
parent4118ff61ec71a2b9869422ef1762b21051ce5e40 (diff)
parent8caf688844e1c4ba3f3d554488efca7d0994b2b1 (diff)
downloadrust-23b79d83f2472bb310b4bb53f0bccbbaaab00044.tar.gz
rust-23b79d83f2472bb310b4bb53f0bccbbaaab00044.zip
Rollup merge of #69838 - Centril:expand-module, r=petrochenkov
Expansion-driven outline module parsing

After this PR, the parser will not do any conditional compilation or loading of external module files when `mod foo;` is encountered. Instead, the parser only leaves `mod foo;` in place in the AST, with no items filled in. Expansion later kicks in and will load the actual files and do the parsing. This entails that the following is now valid:

```rust
#[cfg(FALSE)]
mod foo {
    mod bar {
        mod baz; // `foo/bar/baz.rs` doesn't exist, but no error!
    }
}
```

Fixes https://github.com/rust-lang/rust/issues/64197.

r? @petrochenkov
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions