Skip to content

fix indentations and remove duplicate visibilities - #3698

Closed
crabtw wants to merge 2 commits into
rust-lang:incomingfrom
crabtw:pp
Closed

fix indentations and remove duplicate visibilities#3698
crabtw wants to merge 2 commits into
rust-lang:incomingfrom
crabtw:pp

Conversation

@crabtw

@crabtw crabtw commented Oct 8, 2012

Copy link
Copy Markdown
Contributor

The pretty printer does not indent foreign constants well.
It outputs

extern  {
    const VAR1: c_int;
        const VAR2: c_int;    }

@crabtw

crabtw commented Oct 14, 2012

Copy link
Copy Markdown
Contributor Author

The new patch removes duplicate visibilities and fix indentations, for example

pub struct Union_U {
        pub data: [c_uchar]/16,
    }
pub pub const E1: c_uint = 0;
pub pub extern  {

@catamorphism

Copy link
Copy Markdown
Contributor

Merged, thanks!

bors pushed a commit to rust-lang-ci/rust that referenced this pull request May 15, 2021
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Jul 14, 2024
implement `libc::sched_setaffinity` on linux

fixes rust-lang/miri#2749

the implementation, like `libc::sched_getaffinity`, just always returns `EINVAL`, which kind of simulates a device with zero cpus. I believe the idea is that callers of this function always do it to optimize, so they are likely to gracefully recover from this function returning an error.

based on the libc crate, these functions are also available on android and freebsd (but not on macos or windows). So should the implementation of the `sched_*` functions just be copied to the android and freebsd shims?
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
3696: vscode: more type safety r=matklad a=Veetaha



3698: Consider references when applying postfix completions r=matklad a=SomeoneToIgnore

Sometimes my RA debugging workflow breaks because `.dbg` is applied to the variable that is used later in the code.
It's safer to consider the refences to avoid this for completions that may trigger the move.

3703: Don't try to enable proposed API's on stable r=matklad a=matklad



bors r+
🤖

Co-authored-by: veetaha <veetaha2@gmail.com>
Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
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 this pull request may close these issues.

2 participants