Skip to content

restore auto-detection of text files #9371

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

Merged
merged 1 commit into from
Sep 21, 2013
Merged

restore auto-detection of text files #9371

merged 1 commit into from
Sep 21, 2013

Conversation

thestinger
Copy link
Contributor

We force the usage of LF line endings, but only in text files.

We force the usage of LF line endings, but *only* in text files.
bors added a commit that referenced this pull request Sep 20, 2013
We force the usage of LF line endings, but *only* in text files.
@bors bors closed this Sep 21, 2013
@bors bors merged commit 9e3258e into rust-lang:master Sep 21, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 21, 2022
…ction, r=llogiq

feat: lint unchecked subtraction of a 'Duration' from an 'Instant'

Hello all, I tried to tackle the open issue rust-lang#9371 and this is what I came up with.

I have a difficulty currently - some tests are failing:

```
failures:
    [ui] ui/manual_instant_elapsed.rs
```

The `manual_instant_elapsed` is failing because of `Instant::now() - duration` test, this now gets also picked by `unchecked_duration_subtraction` lint.
What is the correct way to proceed in this case? Simply update the `.stderr` file for `manual_instant_elapsed` lint?

changelog: [`unchecked_duration_subtraction`]: Add lint for unchecked subtraction of a `Duration` from an `Instant`.

fixes rust-lang#9371
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants