summary refs log tree commit diff
path: root/src/test/compile-fail/lint-missing-doc.rs
AgeCommit message (Collapse)AuthorLines
2015-08-06Revert "Revert "Fix `missing_docs` lint for const and static.""Brian Anderson-0/+21
This reverts commit 9191a7895574ec3aa5a9b84ce0008d91e32ccd6a.
2015-07-30Fix testsBrian Anderson-0/+1
2015-07-20Revert "Fix `missing_docs` lint for const and static."Brian Anderson-21/+0
This reverts commit 00130cff99f88e13fec87378bdf476cfea6aa147. As mentioned in a regression report[1], this caused a notable amount of breakage. Because there's a plan to mitigate[2] this type of breakage, I'm reverting this until then. [1]: https://internals.rust-lang.org/t/new-crater-reports-1-1-stable-vs-beta-2015-07-10-and-nightly-2015-07-10/2358 [2]: https://github.com/rust-lang/rfcs/pull/1193
2015-06-21Fix `missing_docs` lint for const and static.Eljay-0/+21
2015-03-11syntax: move MethMac to MacImplItem and combine {Provided,Required}Method ↵Eduard Burtescu-1/+1
into MethodTraitItem.
2015-03-11syntax: gather common fields of impl & trait items into their respective types.Eduard Burtescu-2/+2
2015-02-23Update missing-doc test to explicitly check errorsIvan Petkov-17/+17
This way we can be sure the correct error is displayed for the respective code type.
2015-02-23Update missing-docs lint to check associated type declarationsIvan Petkov-0/+13
[breaking-change] Fixes #20648
2015-02-18Fallout: tests. As tests frequently elide things, lots of changesNiko Matsakis-7/+13
here. Some of this may have been poorly rebased, though I tried to be careful and preserve the spirit of the test.
2015-02-03Switch missing_copy_implementations to default-allowSteven Fackler-1/+0
This was particularly helpful in the time just after OIBIT's implementation to make sure things that were supposed to be Copy continued to be, but it's now creates a lot of noise for types that intentionally don't want to be Copy.
2015-01-08Update compile fail tests to use isize.Huon Wilson-11/+11
2015-01-05Remove use of globs feature gate from tests.Huon Wilson-1/+0
2014-12-08librustc: Make `Copy` opt-in.Niko Matsakis-0/+1
This change makes the compiler no longer infer whether types (structures and enumerations) implement the `Copy` trait (and thus are implicitly copyable). Rather, you must implement `Copy` yourself via `impl Copy for MyType {}`. A new warning has been added, `missing_copy_implementations`, to warn you if a non-generic public type has been added that could have implemented `Copy` but didn't. For convenience, you may *temporarily* opt out of this behavior by using `#![feature(opt_out_copy)]`. Note though that this feature gate will never be accepted and will be removed by the time that 1.0 is released, so you should transition your code away from using it. This breaks code like: #[deriving(Show)] struct Point2D { x: int, y: int, } fn main() { let mypoint = Point2D { x: 1, y: 1, }; let otherpoint = mypoint; println!("{}{}", mypoint, otherpoint); } Change this code to: #[deriving(Show)] struct Point2D { x: int, y: int, } impl Copy for Point2D {} fn main() { let mypoint = Point2D { x: 1, y: 1, }; let otherpoint = mypoint; println!("{}{}", mypoint, otherpoint); } This is the backwards-incompatible part of #13231. Part of RFC #3. [breaking-change]
2014-12-04Make missing_doc lint check typedefsSteven Fackler-0/+3
Closes #19543
2014-11-15Un-feature gate struct variantsSteven Fackler-6/+2
Struct variant field visibility is now inherited. Remove `pub` keywords from declarations. Closes #18641 [breaking-change]
2014-10-28Update code with new lint namesAaron Turon-9/+9
2014-08-14libsyntax: Accept `use foo as bar;` in lieu of `use bar as foo;`Patrick Walton-2/+2
The old syntax will be removed after a snapshot. RFC #47. Issue #16461.
2014-04-16rustc: Remove private enum variantsAlex Crichton-4/+0
This removes the `priv` keyword from the language and removes private enum variants as a result. The remaining use cases of private enum variants were all updated to be a struct with one private field that is a private enum. RFC: 0006-remove-priv Closes #13535
2014-03-31rpass/cfail: Update field privacy where necessaryAlex Crichton-10/+10
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.