]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoOnly check the assignment found at last
Shotaro Yamada [Mon, 10 Dec 2018 06:59:21 +0000 (15:59 +0900)]
Only check the assignment found at last

If there are more than one such assignment, the last one may be
the one supplied to `clone` method.
Makes `find_stmt_assigns_to` internally reverses the iterator to make
the intent to "iterate statements backward" clear.

5 years agoAdd comment and rename
Shotaro Yamada [Mon, 10 Dec 2018 06:48:34 +0000 (15:48 +0900)]
Add comment and rename

5 years agoApply redundant_clone on clippy
Shotaro Yamada [Sun, 9 Dec 2018 13:02:23 +0000 (22:02 +0900)]
Apply redundant_clone on clippy

5 years agoLint redundant clone of projection
Shotaro Yamada [Sun, 9 Dec 2018 11:19:21 +0000 (20:19 +0900)]
Lint redundant clone of projection

5 years agoFix test
Shotaro Yamada [Sun, 9 Dec 2018 10:18:44 +0000 (19:18 +0900)]
Fix test

`if true` is recognized by MIR optimization.

5 years agoCleanup
Shotaro Yamada [Sun, 9 Dec 2018 10:18:35 +0000 (19:18 +0900)]
Cleanup

5 years agoMerge pull request #3512 from matthiaskrgr/rustup
Philipp Hansch [Sat, 8 Dec 2018 12:42:01 +0000 (13:42 +0100)]
Merge pull request #3512 from matthiaskrgr/rustup

rustup https://github.com/rust-lang/rust/pull/56502 ( .hir -> .hir() )

5 years agos/rustfmt-preview/rustfmt/
Philipp Hansch [Sat, 8 Dec 2018 11:41:04 +0000 (12:41 +0100)]
s/rustfmt-preview/rustfmt/

5 years agoSwap if branches
Philipp Hansch [Sat, 8 Dec 2018 11:09:32 +0000 (12:09 +0100)]
Swap if branches

5 years agoFix c_void false positive caused by libc refactoring
Philipp Hansch [Sat, 8 Dec 2018 10:57:25 +0000 (11:57 +0100)]
Fix c_void false positive caused by libc refactoring

The path of `libc::c_void` has changes in https://github.com/rust-lang/libc/commit/5c1a6b8a6d558882927a0816d91c01b9c2a88018
The DefId path is now always platform specific like
`libc::windows::c_void`. This fixes our c_void detection to only check
the first and last elements.

5 years agorustup https://github.com/rust-lang/rust/pull/56502 ( .hir -> .hir() )
Matthias Krüger [Sat, 8 Dec 2018 00:56:03 +0000 (01:56 +0100)]
rustup https://github.com/rust-lang/rust/pull/56502 ( .hir -> .hir() )

5 years agoMerge pull request #3336 from HMPerson1/clone_on_copy_deref
Philipp Hansch [Sat, 8 Dec 2018 08:59:02 +0000 (09:59 +0100)]
Merge pull request #3336 from HMPerson1/clone_on_copy_deref

Fix `clone_on_copy` not detecting derefs sometimes

5 years agoMerge pull request #3507 from flying-sheep/patch-1
Philipp Hansch [Fri, 7 Dec 2018 21:20:19 +0000 (22:20 +0100)]
Merge pull request #3507 from flying-sheep/patch-1

typo: emum → enum

5 years agotypo: emum → enum
Philipp A [Fri, 7 Dec 2018 11:24:59 +0000 (12:24 +0100)]
typo: emum → enum

5 years agoMerge pull request #3257 from o01eg/remove-sysroot
Philipp Hansch [Thu, 6 Dec 2018 21:11:29 +0000 (22:11 +0100)]
Merge pull request #3257 from o01eg/remove-sysroot

Don't try to determine sysroot. rustc_driver will use default value.

5 years agoMerge pull request #3501 from matthiaskrgr/rustup
Philipp Hansch [Thu, 6 Dec 2018 16:17:40 +0000 (17:17 +0100)]
Merge pull request #3501 from matthiaskrgr/rustup

rustup clippy build with latest rustc

5 years agoMerge pull request #3502 from rust-lang/nrc-patch-1
Manish Goregaokar [Thu, 6 Dec 2018 16:17:18 +0000 (11:17 -0500)]
Merge pull request #3502 from rust-lang/nrc-patch-1

Remove -preview suffix from README

5 years agoRemove -preview suffix from README
Nick Cameron [Thu, 6 Dec 2018 16:11:50 +0000 (11:11 -0500)]
Remove -preview suffix from README

5 years agorustup clippy build with latest rustc
Matthias Krüger [Thu, 6 Dec 2018 15:38:32 +0000 (16:38 +0100)]
rustup clippy build with latest rustc
(breakage due to https://github.com/rust-lang/rust/commit/08f8faedd0e30f45762afbb8d4873f7041e7462c )

Fixes #3500

5 years agoMerge pull request #3497 from daxpedda/master
Philipp Hansch [Thu, 6 Dec 2018 13:13:20 +0000 (14:13 +0100)]
Merge pull request #3497 from daxpedda/master

Fix bug in `implicit_return`.

5 years agoForgot to remove some debugging code ...
daxpedda [Thu, 6 Dec 2018 12:23:42 +0000 (13:23 +0100)]
Forgot to remove some debugging code ...

5 years agoImproved code noted by clippy.
daxpedda [Thu, 6 Dec 2018 12:21:04 +0000 (13:21 +0100)]
Improved code noted by clippy.

5 years agoMerge pull request #3496 from fkohlgrueber/macro-in-closure-in-if-cond
Oliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer [Thu, 6 Dec 2018 11:26:43 +0000 (12:26 +0100)]
Merge pull request #3496 from fkohlgrueber/macro-in-closure-in-if-cond

fix #3482 and add ui test for it

5 years agoFix bug in `implicit_return`.
daxpedda [Thu, 6 Dec 2018 11:22:54 +0000 (12:22 +0100)]
Fix bug in `implicit_return`.
Bug was already covered by test, but test was not checked for.

5 years agoFix format.
O01eg [Thu, 6 Dec 2018 10:46:23 +0000 (13:46 +0300)]
Fix format.

5 years agoAdd sysroot gettinh code to dogfood tests.
O01eg [Thu, 6 Dec 2018 10:21:45 +0000 (13:21 +0300)]
Add sysroot gettinh code to dogfood tests.

5 years agofix #3482 and add ui test for it
Felix Kohlgrüber [Thu, 6 Dec 2018 10:07:10 +0000 (11:07 +0100)]
fix #3482 and add ui test for it

5 years agoAdd sysroot getting code to tests.
O01eg [Thu, 22 Nov 2018 12:40:29 +0000 (15:40 +0300)]
Add sysroot getting code to tests.

5 years agoDon't try to determine sysroot. rustc_driver will use default value.
O01eg [Thu, 4 Oct 2018 07:58:09 +0000 (10:58 +0300)]
Don't try to determine sysroot. rustc_driver will use default value.

5 years agoMerge pull request #3494 from daxpedda/master
Philipp Hansch [Thu, 6 Dec 2018 06:12:01 +0000 (07:12 +0100)]
Merge pull request #3494 from daxpedda/master

Added `IMPLICIT_RETURN` lint.

5 years agoMerge pull request #3444 from waynr/fix-dogfood-tests
Philipp Hansch [Thu, 6 Dec 2018 06:10:04 +0000 (07:10 +0100)]
Merge pull request #3444 from waynr/fix-dogfood-tests

Fix dogfood tests

5 years agoDon't change current working directory of cargo tests
Wayne Warren [Fri, 30 Nov 2018 18:54:47 +0000 (12:54 -0600)]
Don't change current working directory of cargo tests

5 years agoUse cargo's "PROFILE" envvar and set CLIPPY_DOGFOOD
Wayne Warren [Sat, 24 Nov 2018 21:24:13 +0000 (15:24 -0600)]
Use cargo's "PROFILE" envvar and set CLIPPY_DOGFOOD

5 years agoUse dogfood_runner for deterministic test ordering
Wayne Warren [Sat, 24 Nov 2018 21:22:23 +0000 (15:22 -0600)]
Use dogfood_runner for deterministic test ordering

5 years agoRemove unnecessary documentation
Wayne Warren [Wed, 21 Nov 2018 15:15:32 +0000 (09:15 -0600)]
Remove unnecessary documentation

5 years agoFix dogfood tests.
Wayne Warren [Wed, 21 Nov 2018 15:14:42 +0000 (09:14 -0600)]
Fix dogfood tests.

5 years agoAdded additional reasoning to `Why is this bad?`.
daxpedda [Wed, 5 Dec 2018 14:01:19 +0000 (15:01 +0100)]
Added additional reasoning to `Why is this bad?`.
Added comment to explain usage of MIR.

5 years agoRenamed to `implicit_return`.
daxpedda [Wed, 5 Dec 2018 13:39:09 +0000 (14:39 +0100)]
Renamed to `implicit_return`.
Covered all other kinds besides `ExprKind::Lit`.
Added check for replacing `break` with `return`.

5 years agoMerge pull request #3495 from flip1995/tykind_fix
Philipp Krones [Wed, 5 Dec 2018 12:34:20 +0000 (13:34 +0100)]
Merge pull request #3495 from flip1995/tykind_fix

Fix usage of ty::TyKind

5 years agoFix ty::TyKind usage
flip1995 [Tue, 4 Dec 2018 23:14:44 +0000 (00:14 +0100)]
Fix ty::TyKind usage

5 years agoFix TyKind::<kind> usage in codebase
flip1995 [Tue, 4 Dec 2018 22:19:42 +0000 (23:19 +0100)]
Fix TyKind::<kind> usage in codebase

5 years agoAppeasing the Test Gods.
daxpedda [Wed, 5 Dec 2018 10:26:40 +0000 (11:26 +0100)]
Appeasing the Test Gods.
Seems I'm not smart enough to run the tests locally before committing.

5 years agoRenamed `forced_return` to `missing_returns`.
daxpedda [Wed, 5 Dec 2018 09:54:21 +0000 (10:54 +0100)]
Renamed `forced_return` to `missing_returns`.
Better clarification in the docs.
Ran `update_lints`.

5 years agoAdded `FORCED_RETURN` lint.
daxpedda [Wed, 5 Dec 2018 00:59:09 +0000 (01:59 +0100)]
Added `FORCED_RETURN` lint.

5 years agoMerge pull request #3490 from phansch/extract_single_match_else_ui_test
Philipp Krones [Tue, 4 Dec 2018 13:57:19 +0000 (14:57 +0100)]
Merge pull request #3490 from phansch/extract_single_match_else_ui_test

Extract single_match_else UI test

5 years agoMerge pull request #3473 from lucasloisp/additional-bool-comparisons
Philipp Hansch [Tue, 4 Dec 2018 06:26:29 +0000 (07:26 +0100)]
Merge pull request #3473 from lucasloisp/additional-bool-comparisons

Adds inequality cases to bool comparison (#3438)

5 years agoMerge pull request #3488 from phansch/fix_cargo_lint_bug
Philipp Hansch [Tue, 4 Dec 2018 06:24:11 +0000 (07:24 +0100)]
Merge pull request #3488 from phansch/fix_cargo_lint_bug

Fix wildcard_dependencies false positive

5 years agoExtract single_match_else UI test
Philipp Hansch [Tue, 4 Dec 2018 06:17:53 +0000 (07:17 +0100)]
Extract single_match_else UI test

There's only one test currently.
I also updated the lint doc with a 'good' example and changed the lint
help text a bit.

cc #2038

5 years agocargo fmt
Philipp Hansch [Tue, 4 Dec 2018 05:47:41 +0000 (06:47 +0100)]
cargo fmt

5 years agoAdds inequality cases to bool comparison lint
Lucas Lois [Fri, 30 Nov 2018 13:21:11 +0000 (10:21 -0300)]
Adds inequality cases to bool comparison lint

The lint now checks cases like `y != true`

5 years agoMerge pull request #3478 from dtolnay/setlen
Oliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer [Mon, 3 Dec 2018 11:42:31 +0000 (12:42 +0100)]
Merge pull request #3478 from dtolnay/setlen

Remove unsafe_vector_initialization lint

5 years agoRemove unsafe_vector_initialization lint
David Tolnay [Mon, 3 Dec 2018 10:43:01 +0000 (02:43 -0800)]
Remove unsafe_vector_initialization lint

5 years agoMerge pull request #3479 from dtolnay/literal
Oliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer [Mon, 3 Dec 2018 10:06:56 +0000 (11:06 +0100)]
Merge pull request #3479 from dtolnay/literal

Downgrade large_digit_groups to pedantic

5 years agoFix wildcard_dependencies false positive
Philipp Hansch [Mon, 3 Dec 2018 07:12:35 +0000 (08:12 +0100)]
Fix wildcard_dependencies false positive

This now only checks for wildcard_dependencies if the source is a
non-git source.

I tried adding a compiletest suite for the cargo lints, but I was unable
to override the `Cargo.toml` of the original executable.

I tested this manually by modifying the main `Cargo.toml`.

Fixes #3458

5 years agoMerge pull request #3487 from phansch/fix_fmt
Philipp Hansch [Mon, 3 Dec 2018 06:44:43 +0000 (07:44 +0100)]
Merge pull request #3487 from phansch/fix_fmt

Fix rustfmt format

5 years agoFix rustfmt format
Philipp Hansch [Mon, 3 Dec 2018 06:13:00 +0000 (07:13 +0100)]
Fix rustfmt format

5 years agoMerge pull request #3486 from phansch/make_windows_travis_run_more_stuff
Philipp Hansch [Sun, 2 Dec 2018 15:29:38 +0000 (16:29 +0100)]
Merge pull request #3486 from phansch/make_windows_travis_run_more_stuff

Travis: Add rustc sysroot bin to PATH for windows build

5 years agoDisable incremental build for windows
Philipp Hansch [Sun, 2 Dec 2018 14:08:11 +0000 (15:08 +0100)]
Disable incremental build for windows

Testing if this speeds up compilation time for the Windows CI build.

5 years agoTravis: Add rustc sysroot bin to PATH for windows build
Philipp Hansch [Sun, 2 Dec 2018 13:33:19 +0000 (14:33 +0100)]
Travis: Add rustc sysroot bin to PATH for windows build

5 years agoMerge pull request #3483 from phansch/mention_triage_procedure_in_contributing
Philipp Hansch [Sun, 2 Dec 2018 11:35:14 +0000 (12:35 +0100)]
Merge pull request #3483 from phansch/mention_triage_procedure_in_contributing

Mention triage procedure in contributing.md

5 years agoMerge pull request #3485 from phansch/fix_some_nursery_links
Philipp Hansch [Sun, 2 Dec 2018 11:33:09 +0000 (12:33 +0100)]
Merge pull request #3485 from phansch/fix_some_nursery_links

Fix some nursery links

5 years agoFix some nursery links
Philipp Hansch [Sun, 2 Dec 2018 10:45:05 +0000 (11:45 +0100)]
Fix some nursery links

5 years agoMerge pull request #3484 from phansch/fix_windows_lineendings
Philipp Hansch [Sun, 2 Dec 2018 10:37:05 +0000 (11:37 +0100)]
Merge pull request #3484 from phansch/fix_windows_lineendings

git: Enforce LF lineendings for everything

5 years agoEnforce LF lineendings for everything
Philipp Hansch [Sun, 2 Dec 2018 09:57:56 +0000 (10:57 +0100)]
Enforce LF lineendings for everything

Someone on discord reported issues with UI tests.

This should make sure that git never automatically converts lineendings
for text files to `CRLF`. They should always be `LF` now.

Probably this means that we can stop using dos2unix for #3306, too.

Taken from [Rust's .gitattributes file](https://github.com/rust-lang/rust/blob/master/.gitattributes).

5 years agoMention triage procedure in contributing.md
Philipp Hansch [Sun, 2 Dec 2018 08:33:23 +0000 (09:33 +0100)]
Mention triage procedure in contributing.md

5 years agoKeep testing large_digit_groups as ui test
David Tolnay [Sun, 2 Dec 2018 01:23:53 +0000 (17:23 -0800)]
Keep testing large_digit_groups as ui test

5 years agoKeep testing unsafe_vector_initialization as ui test
David Tolnay [Sun, 2 Dec 2018 01:19:39 +0000 (17:19 -0800)]
Keep testing unsafe_vector_initialization as ui test

5 years agoDowngrade large_digit_groups to pedantic
David Tolnay [Sun, 2 Dec 2018 00:46:03 +0000 (16:46 -0800)]
Downgrade large_digit_groups to pedantic

I believe if the user already decided to put underscores in their
literal, Clippy should be willing to believe that they put a number of
underscores that they felt was readable.

5 years agoDowngrade unsafe_vector_initialization to restriction
David Tolnay [Sun, 2 Dec 2018 00:20:58 +0000 (16:20 -0800)]
Downgrade unsafe_vector_initialization to restriction

This lint looks for:

    let mut vec = Vec::with_capacity(len);
    vec.set_len(len);

The suggested replacement is `vec![0; len]`.

This is far too opinionated to be a deny-by-default lint because the performance
characteristics of the suggested replacement are totally different.

I am not convinced that this lint has value beyond what deny(unsafe_code) gives
you. Unsafe code is unsafe but please don't deny-by-default lint it if that's
the only reason.

5 years agoMerge pull request #3471 from matthiaskrgr/mamor_warn
Philipp Hansch [Fri, 30 Nov 2018 09:20:24 +0000 (10:20 +0100)]
Merge pull request #3471 from matthiaskrgr/mamor_warn

remove macro_at_most_once_rep feature attribute since it's stable

5 years agoremove macro_at_most_once_rep feature attribute since it's stable
Matthias Krüger [Fri, 30 Nov 2018 08:14:18 +0000 (09:14 +0100)]
remove macro_at_most_once_rep feature attribute since it's stable

Warning was:
warning: the feature `macro_at_most_once_rep` has been stable since 1.32.0 and no longer requires an attribute to enable
  --> clippy_lints/src/lib.rs:19:12
   |
19 | #![feature(macro_at_most_once_rep)]
   |            ^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: #[warn(stable_features)] on by default

5 years agoMerge pull request #3465 from flip1995/rustfmt
Oliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer [Wed, 28 Nov 2018 15:19:55 +0000 (16:19 +0100)]
Merge pull request #3465 from flip1995/rustfmt

rustfmt everything once and for all

5 years agoMerge pull request #3466 from phansch/clippy_rfc_readme
Philipp Krones [Wed, 28 Nov 2018 14:40:44 +0000 (15:40 +0100)]
Merge pull request #3466 from phansch/clippy_rfc_readme

Update docs in regards to the merged RFC

5 years agoAdd missing word
Philipp Krones [Wed, 28 Nov 2018 13:39:25 +0000 (14:39 +0100)]
Add missing word

Co-Authored-By: phansch <dev@phansch.net>
5 years agoUpdate docs in regards to the merged RFC
Philipp Hansch [Wed, 28 Nov 2018 07:11:28 +0000 (08:11 +0100)]
Update docs in regards to the merged RFC

5 years agoMerge pull request #3464 from flip1995/no_fork_integration
Philipp Hansch [Wed, 28 Nov 2018 06:19:49 +0000 (07:19 +0100)]
Merge pull request #3464 from flip1995/no_fork_integration

Don't run integration tests in forks

5 years agoDocument how to run rustfmt in CONTRIBUTING.md
flip1995 [Tue, 27 Nov 2018 21:36:25 +0000 (22:36 +0100)]
Document how to run rustfmt in CONTRIBUTING.md

5 years agoDon't run integration tests in forks
flip1995 [Tue, 27 Nov 2018 21:01:22 +0000 (22:01 +0100)]
Don't run integration tests in forks

5 years agoFix some formatting issues
flip1995 [Tue, 27 Nov 2018 20:49:09 +0000 (21:49 +0100)]
Fix some formatting issues

5 years agoRun rustfmt on clippy_lints
flip1995 [Tue, 27 Nov 2018 20:14:15 +0000 (21:14 +0100)]
Run rustfmt on clippy_lints

5 years agoRun rustfmt on build.rs
flip1995 [Tue, 27 Nov 2018 20:13:26 +0000 (21:13 +0100)]
Run rustfmt on build.rs

5 years agoRun rustfmt on clippy_dev
flip1995 [Tue, 27 Nov 2018 20:13:08 +0000 (21:13 +0100)]
Run rustfmt on clippy_dev

5 years agoRun rustfmt on rustc_tools_util
flip1995 [Tue, 27 Nov 2018 20:12:38 +0000 (21:12 +0100)]
Run rustfmt on rustc_tools_util

5 years agoRun rustfmt on src
flip1995 [Tue, 27 Nov 2018 20:12:13 +0000 (21:12 +0100)]
Run rustfmt on src

5 years agoRun rustfmt on the tests
flip1995 [Tue, 27 Nov 2018 20:11:50 +0000 (21:11 +0100)]
Run rustfmt on the tests

5 years agoLet travis run cargo fmt --all -- --check
flip1995 [Tue, 27 Nov 2018 20:11:05 +0000 (21:11 +0100)]
Let travis run cargo fmt --all -- --check

5 years agoError on line overflow
flip1995 [Tue, 27 Nov 2018 19:46:11 +0000 (20:46 +0100)]
Error on line overflow

5 years agoMerge pull request #3459 from flip1995/sugg_appl
Oliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer [Tue, 27 Nov 2018 17:29:33 +0000 (18:29 +0100)]
Merge pull request #3459 from flip1995/sugg_appl

Add Applicability to suggestion lints: Take 2

5 years agoFix NAIVE_BYTECOUNT applicability
flip1995 [Tue, 27 Nov 2018 16:31:17 +0000 (17:31 +0100)]
Fix NAIVE_BYTECOUNT applicability

5 years agoFix dogfood error
flip1995 [Tue, 27 Nov 2018 15:59:52 +0000 (16:59 +0100)]
Fix dogfood error

5 years agoChange Applicability of MISTYPED_LITERAL_SUFFIX
flip1995 [Tue, 27 Nov 2018 15:59:39 +0000 (16:59 +0100)]
Change Applicability of MISTYPED_LITERAL_SUFFIX

5 years agoAdd applicability level to (nearly) every span_lint_and_sugg function
flip1995 [Tue, 27 Nov 2018 14:13:57 +0000 (15:13 +0100)]
Add applicability level to (nearly) every span_lint_and_sugg function

5 years agoUpdate stderr file
flip1995 [Tue, 27 Nov 2018 14:27:34 +0000 (15:27 +0100)]
Update stderr file

5 years agoFix bugs and improve documentation
flip1995 [Tue, 27 Nov 2018 14:11:13 +0000 (15:11 +0100)]
Fix bugs and improve documentation

Some bugs and some documentation is unrelated to the Applicability change, but
these bugs were serious and the documentation was kind of required to
understand what's going on.

5 years agoAdd Applicability::Unspecified to span_lint_and_sugg functions
flip1995 [Tue, 20 Nov 2018 13:06:29 +0000 (14:06 +0100)]
Add Applicability::Unspecified to span_lint_and_sugg functions

5 years agoIntroduce snippet_with_applicability and hir_with_applicability functions
flip1995 [Tue, 20 Nov 2018 09:33:40 +0000 (10:33 +0100)]
Introduce snippet_with_applicability and hir_with_applicability functions

5 years agoMerge pull request #3412 from matthiaskrgr/readme_2
Philipp Krones [Mon, 26 Nov 2018 13:31:48 +0000 (14:31 +0100)]
Merge pull request #3412 from matthiaskrgr/readme_2

readme: tell how to install clippy on travis from git if it is not shipped with a nightly.

5 years agoreadme: tell how to install clippy on travis from git if it is not shipped with a...
Matthias Krüger [Sun, 4 Nov 2018 23:12:42 +0000 (00:12 +0100)]
readme: tell how to install clippy on travis from git if it is not shipped with a nightly.

5 years agoMerge pull request #3365 from gnieto/lint/slow-initialization
Oliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer [Mon, 26 Nov 2018 12:37:46 +0000 (13:37 +0100)]
Merge pull request #3365 from gnieto/lint/slow-initialization

Add slow vector initializations lint

5 years agoMerge pull request #3456 from matthiaskrgr/builtin
Philipp Hansch [Mon, 26 Nov 2018 06:19:14 +0000 (07:19 +0100)]
Merge pull request #3456 from matthiaskrgr/builtin

constants: add u128 i128 builtin types and fix outdated url