Code Monkey home page Code Monkey logo

Comments (5)

simnalamburt avatar simnalamburt commented on September 17, 2024 2

Automatically fixed by republishing the crate with newer rustc, Fixed by v0.7.1 release.

from obj-rs.

psionic12 avatar psionic12 commented on September 17, 2024

Here's the detail:

The following warnings were discovered during the build. These warnings are an
indication that the packages contain code that will become an error in a
future release of Rust. These warnings typically cover changes to close
soundness problems, unintended or undocumented behavior, or critical problems
that cannot be fixed in a backwards-compatible fashion, and are not expected
to be in wide use.

Each warning should contain a link for more information on what the warning
means and how to resolve it.


To solve this problem, you can try the following approaches:


- If the issue is not solved by updating the dependencies, a fix has to be
implemented by those dependencies. You can help with that by notifying the
maintainers of this problem (e.g. by creating a bug report) or by proposing a
fix to the maintainers (e.g. by creating a pull request):

  - [email protected]
  - Repository: https://github.com/simnalamburt/obj-rs
  - Detailed warning command: `cargo report future-incompatibilities --id 2 --package [email protected]`

- If waiting for an upstream fix is not an option, you can use the `[patch]`
section in `Cargo.toml` to use your own version of the dependency. For more
information, see:
https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#the-patch-section
        
The package `obj-rs v0.7.0` currently triggers the following future incompatibility lints:
> warning: trailing semicolon in macro used in expression position
>    --> /Users/x/.cargo/registry/src/index.crates.io-6f17d22bba15001f/obj-rs-0.7.0/src/error.rs:134:12
>     |
> 134 |         )));
>     |            ^
>     |
>    ::: /Users/x/.cargo/registry/src/index.crates.io-6f17d22bba15001f/obj-rs-0.7.0/src/raw/material.rs:30:26
>     |
> 30  |                     _ => make_error!(WrongNumberOfArguments, "Expected exactly 1 argument"),
>     |                          ------------------------------------------------------------------ in this macro invocation
>     |
>     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
>     = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
>     = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default
>     = note: this warning originates in the macro `make_error` (in Nightly builds, run with -Z macro-backtrace for more info)
> 

from obj-rs.

Davidster avatar Davidster commented on September 17, 2024

weirdly I tried pointing to a local copy of obj-rs and it stopped giving the error. does the incompat report not run for crates that are reference with path = "./xyz"?

Would be happy to help fix this if I could find a way to reproduce the report on a local copy.

from obj-rs.

simnalamburt avatar simnalamburt commented on September 17, 2024

I'm afraid there is no trailing semicolon at the end of macro. I doubt it's a bug of cargo or rustc.

obj-rs/obj-rs/src/error.rs

Lines 129 to 136 in 8a5f690

macro_rules! make_error {
($kind:ident, $message:expr) => {
return Err(::std::convert::From::from($crate::error::LoadError::new(
$crate::error::LoadErrorKind::$kind,
$message,
)))
};
}

from obj-rs.

Davidster avatar Davidster commented on September 17, 2024

Thank you for the fix!

from obj-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.