This repository was archived by the owner on Apr 25, 2023. It is now read-only.
Draft
Conversation
yoshuawuyts
commented
Jul 1, 2020
| -e TEST_MYSQL=mysql://prisma:prisma@test-mysql:3306/prisma \ | ||
| -e TEST_PSQL=postgres://prisma:prisma@test-postgres:5432/prisma \ | ||
| -e TEST_MSSQL="sqlserver://test-mssql:1433;user=SA;password=$MSSQL_SA_PASSWORD;trustServerCertificate=true" \ | ||
| -e RUSTFLAGS="-Dwarnings" \ |
Contributor
Author
There was a problem hiding this comment.
This ensures we don't ship warnings to our main branch, but allows them to exist during local development.
yoshuawuyts
commented
Jul 1, 2020
Comment on lines
+106
to
+110
|
|
||
| #![forbid(unsafe_code, future_incompatible, rust_2018_idioms)] | ||
| #![deny(missing_debug_implementations, nonstandard_style)] | ||
| #![warn(missing_docs, unreachable_pub)] | ||
|
|
Contributor
Author
There was a problem hiding this comment.
This is the set of lints introduced. This includes linting for rust_2018_idioms which are things that are disallowed in the current edition and can prevent us from using rust 2018 in the future. And future_incompatible which are things that will be disallowed in a future edition (due next year).
Contributor
Author
|
Talked with @pimeys and some of the current issues we're running into will be resolved with the switch away from |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
o/ This PR is an attempt to ensure that
quaintwill continue to compile in future versions of the compiler and introduce a few new code quality measures that will help automate review.This PR currently fails CI because it turns out that we, in fact, are not future compatible. In particular the issue we're running into is rust-lang/rust#62411, which will likely be turned into an error for the 2021 edition. But beyond that it seems there are a fair number of other issues we may want to address.
Anyway, I found myself having a spare 30 mins today and was curious how this would turn out. I'm opening this as a draft PR to share what's going on, and if this is deemed useful perhaps someone (could be me!) could go through and address the errors and warnings this has surfaced. Thanks!