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

Unwinding instruction gets emitted regardless -Z no-landing-pads flag #11647

Closed
edwardw opened this issue Jan 18, 2014 · 0 comments · Fixed by #11653
Closed

Unwinding instruction gets emitted regardless -Z no-landing-pads flag #11647

edwardw opened this issue Jan 18, 2014 · 0 comments · Fixed by #11653

Comments

@edwardw
Copy link
Contributor

edwardw commented Jan 18, 2014

The unwinding instructions are always emitted now with or without no-landing-pads flag. It worked a day ago but now is broken. This must be a regression introduced in the past day or so.

Reported to the rust-dev mailing list and confirmed by Daniel Micay.

cc #10916

flip1995 pushed a commit to flip1995/rust that referenced this issue Jul 11, 2024
…-api, r=xFrednet

Honor `avoid-breaking-exported-api` in `needless_pass_by_ref_mut`

Until now, the lint only emitted a warning, when breaking public API. Now it doesn't lint at all when the config value is not set to `false`, bringing it in line with the other lints using this config value.

Also ensures that this config value is documented in the lint.

changelog: none
(I don't think a changelog is necessary, since this lint is in `nursery`)

---

Fixes rust-lang/rust-clippy#11374

cc `@GuillaumeGomez`

Marking as draft: Does this lint even break public API? If I change a function signature from `fn foo(x: &mut T)` to `fn foo(x: &T)`, I can still call it with `foo(&mut x)`. The only "breaking" thing is that the `clippy::unnecessary_mut_passed` lint will complain that `&mut` at the callsite is not necessary, possibly trickling down to the crate user having to remote a `mut` from a variable. [Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=058165a7663902e84af1d23e35c10d66).

Are there examples where this actually breaks public API, that I'm missing?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant