Skip to content

Calling rustc with non-existing file gives ... is not UTF-8 #6424

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
kud1ing opened this issue May 11, 2013 · 4 comments
Closed

Calling rustc with non-existing file gives ... is not UTF-8 #6424

kud1ing opened this issue May 11, 2013 · 4 comments
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@kud1ing
Copy link

kud1ing commented May 11, 2013

rustc nonexistingfile gives error: nonexistingfile is not UTF-8.
A better error message would be in the tone of "nonexistingfile does not exist".

@jdm
Copy link
Contributor

jdm commented May 11, 2013

Nominating for production ready.

@z0w0
Copy link
Contributor

z0w0 commented May 12, 2013

I'm getting error: error opening nonexistingfile which is a good error message. What commit/version are you using?

@kud1ing
Copy link
Author

kud1ing commented May 12, 2013

I was using Rust incoming from yesterday

@kud1ing
Copy link
Author

kud1ing commented May 12, 2013

Sorry, the file did exist. It was a Unit Test binary remnant.

@kud1ing kud1ing closed this as completed May 12, 2013
@kud1ing kud1ing reopened this May 12, 2013
@kud1ing kud1ing closed this as completed May 12, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Dec 20, 2020
Add MSRV to more lints specified in rust-lang#6097

add MSRV to more lints specified in rust-lang#6097
add instructions for adding msrv in other lints
update tests

 - [x] `redundant_field_names` requires Rust 1.17 due to suggest feature stablized in that version.
 - [x] `redundant_static_lifetimes` requires Rust 1.17 due to suggest feature stablized in that version.
 - [x] `filter_map_next` requires Rust 1.30 due to suggest `Iterator::find_map`.
 - [x] `checked_conversions` requires Rust 1.34 due to suggest `TryFrom`.
 - [x] `match_like_matches_macro` requires Rust 1.42 due to suggest `matches!`. Addressed in rust-lang#6201
 - [x] `manual_strip` requires Rust 1.45 due to suggest `str::{strip_prefix, strip_suffix}`. Addressed in rust-lang#6201
 - [x] `option_as_ref_deref` requires Rust 1.40 due to suggest `Option::{as_deref, as_deref_mut}`. Addressed in rust-lang#6201
 - [x] `manual_non_exhaustive` requires Rust 1.40 due to suggest `#[non_exhaustive]`. Addressed in rust-lang#6201
 - [x] `manual_range_contains` requires Rust 1.35 due to suggest `Range*::contains`.
 - [x] `use_self` requires Rust 1.37 due to suggest `Self::Variant on enum`.
 - [x] `mem_replace_with_default` requires Rust 1.40 due to suggest `mem::take`.
 - [x] `map_unwrap_or` requires Rust 1.41 due to suggest `Result::{map_or, map_or_else}`.
 - [x] `missing_const_for_fn` requires Rust 1.46 due to `match/if/loop in const fn` needs that version.

changelog: Add MSRV config to more lints. ^This is now the complete list, AFAWK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

3 participants