Skip to content

core: removing repeated code in os.rs homedir() test - #3244

Merged
brson merged 1 commit into
rust-lang:incomingfrom
dbp:osbug
Aug 22, 2012
Merged

core: removing repeated code in os.rs homedir() test#3244
brson merged 1 commit into
rust-lang:incomingfrom
dbp:osbug

Conversation

@dbp

@dbp dbp commented Aug 21, 2012

Copy link
Copy Markdown

I noticed this - unless there is a reason to test the exact same operation twice, this code seems redundant. (ie, it is the same as the previous two lines).

brson added a commit that referenced this pull request Aug 22, 2012
core: removing repeated code in os.rs homedir() test
@brson
brson merged commit 91c652b into rust-lang:incoming Aug 22, 2012
@brson

brson commented Aug 22, 2012

Copy link
Copy Markdown
Contributor

Good catch!

RalfJung pushed a commit to RalfJung/rust that referenced this pull request Jan 4, 2024
NaN non-determinism for intrinsics and libm functions
jaisnan pushed a commit to jaisnan/rust-dev that referenced this pull request Jul 29, 2024
We want to run the proofs in the target crate and don't need to build
(or run) the proofs in any of the host crates. This avoids a need to
make available the `kani` crate to any such host crates.

Resolves rust-lang#3101, rust-lang#3238
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
3244: Rename module references r=matklad a=adamrk

Rename references to a module when the module is renamed. This fixes some missing renames in the existing implementation. For example, renaming the module `foo` to `foo2` in this case:
```rust
mod foo {
    pub fn bar() {}
}

fn main() {
    foo::bar()
}
```
previously would not change the call `foo::bar()` to `foo2::bar()`, but now it will. 

Co-authored-by: adamrk <ark.email@gmail.com>
Co-authored-by: Adam Bratschi-Kaye <ark.email@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