8000 Rollup of 9 pull requests by Centril · Pull Request #70338 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

Rollup of 9 pull requests #70338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 35 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
5b66f27
Use `const_eval_limit` instead of infinite loop detector
ecstatic-morse Mar 17, 2020
e15c486
Remove infinite loop detector
ecstatic-morse Mar 17, 2020
044dc6e
Update const-eval tests
ecstatic-morse Mar 17, 2020
2daaf2b
replace some adhoc logic with article_and_descr
mark-i-m Mar 16, 2020
1661a0a
convert a couple more errors
mark-i-m Mar 22, 2020
cdb2c3c
use static strs
mark-i-m Mar 22, 2020
1e5d81d
Fix invalid suggestion on `&mut` iterators yielding `&` references
tirr-c Mar 22, 2020
82f4a1a
get rid of ConstPropUnsupported; use ZST marker structs instead
RalfJung Mar 22, 2020
12607ef
Add lint when no doc is present at the crate-level
GuillaumeGomez Dec 1, 2019
f767f54
rename NO_CRATE_LEVEL_DOC lint into MISSING_CRATE_LEVEL_DOC
GuillaumeGomez Feb 11, 2020
a8b0e40
Improve code readability
GuillaumeGomez Feb 11, 2020
ffe1289
Update tests
GuillaumeGomez Feb 11, 2020
9664002
Update to new diagnostic
GuillaumeGomez Feb 12, 2020
be97eb4
Update lint name to follow convention
GuillaumeGomez Mar 22, 2020
d40dff9 8000
the crate and tests
mark-i-m Mar 22, 2020
b5636b8
Rename `TimeLimitReached` -> `StepLimitReached`
ecstatic-morse Mar 22, 2020
cda81da
avoid unsafe code, use upcasting-trait instead (trick by oli)
RalfJung Mar 22, 2020
5e8b795
fix one more test
mark-i-m Mar 22, 2020
410385d
add macro to reduce boilerplate and keep readable messages
RalfJung Mar 23, 2020
e619b85
make sure we are checking the size of the right thing
RalfJung Mar 23, 2020
19e6935
Clean up E0452 explanation
GuillaumeGomez Mar 23, 2020
c3b9881
Remove `ReClosureBound`
matthewjasper Mar 11, 2020
c7c2fa1
Make `needs_drop` less pessimistic on generators
jonas-schievink Mar 14, 2020
9ebc72f
Adjust mir-opt test and make it drop something
jonas-schievink Mar 15, 2020
1df7641
Fix rebase fallout
jonas-schievink Mar 23, 2020
e75158d
Account for bad placeholder types in where clauses
estebank Mar 23, 2020
ed3d9e7
Rollup merge of #66938 - GuillaumeGomez:lint-for-no-crate-level-doc, …
Centril Mar 23, 2020
1a5ad59
Rollup merge of #69740 - mark-i-m:describe-it-3, r=eddyb
Centril Mar 23, 2020
3375146
Rollup merge of #70015 - jonas-schievink:gen-needs-drop, r=matthewjasper
Centril Mar 23, 2020
320e84a
Rollup merge of #70087 - ecstatic-morse:remove-const-eval-loop-detect…
Centril Mar 23, 2020
ac78183
Rollup merge of #70264 - tirr-c:issue-69789-mut-suggestion, r=estebank
Centril Mar 23, 2020
37c4b7f
Rollup merge of #70267 - RalfJung:const-prop-unsup, r=oli-obk,wesleyw…
Centril Mar 23, 2020
9327c9d
Rollup merge of #70277 - matthewjasper:remove-closurebound, r=nikomat…
Centril Mar 23, 2020
b07333c
Rollup merge of #70294 - estebank:bad-placeholder-in-where, r=Centril
Centril Mar 23, 2020
58f4f1e
Rollup merge of #70309 - GuillaumeGomez:cleanup-e0452, r=Dylan-DPC
Centril Mar 23, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
the crate and tests
  • Loading branch information
mark-i-m committed Mar 22, 2020
commit d40dff9cbbabfdb1477dfbb71f45ca4f36c1d596
2 changes: 1 addition & 1 deletion src/librustc_lint/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc {
}

fn check_crate(&mut self, cx: &LateContext<'_, '_>, krate: &hir::Crate<'_>) {
self.check_missing_docs_attrs(cx, None, &krate.item.attrs, krate.item.span, "a", "crate");
self.check_missing_docs_attrs(cx, None, &krate.item.attrs, krate.item.span, "the", "crate");

for macro_def in krate.exported_macros {
let has_doc = macro_def.attrs.iter().any(|a| has_doc(a));
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/issues/issue-10656.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#![deny(missing_docs)]
#![crate_type="lib"]
//~^^ ERROR missing documentation for crate
//~^^ ERROR missing documentation for the crate
2 changes: 1 addition & 1 deletion src/test/ui/issues/issue-10656.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error: missing documentation for crate
error: missing documentation for the crate
--> $DIR/issue-10656.rs:1:1
|
LL | / #![deny(missing_docs)]
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/lint/lints-in-foreign-macros.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// aux-build:lints-in-foreign-macros.rs
// check-pass

#![warn(unused_imports)] //~ missing documentation for crate [missing_docs]
#![warn(unused_imports)] //~ missing documentation for the crate [missing_docs]
#![warn(missing_docs)]

#[macro_use]
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/lint/lints-in-foreign-macros.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ warning: unused import: `std::string::ToString`
LL | mod d { baz2!(use std::string::ToString;); }
| ^^^^^^^^^^^^^^^^^^^^^

warning: missing documentation for crate
warning: missing documentation for the crate
--> $DIR/lints-in-foreign-macros.rs:4:1
|
LL | / #![warn(unused_imports)]
Expand Down
0