Use explicit version of cfg-if in msrv build #362
No reviewers
Labels
No labels
bug
duplicate
easy
enhancement
help wanted
invalid
question
rfc
structured-logging
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-rust-lang/log!362
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/msrv"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Just to try fix up our CI.
r? @sfackler
It wasn't worth pinning cfg-if?
I didn't have a lot of success pinning
cfg-ifusing thecargo updateonn the1.16toolchain, but I didn't actually try setting a=bound in our ownCargo.toml. We didn't get a lot of mileage out of bumping our MSRV from1.16to1.31anyways, so I'll give that a go 👍Ok, looks like that works out just fine!
This will cause issues if log is used in a dependency graph with another crate with a non
=dependency on cfg-if. Cargo will iirc just refuse to resolve versions. If we can't justcargo update -p cfg-if --precise 0.1.9in the MSRV build, it may just be best to bump our MSRV to whatever cfg-if uses.Ah right. I’d assumed we’d possibly just end up compiling two versions of
cfg-if.I’ll look again at why the
cargo updatepath didn’t work out for me and fall back to bumping back to1.31.rustfmt's failing, but r=me otherwise. Realistically, no-one's going to do the downgrade dance with cfg-if anyway...
@ -911,28 +911,17 @@ impl<'a> RecordBuilder<'a> {/// [`Metadata::builder().build()`]: struct.MetadataBuilder.html#method.build