Skip to content
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

Removed lint_reasons feature #352

Merged
merged 2 commits into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion test_util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ the [`TestRepos`] struct to creat temporary git repositories useful for `vergen-
#![cfg_attr(
all(feature = "unstable", nightly),
feature(
lint_reasons,
multiple_supertrait_upcastable,
must_not_suspend,
non_exhaustive_omitted_patterns_lint,
Expand Down
1 change: 0 additions & 1 deletion vergen-git2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ let build = BuildBuilder::default().build_timestamp(true).build()?;"##
#![cfg_attr(
all(feature = "unstable", nightly),
feature(
lint_reasons,
multiple_supertrait_upcastable,
must_not_suspend,
non_exhaustive_omitted_patterns_lint,
Expand Down
6 changes: 1 addition & 5 deletions vergen-gitcl/src/gitcl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -868,11 +868,7 @@ impl AddEntries for Gitcl {
cargo_warning: &mut CargoWarning,
) -> Result<()> {
if self.any() {
let git_cmd = if let Some(cmd) = self.git_cmd {
cmd
} else {
"git --version"
};
let git_cmd = self.git_cmd.unwrap_or("git --version");
Self::check_git(git_cmd)
.and_then(|()| Self::check_inside_git_worktree(&self.repo_path))?;
self.inner_add_git_map_entries(
Expand Down
1 change: 0 additions & 1 deletion vergen-gitcl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ let build = BuildBuilder::default().build_timestamp(true).build()?;"##
#![cfg_attr(
all(feature = "unstable", nightly),
feature(
lint_reasons,
multiple_supertrait_upcastable,
must_not_suspend,
non_exhaustive_omitted_patterns_lint,
Expand Down
1 change: 0 additions & 1 deletion vergen-gix/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ let build = BuildBuilder::default().build_timestamp(true).build()?;"##
#![cfg_attr(
all(feature = "unstable", nightly),
feature(
lint_reasons,
multiple_supertrait_upcastable,
must_not_suspend,
non_exhaustive_omitted_patterns_lint,
Expand Down
6 changes: 1 addition & 5 deletions vergen-lib/src/emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,7 @@ impl Emitter {

// Emit the 'cargo:rerun-if-changed' instructions
if !self.cargo_rustc_env_map.is_empty() || !self.cargo_warning.is_empty() {
let buildrs = if let Some(path) = self.custom_buildrs {
path
} else {
"build.rs"
};
let buildrs = self.custom_buildrs.unwrap_or("build.rs");
let sanitized_output = Self::filter_newlines(buildrs);
writeln!(stdout, "cargo:rerun-if-changed={sanitized_output}")?;
writeln!(stdout, "cargo:rerun-if-env-changed=VERGEN_IDEMPOTENT")?;
Expand Down
1 change: 0 additions & 1 deletion vergen-lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#![cfg_attr(
all(feature = "unstable", nightly),
feature(
lint_reasons,
multiple_supertrait_upcastable,
must_not_suspend,
non_exhaustive_omitted_patterns_lint,
Expand Down
1 change: 0 additions & 1 deletion vergen-pretty/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ assert!(!buf.is_empty());
#![cfg_attr(
all(feature = "unstable", nightly),
feature(
lint_reasons,
multiple_supertrait_upcastable,
must_not_suspend,
non_exhaustive_omitted_patterns_lint,
Expand Down
1 change: 0 additions & 1 deletion vergen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ let build = BuildBuilder::default().build_timestamp(true).build()?;"##
#![cfg_attr(
all(feature = "unstable", nightly),
feature(
lint_reasons,
multiple_supertrait_upcastable,
must_not_suspend,
non_exhaustive_omitted_patterns_lint,
Expand Down
Loading