summary refs log tree commit diff
path: root/src/test/compile-fail/lint-missing-doc.rs
AgeCommit message (Collapse)AuthorLines
2014-03-28Convert most code to new inner attribute syntax.Brian Anderson-5/+5
Closes #2569
2014-01-26Fix privacy fallout from previous changeAlex Crichton-2/+2
2014-01-01Don't leave lingering files in doc testsAlex Crichton-0/+1
Closes #11234
2013-12-08Add dead-code warning passKiet Tran-0/+1
2013-12-06Check crate root for docs in missing_doc lint.Corey Richardson-0/+3
Because the root module isn't actually an item, we need to do some hackish handling of it. Closes #10656.
2013-11-22Move more of the exportation burden into privacyAlex Crichton-0/+5
I added a test case which does not compile today, and required changes on privacy's side of things to get right. Additionally, this moves a good bit of logic which did not belong in reachability into privacy. All of reachability should solely be responsible for determining what the reachable surface area of a crate is given the exported surface area (where the exported surface area is that which is usable by external crates). Privacy will now correctly figure out what's exported by deeply looking through reexports. Previously if a module were reexported under another name, nothing in the module would actually get exported in the executable. I also consolidated the phases of privacy to be clearer about what's an input to what. The privacy checking pass no longer uses the notion of an "all public" path, and the embargo visitor is no longer an input to the checking pass. Currently the embargo visitor is built as a saturating analysis because it's unknown what portions of the AST are going to get re-exported.
2013-11-13make missing_doc lint respect the visibility rulesDavid Creswick-8/+36
Previously, the `exported_items` set created by the privacy pass was incomplete. Specifically, it did not include items that had been defined at a private path but then `pub use`d at a public path. This commit finds all crate exports during the privacy pass. Consequently, some code in the reachable pass and in rustdoc is no longer necessary. This commit then removes the separate `MissingDocLintVisitor` lint pass, opting to check missing_doc lint in the same pass as the other lint checkers using the visibility result computed by the privacy pass. Fixes #9777.
2013-10-31fix missing_doc lint on private traitsDavid Creswick-3/+2
Fixes #10069.
2013-10-15Require module documentation with missing_docAlex Crichton-0/+3
Closes #9824
2013-10-06Add appropriate #[feature] directives to testsAlex Crichton-0/+1
2013-10-02Check enums in missing_doc lintSteven Fackler-0/+37
Closes #9671
2013-08-12Forbid pub/priv where it has no effectAlex Crichton-7/+5
Closes #5495
2013-05-30Allow doc(hidden) and --test to disable doc lintingAlex Crichton-0/+13
2013-05-30Make missing documentation linting more robustAlex Crichton-0/+72
Add some more cases for warning about missing documentation, and also add a test to make sure it doesn't die in the future.