Git Product home page Git Product logo

Comments (10)

workingjubilee avatar workingjubilee commented on August 16, 2024 1

The standard library denies all warnings in its build. One of the warnings the Rust compiler issues is "you added an unsafe {} block but you didn't need it".

from rust.

workingjubilee avatar workingjubilee commented on August 16, 2024

@biabbas

Why is Error and unused import in process_vxworks.rs as it is referenced twice in the same file.

Because it is both times referenced by the qualified io::Error form:

} else {
Err(io::Error::last_os_error())
}
}
}
pub fn output(&mut self) -> io::Result<(ExitStatus, Vec<u8>, Vec<u8>)> {
let (proc, pipes) = self.spawn(Stdio::MakePipe, false)?;
crate::sys_common::process::wait_with_output(proc, pipes)
}
pub fn exec(&mut self, default: Stdio) -> io::Error {
let ret = Command::spawn(self, default, false);

from rust.

workingjubilee avatar workingjubilee commented on August 16, 2024

For the unused_imports linting, the qualified form isn't considered to be equal to the unqualified form, and the import makes the unqualified form available.

from rust.

workingjubilee avatar workingjubilee commented on August 16, 2024

it seems originally @BaoshanPang was the maintainer of these targets.

from rust.

biabbas avatar biabbas commented on August 16, 2024

Why are there unsafe errors for unsafe blocks? If I add the whole fn as unsafe and remove unsafe blocks, I'm able to compile for vxworks.

from rust.

biabbas avatar biabbas commented on August 16, 2024

The standard library denies all warnings in its build. One of the warnings the Rust compiler issues is "you added an unsafe {} block but you didn't need it"

But for vxworks somehow these are not disabled. Is this because we only build the libraries for vxworks.

from rust.

workingjubilee avatar workingjubilee commented on August 16, 2024

Somehow it thinks libc::pwrite is not an unsafe extern "C" function...?

from rust.

biabbas avatar biabbas commented on August 16, 2024

Pushed commits to build nightly for vxworks. Current stable source 1.79.0 can be built after applying this patch.
1.79_stable.patch

from rust.

biabbas avatar biabbas commented on August 16, 2024

Update: After the previous rollup merge, most of the errors are fixed for VxWorks, except for libc references. I have a few doubts.

  1. After a change to master rust libc repo, how long before the changes are reflected in the crates downloaded using cargo?
  2. I Would like to contribute to the the rust. Can I add myself to libs review rotation?
  3. What are the requirements to be a contributor?
  4. How to get these changes to stable 1.80?
  5. I build the compiler with command x build -i --target={vxworks_target} -j 10. The compiler build is 1.79.0-dev. I would like to remove dev from this.
    Thanks.

from rust.

biabbas avatar biabbas commented on August 16, 2024

Also in the previous pr, I wasn't able to add this file because clang tidy failed. I tried various methods to format the file vxworks.md this but still clang tidy check failed. ab90323

  1. Used online tools to tab indent this.
  2. Ran x.py fmt. (This did not seem to do anything.)

from rust.

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.