-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
BUG: compiler doesn't detect method-chain lifetime breach? #12568
Comments
I do think it is a duplicate so, I'll close this bug as a duplicate of #12223 |
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Aug 21, 2023
Suggest type completions for type arguments and constant completions for constant arguments When determining completions for generic arguments, suggest only types or only constants if the corresponding generic parameter is a type parameter or constant parameter. Closes rust-lang#12568
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Apr 4, 2024
allow [`manual_unwrap_or_default`] in const function closes: rust-lang#12568 --- changelog: allow [`manual_unwrap_or_default`] in const function This is a small fix, I was originally decided to fix it along with `rust-lang#12568` but there are some problems needs to be addressed (which is why my branch is called `issue12569` 😆 ), so I decide to open a separated PR to fix them one at a time.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code results in corrupt output: (Ubuntu 12.04 LTS, rust master pulled 25th Feb)
$ rustc isolate_issue.rs
$ ./isolate_issue "foo::bar"
first fir
first again
Ashish Myles noted that an earlier version of rust failed to compile this code, giving an error about the reference to the return value of std::os::args() not being valid for the duration of its use.
https://mail.mozilla.org/pipermail/rust-dev/2014-February/008796.html
Pulling 'args' into a separate local variable works:
$ ./isolate_issue "foo::bar"
first foo
first again foo
The text was updated successfully, but these errors were encountered: